31#ifndef ITG320X_PARAM_DEV
32#define ITG320X_PARAM_DEV I2C_DEV(0)
34#ifndef ITG320X_PARAM_ADDR
35#define ITG320X_PARAM_ADDR (ITG320X_I2C_ADDRESS_1)
37#ifndef ITG320X_PARAM_LPF_BW
38#define ITG320X_PARAM_LPF_BW (ITG320X_LPF_BW_5)
40#ifndef ITG320X_PARAM_ISR_DIV
41#define ITG320X_PARAM_ISR_DIV (99)
43#ifndef ITG320X_PARAM_CLK_SEL
44#define ITG320X_PARAM_CLK_SEL (ITG320X_CLK_PLL_X_GYRO)
46#ifndef ITG320X_PARAM_INT_PIN
47#define ITG320X_PARAM_INT_PIN (GPIO_UNDEF)
49#ifndef ITG320X_PARAM_INT_LEVEL
50#define ITG320X_PARAM_INT_LEVEL (ITG320X_INT_LOW)
52#ifndef ITG320X_PARAM_INT_DRIVE
53#define ITG320X_PARAM_INT_DRIVE (ITG320X_INT_PUSH_PULL)
57#ifdef MODULE_ITG320X_INT
58#define ITG320X_PARAMS { \
59 .dev = ITG320X_PARAM_DEV, \
60 .addr = ITG320X_PARAM_ADDR, \
61 .lpf_bw = ITG320X_PARAM_LPF_BW, \
62 .isr_div = ITG320X_PARAM_ISR_DIV, \
63 .clk_sel = ITG320X_PARAM_CLK_SEL, \
64 .int_pin = ITG320X_PARAM_INT_PIN, \
65 .int_level = ITG320X_PARAM_INT_LEVEL, \
66 .int_drive = ITG320X_PARAM_INT_DRIVE, \
69#define ITG320X_PARAMS { \
70 .dev = ITG320X_PARAM_DEV, \
71 .addr = ITG320X_PARAM_ADDR, \
72 .lpf_bw = ITG320X_PARAM_LPF_BW, \
73 .isr_div = ITG320X_PARAM_ISR_DIV, \
74 .clk_sel = ITG320X_PARAM_CLK_SEL, \
79#ifndef ITG320X_SAUL_INFO
80#define ITG320X_SAUL_INFO { .name = "itg320x" }
Device driver for InvenSense ITG320X 3-axis gyroscope.
static const itg320x_params_t itg320x_params[]
Allocate some memory to store the actual configuration.
static const saul_reg_info_t itg320x_saul_info[]
Additional meta information to keep in the SAUL registry.
SAUL registry interface definition.
ITG320X device initialization parameters.
Additional data to collect for each entry.