This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

请问cc2530 HalUARTRead读串口时候返回读取到的数据的实际长度和0 还会返回其他值么?

Other Parts Discussed in Thread: CC2530

各位大神:

              请问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
    *****************************************************************************/