41 #define ITG3200_DEFAULT_SMPLRT_DIV 0
42 #define ITG3200_DEFAULT_FS_SEL 3
44 #define ITG3200_DEFAULT_DLPF_CFG ITG3200_DLPF_42HZ
46 #define ITG3200_DEFAULT_INT_CFG 1
48 #define ITG3200_DEFAULT_CLK_SEL 1
void itg3200_event(struct Itg3200 *itg)
void itg3200_read(struct Itg3200 *itg)
void itg3200_set_default_config(struct Itg3200Config *conf)
uint8_t smplrt_div
Sample rate divider.
void itg3200_start_configure(struct Itg3200 *itg)
uint8_t int_cfg
Interrupt config.
uint8_t fs_sel
Full scale range.
void itg3200_init(struct Itg3200 *itg, struct i2c_periph *i2c_p, uint8_t i2c_address)
Initialize Itg3200 struct and set default config options.
struct i2c_periph * i2c_p
Itg3200DLPF
Digital Low Pass Filter Options.
struct i2c_transaction i2c_trans
enum Itg3200ConfStatus init_status
init status
Register defs for ITG3200 and IMU3000 gyros.
uint8_t clk_sel
Clock select.
Itg3200ConfStatus
config status states
I2C transaction structure.
enum Itg3200DLPF dlpf_cfg
Digital Low Pass Filter.
static void itg3200_periodic(struct Itg3200 *itg)
convenience function: read or start configuration if not already initialized
volatile bool data_available
data ready flag
struct Itg3200Config config
bool initialized
config done flag
Paparazzi fixed point algebra.
Architecture independent I2C (Inter-Integrated Circuit Bus) API.