Callback Functions

This callback function prototype is registered by psp_uart_start() and called by the UART driver when any PSP_UART_FLAG event occurs.

Note: It is the user's responsibility to provide any callback functions required by the application. Providing such functions is optional.


typedef void ( * t_psp_uart_cb )(
    const uint32_t   param,
    const uint8_t    uid,
    const uint8_t    flags,
    const uint8_t    b_isr )


Parameter Description Type
param The parameter provided by psp_uart_start(). uint32_t
uid The unit ID. uint8_t
flags The UART flag. uint8_t
b_isr 1 if called from an ISR, 0 otherwise. uint8_t

Return Values

Return value