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 1. Parameters
Data direction Parameter name Description

[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 2. Return Values
Return value Description

STATUS_OK

If operation was completed

STATUS_BUSY

If operation was not completed