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.
Data direction | Parameter name | Description |
---|---|---|
[in] |
module |
Pointer to the software instance struct |
[in] |
tx_data |
Data to transfer |
Returns
Status of the operation.
Return value | Description |
---|---|
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 |