Paparazzi UAS
v7.0_unstable
Paparazzi is a free software Unmanned Aircraft System.
|
Measurement Specialties (Intersema) MS5611-01BA and MS5607-02BA03 pressure/temperature sensor interface for I2C. More...
#include "peripherals/ms5611_i2c.h"
Go to the source code of this file.
Functions | |
void | ms5611_i2c_init (struct Ms5611_I2c *ms, struct i2c_periph *i2c_p, uint8_t addr, bool is_ms5607) |
void | ms5611_i2c_start_configure (struct Ms5611_I2c *ms) |
void | ms5611_i2c_start_conversion (struct Ms5611_I2c *ms) |
void | ms5611_i2c_periodic_check (struct Ms5611_I2c *ms) |
Periodic function to ensure proper delay after triggering reset or conversion. More... | |
void | ms5611_i2c_event (struct Ms5611_I2c *ms) |
Measurement Specialties (Intersema) MS5611-01BA and MS5607-02BA03 pressure/temperature sensor interface for I2C.
Definition in file ms5611_i2c.c.
void ms5611_i2c_event | ( | struct Ms5611_I2c * | ms | ) |
Definition at line 119 of file ms5611_i2c.c.
References i2c_transaction::buf, Ms5611Data::c, Ms5611Data::d1, Ms5611Data::d2, Ms5611_I2c::data, Ms5611_I2c::data_available, Ms5611_I2c::i2c_p, Ms5611_I2c::i2c_trans, i2c_transceive(), i2c_transmit(), I2CTransDone, I2CTransFailed, I2CTransSuccess, if(), Ms5611_I2c::initialized, Ms5611_I2c::is_ms5607, ms5607_calc(), ms5611_calc(), ms5611_prom_crc_ok(), MS5611_PROM_READ, MS5611_START_CONV_D2, MS5611_STATUS_ADC_D1, MS5611_STATUS_ADC_D2, MS5611_STATUS_CONV_D2, MS5611_STATUS_IDLE, MS5611_STATUS_PROM, MS5611_STATUS_UNINIT, Ms5611_I2c::prom_cnt, PROM_NB, i2c_transaction::slave_addr, i2c_transaction::status, and Ms5611_I2c::status.
Referenced by baro_event(), and baro_ms5611_event().
void ms5611_i2c_init | ( | struct Ms5611_I2c * | ms, |
struct i2c_periph * | i2c_p, | ||
uint8_t | addr, | ||
bool | is_ms5607 | ||
) |
Definition at line 33 of file ms5611_i2c.c.
References Ms5611_I2c::data_available, Ms5611_I2c::i2c_p, Ms5611_I2c::i2c_trans, I2CTransDone, Ms5611_I2c::initialized, Ms5611_I2c::is_ms5607, MS5611_STATUS_UNINIT, Ms5611_I2c::prom_cnt, i2c_transaction::slave_addr, i2c_transaction::status, and Ms5611_I2c::status.
Referenced by baro_init(), and baro_ms5611_init().
void ms5611_i2c_periodic_check | ( | struct Ms5611_I2c * | ms | ) |
Periodic function to ensure proper delay after triggering reset or conversion.
Should run at 100Hz max. Typical conversion time is 8.22ms at max resolution.
Definition at line 78 of file ms5611_i2c.c.
References i2c_transaction::buf, Ms5611_I2c::i2c_p, Ms5611_I2c::i2c_trans, i2c_transceive(), I2CTransDone, MS5611_ADC_READ, MS5611_PROM_READ, MS5611_STATUS_ADC_D1, MS5611_STATUS_ADC_D2, MS5611_STATUS_CONV_D1, MS5611_STATUS_CONV_D1_OK, MS5611_STATUS_CONV_D2, MS5611_STATUS_CONV_D2_OK, MS5611_STATUS_PROM, MS5611_STATUS_RESET, MS5611_STATUS_RESET_OK, Ms5611_I2c::prom_cnt, i2c_transaction::slave_addr, i2c_transaction::status, and Ms5611_I2c::status.
Referenced by baro_ms5611_periodic_check(), and ms5611_i2c_periodic().
void ms5611_i2c_start_configure | ( | struct Ms5611_I2c * | ms | ) |
Definition at line 51 of file ms5611_i2c.c.
References i2c_transaction::buf, Ms5611_I2c::i2c_p, Ms5611_I2c::i2c_trans, i2c_transmit(), Ms5611_I2c::initialized, MS5611_SOFT_RESET, MS5611_STATUS_RESET, MS5611_STATUS_UNINIT, Ms5611_I2c::prom_cnt, i2c_transaction::slave_addr, and Ms5611_I2c::status.
Referenced by ms5611_i2c_read().
void ms5611_i2c_start_conversion | ( | struct Ms5611_I2c * | ms | ) |
Definition at line 62 of file ms5611_i2c.c.
References i2c_transaction::buf, Ms5611_I2c::i2c_p, Ms5611_I2c::i2c_trans, i2c_transmit(), I2CTransDone, MS5611_START_CONV_D1, MS5611_STATUS_CONV_D1, MS5611_STATUS_IDLE, i2c_transaction::slave_addr, i2c_transaction::status, and Ms5611_I2c::status.
Referenced by ms5611_i2c_read().