Registers a callback function that notifies that UART Callback Events occurred in the Cy_SCB_UART_Interrupt.
- Parameters
-
base | The pointer to the UART SCB instance. |
callback | The pointer to the callback function. See cy_cb_scb_uart_handle_events_t for the function prototype. |
context | The pointer to the context structure cy_stc_scb_uart_context_t allocated by the user. The structure is used during the UART operation for internal configuration and data retention. The user should not modify anything in this structure. |
- Note
- To remove the callback, pass NULL as the pointer to the callback function.