1.8.7.25 1.25.6.25 1.26.5.25 1.27.5.25 1.28.6.25 1.41.5.25 1.42.3.25 FLEXCOMx_USART_IrDA_DirectionSet Function

C

/* x = FLEXCOM instance number */

/* Blocking and Non-blocking mode */

void FLEXCOMx_USART_IrDA_DirectionSet( FLEXCOM_IRDA_DIR dir )

Summary

Sets the data transfer direction in IRDA mode

Description

This function sets the transfer direction in IRDA mode. This can be used to enable transmitter and disable receiver OR enable receiver and disable transmitter in the IRDA mode.

Precondition

FLEXCOMx_USART_Initialize must have been called for the associated USART instance.

Parameters

dir - Enum of FLEXCOM_IRDA_DIR type. FLEXCOM_IRDA_DIR_TRANSMIT - enables transmitter and disables receiver. FLEXCOM_IRDA_DIR_RECEIVE - enables receiver and disables transmitter.

Returns

None

Example

FLEXCOMx_USART_IrDA_DirectionSet(FLEXCOM_IRDA_DIR_RECEIVE);

Remarks

None