|
Paparazzi UAS
v5.18.0_stable
Paparazzi is a free software Unmanned Aircraft System.
|
Go to the documentation of this file.
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
uint8_t smplrt_div
Sample rate divider.
struct Itg3200Config 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.
void itg3200_set_default_config(struct Itg3200Config *conf)
bool initialized
config done flag
void itg3200_read(struct Itg3200 *itg)
void itg3200_event(struct Itg3200 *itg)
uint8_t int_cfg
Interrupt config.
void itg3200_start_configure(struct Itg3200 *itg)
Paparazzi fixed point algebra.
Itg3200DLPF
Digital Low Pass Filter Options.
enum Itg3200ConfStatus init_status
init status
struct i2c_periph * i2c_p
struct i2c_transaction i2c_trans
enum Itg3200DLPF dlpf_cfg
Digital Low Pass Filter.
I2C transaction structure.
uint8_t clk_sel
Clock select.
Itg3200ConfStatus
config status states
volatile bool data_available
data ready flag
static void itg3200_periodic(struct Itg3200 *itg)
convenience function: read or start configuration if not already initialized