1.3.2.4 Library Interface
I2C Bit Bang library provides the following interfaces:
Functions
| Name | Description |
|---|---|
| I2C_BB_Initialize | Initializes the instance of the I2C bit bang library |
| I2C_BB_Read | Reads data from the slave |
| I2C_BB_Write | Writes data to the slave |
| I2C_BB_WriteForced | Force writes data to the slave |
| I2C_BB_WriteRead | Write and Read data from Slave |
| I2C_BB_ErrorGet | Returns the error occurred during transfer |
| I2C_BB_IsBusy | Returns the state of the library |
| I2C_BB_TransferSetup | Dynamic setup of I2C Bit Bang Library |
| I2C_BB_CallbackRegister | Sets the pointer to the function (and it's context) to be called when the given I2C's transfer events occur |
Data types and constants
| Name | Type | Description |
|---|---|---|
| I2CBB_ERROR | Enum | I2C Bit Bang Transfer Status data type |
| I2CBB_TRANSFER_SETUP | Struct | I2C Bit Bang Transfer Setup Data Structure |
| I2CBB_CALLBACK | Typedef | I2C bit bang library callback function pointer |
