1.3.2.4.12 I2CBB_CALLBACK Typedef

C

typedef void (* I2CBB_CALLBACK)( uintptr_t context );

Summary

I2C bit bang library callback function pointer.

Description

This data type defines the I2C callback function pointer.

Example

void MyI2CCallback(uintptr_t context)
{
    // This function will be called when the transfer completes. Note
    // that this function executes in the context of the I2C interrupt.
}

I2C_BB_Initialize();

I2C_BB_CallbackRegister(MyI2CCallback, NULL);

Remarks

None.