17#ifndef ITG320X_PARAMS_H
18#define ITG320X_PARAMS_H
32#ifndef ITG320X_PARAM_DEV
33#define ITG320X_PARAM_DEV I2C_DEV(0)
35#ifndef ITG320X_PARAM_ADDR
36#define ITG320X_PARAM_ADDR (ITG320X_I2C_ADDRESS_1)
38#ifndef ITG320X_PARAM_LPF_BW
39#define ITG320X_PARAM_LPF_BW (ITG320X_LPF_BW_5)
41#ifndef ITG320X_PARAM_ISR_DIV
42#define ITG320X_PARAM_ISR_DIV (99)
44#ifndef ITG320X_PARAM_CLK_SEL
45#define ITG320X_PARAM_CLK_SEL (ITG320X_CLK_PLL_X_GYRO)
47#ifndef ITG320X_PARAM_INT_PIN
48#define ITG320X_PARAM_INT_PIN (GPIO_UNDEF)
50#ifndef ITG320X_PARAM_INT_LEVEL
51#define ITG320X_PARAM_INT_LEVEL (ITG320X_INT_LOW)
53#ifndef ITG320X_PARAM_INT_DRIVE
54#define ITG320X_PARAM_INT_DRIVE (ITG320X_INT_PUSH_PULL)
58#ifdef MODULE_ITG320X_INT
59#define ITG320X_PARAMS { \
60 .dev = ITG320X_PARAM_DEV, \
61 .addr = ITG320X_PARAM_ADDR, \
62 .lpf_bw = ITG320X_PARAM_LPF_BW, \
63 .isr_div = ITG320X_PARAM_ISR_DIV, \
64 .clk_sel = ITG320X_PARAM_CLK_SEL, \
65 .int_pin = ITG320X_PARAM_INT_PIN, \
66 .int_level = ITG320X_PARAM_INT_LEVEL, \
67 .int_drive = ITG320X_PARAM_INT_DRIVE, \
70#define ITG320X_PARAMS { \
71 .dev = ITG320X_PARAM_DEV, \
72 .addr = ITG320X_PARAM_ADDR, \
73 .lpf_bw = ITG320X_PARAM_LPF_BW, \
74 .isr_div = ITG320X_PARAM_ISR_DIV, \
75 .clk_sel = ITG320X_PARAM_CLK_SEL, \
80#ifndef ITG320X_SAUL_INFO
81#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.