psp_uart_rx
Use this function to receive data over the UART.
Format
t_psp_uart_ret psp_uart_rx (
const uint8_t uid,
uint8_t * const p_buf,
const uint32_t buf_len,
uint32_t * const p_read_len )
Arguments
Parameter | Description | Type |
---|---|---|
uid | The unit ID. | uint8_t |
p_buf | A pointer to the buffer to read into. | uint8_t * |
buf_len | The buffer length. | uint32_t |
p_read_len | Where to write the number of bytes read. | uint32_t * |
Return Values
Return value | Description |
---|---|
PSP_UART_SUCCESS | Successful execution. |
PSP_UART_ERROR | Operation failed. |