Loading...
Searching...
No Matches

Default configuration for InvenSense ITG320X 3-axis gyroscope. More...

Detailed Description

Default configuration for InvenSense ITG320X 3-axis gyroscope.

Author
Gunar Schorcht gunar.nosp@m.@sch.nosp@m.orcht.nosp@m..net

Definition in file itg320x_params.h.

#include "board.h"
#include "itg320x.h"
#include "saul_reg.h"
+ Include dependency graph for itg320x_params.h:

Go to the source code of this file.

Variables

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.
 

Set default configuration parameters

#define ITG320X_PARAM_DEV   I2C_DEV(0)
 
#define ITG320X_PARAM_ADDR   (ITG320X_I2C_ADDRESS_1)
 
#define ITG320X_PARAM_LPF_BW   (ITG320X_LPF_BW_5)
 
#define ITG320X_PARAM_ISR_DIV   (99)
 
#define ITG320X_PARAM_CLK_SEL   (ITG320X_CLK_PLL_X_GYRO)
 
#define ITG320X_PARAM_INT_PIN   (GPIO_UNDEF)
 
#define ITG320X_PARAM_INT_LEVEL   (ITG320X_INT_LOW)
 
#define ITG320X_PARAM_INT_DRIVE   (ITG320X_INT_PUSH_PULL)
 
#define ITG320X_PARAMS
 
#define ITG320X_SAUL_INFO   { .name = "itg320x" }
 

Macro Definition Documentation

◆ ITG320X_PARAM_ADDR

#define ITG320X_PARAM_ADDR   (ITG320X_I2C_ADDRESS_1)

Definition at line 36 of file itg320x_params.h.

◆ ITG320X_PARAM_CLK_SEL

#define ITG320X_PARAM_CLK_SEL   (ITG320X_CLK_PLL_X_GYRO)

Definition at line 45 of file itg320x_params.h.

◆ ITG320X_PARAM_DEV

#define ITG320X_PARAM_DEV   I2C_DEV(0)

Definition at line 33 of file itg320x_params.h.

◆ ITG320X_PARAM_INT_DRIVE

#define ITG320X_PARAM_INT_DRIVE   (ITG320X_INT_PUSH_PULL)

Definition at line 54 of file itg320x_params.h.

◆ ITG320X_PARAM_INT_LEVEL

#define ITG320X_PARAM_INT_LEVEL   (ITG320X_INT_LOW)

Definition at line 51 of file itg320x_params.h.

◆ ITG320X_PARAM_INT_PIN

#define ITG320X_PARAM_INT_PIN   (GPIO_UNDEF)

Definition at line 48 of file itg320x_params.h.

◆ ITG320X_PARAM_ISR_DIV

#define ITG320X_PARAM_ISR_DIV   (99)

Definition at line 42 of file itg320x_params.h.

◆ ITG320X_PARAM_LPF_BW

#define ITG320X_PARAM_LPF_BW   (ITG320X_LPF_BW_5)

Definition at line 39 of file itg320x_params.h.

◆ ITG320X_PARAMS

#define ITG320X_PARAMS
Value:
{ \
.dev = ITG320X_PARAM_DEV, \
.addr = ITG320X_PARAM_ADDR, \
.lpf_bw = ITG320X_PARAM_LPF_BW, \
.isr_div = ITG320X_PARAM_ISR_DIV, \
.clk_sel = ITG320X_PARAM_CLK_SEL, \
}

Definition at line 70 of file itg320x_params.h.

◆ ITG320X_SAUL_INFO

#define ITG320X_SAUL_INFO   { .name = "itg320x" }

Definition at line 81 of file itg320x_params.h.

Variable Documentation

◆ itg320x_params

const itg320x_params_t itg320x_params[]
static
Initial value:
=
{
ITG320X_PARAMS
}

Allocate some memory to store the actual configuration.

Definition at line 88 of file itg320x_params.h.

◆ itg320x_saul_info

const saul_reg_info_t itg320x_saul_info[]
static
Initial value:
=
{
ITG320X_SAUL_INFO
}

Additional meta information to keep in the SAUL registry.

Definition at line 96 of file itg320x_params.h.