1.1.11.31 I2CSMBx_TargetIsBusy Function

C

/* x = I2C SMBUS peripheral instance number */

/* I2C SMBUS Target mode */

bool I2CSMBx_TargetIsBusy(void)

Summary

Returns the Peripheral busy status.

Description

This function returns true if the I2CSMBx module is not in idle mode.

Precondition

I2CSMBx_Initialize must have been called for the associated I2C instance.

Parameters

None.

Returns

true - Busy

false - Not busy

Example

// wait for the current transfer to complete
while(I2CSMB0_TargetIsBusy());

Remarks

None.