16.6.4.5.1 Function usart_register_callback()

Registers a callback.

void usart_register_callback( struct usart_module *const module, usart_callback_t callback_func, enum usart_callback callback_type)

Registers a callback function, which is implemented by the user.

Note: The callback must be enabled by usart_enable_callback in order for the interrupt handler to call it when the conditions for the callback type are met.
Table 16-20. Parameters
Data directionParameter nameDescription

[in]

module

Pointer to USART software instance struct

[in]

callback_func

Pointer to callback function

[in]

callback_type

Callback type given by an enum