16.6.4.2.1 Function usart_write_wait()

Transmit a character via the USART.

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

This blocking function will transmit a single character via the USART.

Table 16-7. Parameters
Data directionParameter nameDescription

[in]

module

Pointer to the software instance struct

[in]

tx_data

Data to transfer

Returns

Status of the operation.

Table 16-8. Return Values
Return valueDescription

STATUS_OK

If the operation was completed

STATUS_BUSY

If the operation was not completed, due to the USART module being busy

STATUS_ERR_DENIED

If the transmitter is not enabled