1.8.7.59 1.25.6.59 1.26.5.59 1.27.5.59 1.28.6.59 1.36.7.57 1.41.5.59 1.42.3.59 FLEXCOMx_TWI_TransferDirGet Function

C

/* x = FLEXCOM instance number */

/* TWI slave mode */
FLEXCOM_TWI_SLAVE_TRANSFER_DIR FLEXCOMx_TWI_TransferDirGet(void)

Summary

Returns the TWI transfer direction.

Description

This function returns the TWI transfer direction.

Precondition

FLEXCOMx_TWI_Initialize must have been called for the associated FLEXCOM TWI instance.

Parameters

None.

Returns

FLEXCOM_TWI_SLAVE_TRANSFER_DIR_WRITE - TWI master is writing data to TWI slave

FLEXCOM_TWI_SLAVE_TRANSFER_DIR_READ - TWI master is reading data from TWI slave

Example

FLEXCOM_TWI_SLAVE_TRANSFER_DIR transferDir;
transferDir = FLEXCOM0_TWI_TransferDirGet();

Remarks

None