1.8.7.7 FLEXCOMx_USART_WriteByte Function

C

/* x = FLEXCOM instance number */

/* Blocking mode */

void FLEXCOMx_USART_WriteByte( int data )

Summary

Submits a byte of data to the given USART peripheral to transfer

Description

This function submits a byte of data to the USART peripheral to transfer. This Function is available only in non-interrupt mode.

Precondition

  • FLEXCOMx_USART_Initialize must have been called for the associated USART instance.

  • Transmitter readiness must be confirmed using FLEXCOMx_USART_TransmitterIsReady.

Parameters

Param Description
data Data byte to be transferred.

Returns

None

Example

char myData = 'A';

if(FLEXCOM0_USART_TransmitterIsReady() == true)
{
	FLEXCOM0_USART_WriteByte(myData);
}

Remarks

None