16.6.4.6.2 Function usart_read_job()

Asynchronous read a single char.

enum status_code usart_read_job( struct usart_module *const module, uint16_t *const rx_data)

Sets up the driver to read data from the USART module to the data pointer given. If registered and enabled, a callback will be called when the receiving is completed.

Table 16-26. Parameters
Data directionParameter nameDescription

[in]

module

Pointer to USART software instance struct

[out]

rx_data

Pointer to where received data should be put

Returns

Status of the operation.

Table 16-27. Return Values
Return valueDescription

STATUS_OK

If operation was completed

STATUS_BUSY

If operation was not completed