1.1.11.29 I2CSMBx_TargetTransferDirGet Function
C
/* x = I2C SMBUS peripheral instance number */
/* I2C SMBUS Target mode */
I2C_SMB_TARGET_TRANSFER_DIR I2CSMBx_TargetTransferDirGet(void)
Summary
Returns the I2C transfer direction.
Description
This function returns the I2C transfer direction.
Precondition
I2CSMBx_Initialize must have been called for the associated I2C instance.
Parameters
None.
Returns
I2C_SMB_TARGET_TRANSFER_DIR_WRITE - I2C master is writing data to I2C slave
I2C_SMB_TARGET_TRANSFER_DIR_READ - I2C master is reading data from I2C slave
Example
I2C_SMB_TARGET_TRANSFER_DIR dir = I2CSMB0_TargetTransferDirGet();