66 #endif // LPS25H_I2C_H
LPS25H barometer driver interface.
void lps25h_i2c_start_configure(struct Lps25h_I2c *lps)
float pressureToAltMeters(float pressure_mbar, float altimeter_setting_mbar)
struct Lps25hConfig config
enum Lps25hConfStatus init_status
init status
void lps25h_i2c_event(struct Lps25h_I2c *lps)
float lps25h_readPressureMillibars(int32_t press)
I2C transaction structure.
bool initialized
config done flag
void lps25h_i2c_read(struct Lps25h_I2c *lps)
struct i2c_periph * i2c_p
static void lps25h_i2c_periodic(struct Lps25h_I2c *lps)
volatile bool data_available
data ready flag
void lps25h_i2c_init(struct Lps25h_I2c *lps, struct i2c_periph *i2c_p, uint8_t addr)
struct i2c_transaction i2c_trans
Paparazzi fixed point algebra.
Architecture independent I2C (Inter-Integrated Circuit Bus) API.