20 #define I2C_SHORT_TIMEOUT ((uint32_t)0x1000)
21 #define I2C_LONG_TIMEOUT ((uint32_t)(10 * I2C_SHORT_TIMEOUT))
22 #define I2C_DEFAULT_TIMEOUT I2C_SHORT_TIMEOUT
33 bool i2cRead(uint8_t addr_, uint8_t reg, uint8_t len, uint8_t* buf);
void i2cInit(I2CDevice index)
Definition: bus_i2c_stm32f10x.c:324
uint16_t i2cGetErrorCounter(void)
Definition: bus_i2c_stm32f10x.c:376
bool i2cRead(uint8_t addr_, uint8_t reg, uint8_t len, uint8_t *buf)
Definition: bus_i2c_stm32f10x.c:158
bool i2cWrite(uint8_t addr_, uint8_t reg, uint8_t data)
Definition: bus_i2c_stm32f10x.c:153
bool i2cWriteBuffer(uint8_t addr_, uint8_t reg_, uint8_t len_, uint8_t *data)
Definition: bus_i2c_stm32f10x.c:116
I2CDevice
Definition: bus_i2c.h:24
void i2cSetOverclock(uint8_t OverClock)
Definition: bus_i2c_stm32f10x.c:78
uint16_t data
Definition: config.c:91