40 LSM6DSXX_DATA_RATE_POWER_DOWN = 0x0,
41 LSM6DSXX_DATA_RATE_1_6HZ = 0xB,
42 LSM6DSXX_DATA_RATE_12_5HZ = 0x1,
43 LSM6DSXX_DATA_RATE_26HZ = 0x2,
44 LSM6DSXX_DATA_RATE_52HZ = 0x3,
45 LSM6DSXX_DATA_RATE_104HZ = 0x4,
46 LSM6DSXX_DATA_RATE_208HZ = 0x5,
47 LSM6DSXX_DATA_RATE_416HZ = 0x6,
48 LSM6DSXX_DATA_RATE_833HZ = 0x7,
49 LSM6DSXX_DATA_RATE_1_66KHZ = 0x8,
50 LSM6DSXX_DATA_RATE_3_33KHZ = 0x9,
51 LSM6DSXX_DATA_RATE_6_66KHZ = 0xa,
58 LSM6DSXX_DECIMATION_NOT_IN_FIFO = 0,
59 LSM6DSXX_DECIMATION_NO,
60 LSM6DSXX_DECIMATION_2,
61 LSM6DSXX_DECIMATION_3,
62 LSM6DSXX_DECIMATION_4,
63 LSM6DSXX_DECIMATION_8,
64 LSM6DSXX_DECIMATION_16,
65 LSM6DSXX_DECIMATION_32,
72 LSM6DSXX_ACC_FS_2G = 0,
83 LSM6DSXX_GYRO_FS_245DPS = 0,
84 LSM6DSXX_GYRO_FS_500DPS,
85 LSM6DSXX_GYRO_FS_1000DPS,
86 LSM6DSXX_GYRO_FS_2000DPS,
int lsm6dsxx_acc_power_down(const lsm6dsxx_t *dev)
Power down accelerometer.
int lsm6dsxx_gyro_power_down(const lsm6dsxx_t *dev)
Power down gyroscope.
int lsm6dsxx_gyro_power_up(const lsm6dsxx_t *dev)
Power up gyroscope.
int lsm6dsxx_acc_power_up(const lsm6dsxx_t *dev)
Power up accelerometer.
int lsm6dsxx_read_acc(const lsm6dsxx_t *dev, lsm6dsxx_3d_data_t *data)
Read accelerometer data.
int lsm6dsxx_init(lsm6dsxx_t *dev, const lsm6dsxx_params_t *params)
Initialize a LSM6DSXX device.
int lsm6dsxx_read_gyro(const lsm6dsxx_t *dev, lsm6dsxx_3d_data_t *data)
Read gyroscope data.
int lsm6dsxx_read_temp(const lsm6dsxx_t *dev, int16_t *data)
Read temperature data.
@ LSM6DSXX_ERROR_DEV
device error
@ LSM6DSXX_ERROR_CNF
Config error.
@ LSM6DSXX_ERROR_BUS
I2C bus error.
uint_fast8_t i2c_t
Default i2c_t type definition.
Low-level I2C peripheral driver interface definition.
LSM6DSXX driver parameters.
uint8_t acc_fs
accelerometer full scale
uint8_t acc_odr
accelerometer output data rate
uint8_t gyro_odr
gyroscope output data rate
uint8_t gyro_decimation
gyroscope decimation
uint8_t gyro_fs
gyroscope full scale
uint8_t acc_decimation
accelerometer decimation
LSM6DSXX device descriptor.
uint8_t temperature_scaling_factor
temperature scaling factor
lsm6dsxx_params_t params
driver parameters