void ms5611_i2c_start_configure(struct Ms5611_I2c *ms)
bool is_ms5607
TRUE if MS5607, FALSE if MS5611.
int32_t prom_cnt
number of bytes read from PROM
MS5611 barometer driver common interface (I2C and SPI).
void ms5611_i2c_start_conversion(struct Ms5611_I2c *ms)
volatile bool data_available
data ready flag
void ms5611_i2c_periodic_check(struct Ms5611_I2c *ms)
Periodic function to ensure proper delay after triggering reset or conversion.
static void ms5611_i2c_periodic(struct Ms5611_I2c *ms)
convenience function
I2C transaction structure.
I2C peripheral structure.
struct i2c_transaction i2c_trans
bool initialized
config done flag
struct i2c_periph * i2c_p
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)
static void ms5611_i2c_read(struct Ms5611_I2c *ms)
convenience function to trigger new measurement.
Architecture independent I2C (Inter-Integrated Circuit Bus) API.