I2C transaction structure.
Architecture independent I2C (Inter-Integrated Circuit Bus) API.
MS5611 barometer driver common interface (I2C and SPI).
void ms5611_i2c_event(struct Ms5611_I2c *ms)
void ms5611_i2c_init(struct Ms5611_I2c *ms, struct i2c_periph *i2c_p, uint8_t addr, bool is_ms5607)
void ms5611_i2c_periodic_check(struct Ms5611_I2c *ms)
Periodic function to ensure proper delay after triggering reset or conversion.
struct i2c_transaction i2c_trans
static void ms5611_i2c_read(struct Ms5611_I2c *ms)
convenience function to trigger new measurement.
static void ms5611_i2c_periodic(struct Ms5611_I2c *ms)
convenience function
volatile bool data_available
data ready flag
int32_t prom_cnt
number of bytes read from PROM
void ms5611_i2c_start_conversion(struct Ms5611_I2c *ms)
bool is_ms5607
TRUE if MS5607, FALSE if MS5611.
struct i2c_periph * i2c_p
void ms5611_i2c_start_configure(struct Ms5611_I2c *ms)
bool initialized
config done flag
int int32_t
Typedef defining 32 bit int type.
unsigned char uint8_t
Typedef defining 8 bit unsigned char type.