53 #define E_AHRS_REGSDIFFER ( E_AHRS + 1 )
54 #define E_AHRS_REGSDIFFER_DESCR "Returned register differs"
56 #define AHRS_VALID_CNT_NUM 5000
59 #define AHRS_REG_DATA 0x00
60 #define AHRS_REG_KALMAN_ENABLED 0x32
61 #define AHRS_REG_VERSION 0x33
void ahrsOff()
Switch off the AHRS.
void ahrsOn()
Switch on the AHRS.
bool ahrsGetVersion(I2C_Device *dev, uint8_t addr, uint8_t *version)
Reads the AHRS version.
Structure defines OpenCores I2C Device.
Special library for primitive IEEE 754 floating point handling without dragging all float support alo...
Structure defines data from a compass/tilt/gyro sensor.
bool ahrsWriteReg(I2C_Device *dev, uint8_t addr, uint8_t reg_addr, f32_t newvalue, f32_t *readback)
Writes an AHRS register.
bool ahrsRead(I2C_Device *dev, uint8_t addr, CompassData *data)
Reads all data from the AHRS.
uint32_t f32_t
32 bit representation for float.
This module is responsible for distributing error codes.
bool ahrsReadReg(I2C_Device *dev, uint8_t addr, uint8_t reg_addr, f32_t *value)
Reads an AHRS register.
OpenCores I2C device driver.