1.8.7.7 1.25.6.7 1.26.5.7 1.27.5.7 1.28.6.7 1.36.7.7 1.41.5.7 1.42.3.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