16.6.4.6.1 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 16-24. Parameters
Data directionParameter nameDescription

[in]

module

Pointer to USART software instance struct

[in]

tx_data

Data to transfer

Returns

Status of the operation.

Table 16-25. Return Values
Return valueDescription

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