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 client |
| I2C_BB_Write | Writes data to the client |
| I2C_BB_WriteForced | Force writes data to the client |
| I2C_BB_WriteRead | Write and Read data from client |
| 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 is 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 |
