Go to the documentation of this file.
52 #ifndef CONFIG_L3G4200D_DEFAULT_ADDRESS
53 #define CONFIG_L3G4200D_DEFAULT_ADDRESS 0x68
Device initialization parameters.
int l3g4200d_disable(const l3g4200d_t *dev)
Power-down the given device.
i2c_t i2c
I2C device the sensor is connected to.
l3g4200d_params_t params
device initialization parameters
@ L3G4200D_MODE_800_30
data rate: 800Hz, cut-off: 30Hz
int l3g4200d_read(const l3g4200d_t *dev, l3g4200d_data_t *acc_data)
Read angular speed value in degree per second from gyro.
int l3g4200d_enable(const l3g4200d_t *dev)
Power-up the given device.
int l3g4200d_init(l3g4200d_t *dev, const l3g4200d_params_t *params)
Initialize a gyro.
unsigned int i2c_t
Default i2c_t type definition.
int16_t acc_x
roll rate in dgs (degree per second)
@ L3G4200D_MODE_400_25
data rate: 400Hz, cut-off: 25Hz
@ L3G4200D_MODE_200_50
data rate: 200Hz, cut-off: 50Hz
@ L3G4200D_MODE_400_50
data rate: 400Hz, cut-off: 50Hz
@ L3G4200D_MODE_200_25
data rate: 200Hz, cut-off: 25Hz
@ L3G4200D_MODE_200_70
data rate: 200Hz, cut-off: 70Hz
Device descriptor for L3G4200D sensors.
@ L3G4200D_MODE_400_20
data rate: 400Hz, cut-off: 20Hz
l3g4200d_mode_t
Sampling frequency and bandwidth settings for the gyro.
gpio_t int2
INT2 (DRDY) pin.
@ L3G4200D_MODE_800_50
data rate: 800Hz, cut-off: 50Hz
@ L3G4200D_MODE_100_25
data rate: 100Hz, cut-off: 25Hz
Low-level GPIO peripheral driver interface definitions.
int16_t acc_y
pitch rate in dgs
l3g4200d_scale_t
Measurement scale for the gyro.
@ L3G4200D_SCALE_2000DPS
scale: 2000 degree per second
int16_t acc_z
yaw rate in dgs
@ L3G4200D_SCALE_500DPS
scale: 500 degree per second
uint8_t addr
the sensors slave address on the I2C bus
l3g4200d_mode_t mode
sampling frequency and bandwidth mode
int32_t scale
internal scaling factor to normalize results
@ L3G4200D_MODE_100_12
data rate: 100Hz, cut-off: 12.5Hz
@ L3G4200D_MODE_800_35
data rate: 800Hz, cut-off: 35Hz
@ L3G4200D_MODE_400_110
data rate: 400Hz, cut-off: 110Hz
l3g4200d_scale_t scale
scaling factor to normalize results
Low-level I2C peripheral driver interface definition.
Result vector for gyro measurement.
@ L3G4200D_MODE_800_110
data rate: 800Hz, cut-off: 110Hz
@ L3G4200D_MODE_200_12
data rate: 200Hz, cut-off: 12.5Hz
@ L3G4200D_SCALE_250DPS
scale: 250 degree per second