1.3.2.4 Library Interface

I2C Bit Bang library provides the following interfaces.

Functions

NameDescription
I2C_BB_InitializeInitializes the instance of the I2C Bit Bang library
I2C_BB_ReadReads data from the client
I2C_BB_WriteWrites data to the client
I2C_BB_WriteForcedForce writes data to the client
I2C_BB_WriteReadWrite and Read data from client
I2C_BB_ErrorGetReturns the error occurred during transfer
I2C_BB_IsBusyReturns the state of the library
I2C_BB_TransferSetupDynamic setup of I2C Bit Bang Library
I2C_BB_CallbackRegisterSets the pointer to the function (and it is context) to be called when the given I2C's transfer events occur

Data Types and Constants

NameTypeDescription
I2CBB_ERROREnumI2C Bit Bang Transfer Status data type
I2CBB_TRANSFER_SETUPStructI2C Bit Bang Transfer Setup data structure
I2CBB_CALLBACKTypedefI2C Bit Bang library callback function pointer