|
Paparazzi UAS
v5.18.0_stable
Paparazzi is a free software Unmanned Aircraft System.
|
uint8_t mode
Measurement mode.
struct i2c_transaction i2c_trans
uint8_t meas
Measurement configuration.
enum Hmc58xxConfStatus init_status
init status
uint8_t gain
Gain configuration (1 -> +- 1 Gauss)
Paparazzi fixed point algebra.
void hmc58xx_read(struct Hmc58xx *hmc)
void hmc58xx_start_configure(struct Hmc58xx *hmc)
static void hmc58xx_periodic(struct Hmc58xx *hmc)
convenience function: read or start configuration if not already initialized
Hmc58xxConfStatus
config status states
I2C transaction structure.
uint16_t adc_overflow_cnt
counts number of ADC measurement under/overflows
uint8_t rate
Data Output Rate Bits(6 -> 50Hz with HMC5843, 75Hz with HMC5883)
void hmc58xx_event(struct Hmc58xx *hmc)
void hmc58xx_init(struct Hmc58xx *hmc, struct i2c_periph *i2c_p, uint8_t addr)
Initialize Hmc58xx struct and set default config options.
struct Hmc58xxConfig config
volatile bool data_available
data ready flag
struct i2c_periph * i2c_p
bool initialized
config done flag