1.27.25.5 1.34.25.5 1.35.18.5 TWIHSx_TransferDirGet Function
C
/* x = TWIHS instance number */
/* TWIHS slave mode */
TWIHS_SLAVE_TRANSFER_DIR TWIHSx_TransferDirGet(void)
Summary
Returns the TWIHS transfer direction.
Description
This function returns the TWIHS transfer direction.
Precondition
TWIHSx_Initialize must have been called for the associated TWIHS instance.
Parameters
None.
Returns
TWIHS_SLAVE_TRANSFER_DIR_WRITE - TWI master is writing data to TWI slave.
TWIHS_SLAVE_TRANSFER_DIR_READ - TWI master is reading data from TWI slave.
Example
TWIHS_SLAVE_TRANSFER_DIR transferDir; transferDir = TWIHS1_TransferDirGet();
Remarks
None