各位大神:
请问cc2530 HalUARTRead读串口时候返回读取到的数据的实际长度和0 还会返回其他值么?谢谢!
Susan Yang:
/***************************************************************************** * @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 *****************************************************************************/