1.1.11.28 I2CSMBx_HostIsBusy Function

C

/* x = I2C SMBUS peripheral instance number */

/* I2C SMBUS Host mode */

bool I2CSMBx_HostIsBusy(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_HostIsBusy());

Remarks

None.