请问cc2530 HalUARTRead读串口时候返回读取到的数据的实际长度和0 还会返回其他值么?
时间:10-02
整理:3721RD
点击:
各位大神:
请问cc2530 HalUARTRead读串口时候返回读取到的数据的实际长度和0 还会返回其他值么?谢谢!
/*****************************************************************************
* @fn HalUARTRead
*
* @brief Read a buffer from the UART
*
* @param port - USART module designation
* buf - valid data buffer at least 'len' bytes in size
* len - max length number of bytes to copy to 'buf'
*
* @return length of buffer that was read
*****************************************************************************/