SWRU455M February 2017 – October 2020 CC3120 , CC3120MOD , CC3130 , CC3135 , CC3135MOD , CC3220MOD , CC3220MODA , CC3220R , CC3220S , CC3220SF , CC3230S , CC3230SF , CC3235MODAS , CC3235MODASF , CC3235MODS , CC3235MODSF , CC3235S , CC3235SF
This API reads bytes from an opened communication port into a buffer starting at pBuff. The read operation is blocked until all the expected data is received.
Table 25-4 lists the required parameters for this function.
Name | Type | Description |
---|---|---|
Fd | Fd_t | Handle to the Uart control block, This structure could be changed by the user to include the required parameters in the target platform |
pBuff | char* | Pointer to the first location of a buffer that contains enough space for all expected data |
Len | unsigned int | Number of bytes to read from the communication port |
The UART read API should implement the following logic: