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 slave
I2C_BB_WriteWrites data to the slave
I2C_BB_WriteForcedForce writes data to the slave
I2C_BB_WriteReadWrite and Read data from Slave
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's 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