3.3.13.5 SERCOMx_USART_Write
Submits a write buffer to the given USART peripheral to transfer
This function submits a write buffer to be transmitted by the USART peripheral. The API blocks until the requested bytes are transmitted out.
bool
SERCOMx_USART_Write
(
void *buffer,
const size_t size
);
Precondition
- SERCOMx_USART_Initialize must have been called for the associated USART instance.
Parameters
- *buffer - Pointer to the user buffer. This contains the data to betransferred.
- size - Number of bytes to be transferred. If 9-bit mode is enabled, thenthe size is specified in terms of number of 9 bit data. For example, if 5 9-bit data are being transmitted, then the size must be specified as 5.
Returns
- bool - returns true if specified number of bytes were transferred successfully or if the size requested is 0, otherwise false if arguments are not valid.
