Function usart_write_job()

Asynchronous write a single char.

enum status_code usart_write_job(
		struct usart_module *const module,
		const uint16_t * tx_data)

Sets up the driver to write the data given. If registered and enabled, a callback function will be called when the transmit is completed.

Table 1. Parameters
Data direction Parameter name Description

[in]

module

Pointer to USART software instance struct

[in]

tx_data

Data to transfer

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, due to the USART module being busy

STATUS_ERR_DENIED

If the transmitter is not enabled