1.3.2.4.7 I2C_BB_IsBusy Function
1.3.2.4.7 C
bool I2C_BB_IsBusy(void)
1.3.2.4.7 Summary
Returns the state of the library.
1.3.2.4.7 Description
This function returns if the library is busy performing a read/write operation.
This API can be used to poll for the state of library if no callback is registered.
1.3.2.4.7 Precondition
I2C_BB_Initialize must have been called for the associated I2C instance.
1.3.2.4.7 Parameters
None.
1.3.2.4.7 Returns
True - If busy performing Read or Write operation.
False - If ready to accept new Read or Write request.
1.3.2.4.7 Example
I2C_BB_Initialize();
if(I2C_BB_WriteRead( SLAVE_ADDR, &myTxData[0], NUM_TX_BYTES, myRxData, NUM_RX_BYTES ) == false)
{
// error handling
}
while (I2C_BB_IsBusy() == true)
{
//I2C transfer is in progress
}
1.3.2.4.7 Remarks
None.
