Go to the source code of this file.
|
| void | i2c_Init (void) |
| | Initializes the I2C bus. More...
|
| |
| void | i2c_WriteRegister (uint8_t slaveAddress, uint8_t registerAddress, uint8_t registerValue, bool *ok) |
| | Writes a 8-bit value to a register. More...
|
| |
| void | i2c_WriteMultiBytesRegister (uint8_t slaveAddress, uint8_t registerAddress, uint8_t const *registerValue, uint8_t registerSize, bool *ok) |
| | Writes several bytes to a register. More...
|
| |
| uint8_t | i2c_ReadRegister (uint8_t slaveAddress, uint8_t registerAddress, bool *ok) |
| | Reads a 8-bit value from a register. More...
|
| |
| void | i2c_ReadMultiBytesRegister (uint8_t slaveAddress, uint8_t registerAddress, uint8_t *readData, uint8_t registerSize, bool *ok) |
| | Reads a multi bytes value from a register. More...
|
| |
◆ I2C_GPIO_AF
| #define I2C_GPIO_AF GPIO_AF_I2C1 |
◆ I2C_PERIPH
◆ I2C_SCL_Pin
| #define I2C_SCL_Pin GPIO_Pin_8 |
◆ I2C_SCL_PinSource
| #define I2C_SCL_PinSource GPIO_PinSource8 |
◆ I2C_SCL_Port
| #define I2C_SCL_Port GPIOB |
◆ I2C_SDA_Pin
| #define I2C_SDA_Pin GPIO_Pin_9 |
◆ I2C_SDA_PinSource
| #define I2C_SDA_PinSource GPIO_PinSource9 |
◆ I2C_SDA_Port
| #define I2C_SDA_Port GPIOB |