Device Driver for ST L3Gxxxx 3-axis gyroscope sensor family.
Definition in file l3gxxxx.h.
|
enum | l3gxxxx_error_codes_t {
L3GXXXX_OK
, L3GXXXX_ERROR_I2C
, L3GXXXX_ERROR_SPI
, L3GXXXX_ERROR_WRONG_CHIP_ID
,
L3GXXXX_ERROR_INV_DEV
, L3GXXXX_ERROR_INV_MODE
, L3GXXXX_ERROR_INV_FIFO_MODE
, L3GXXXX_ERROR_INV_INT_TYPE
,
L3GXXXX_ERROR_NO_NEW_DATA
, L3GXXXX_ERROR_RAW_DATA
, L3GXXXX_ERROR_RAW_DATA_FIFO
, L3GXXXX_ERROR_NO_INT1_PIN
,
L3GXXXX_ERROR_NO_INT2_PIN
, L3GXXXX_ERROR_BYPASS_MODE
, L3GXXXX_ERROR_FIFO_MODE
} |
| Definition of error codes. More...
|
|
enum | l3gxxxx_odr_t {
L3GXXXX_ODR_100_12 = 0x00
, L3GXXXX_ODR_100_25 = 0x01
, L3GXXXX_ODR_200_12 = 0x04
, L3GXXXX_ODR_200_25 = 0x05
,
L3GXXXX_ODR_200_50 = 0x06
, L3GXXXX_ODR_200_70 = 0x07
, L3GXXXX_ODR_400_20 = 0x08
, L3GXXXX_ODR_400_25 = 0x09
,
L3GXXXX_ODR_400_50 = 0x0a
, L3GXXXX_ODR_400_110 = 0x0b
, L3GXXXX_ODR_800_30 = 0x0c
, L3GXXXX_ODR_800_35 = 0x0d
,
L3GXXXX_ODR_800_50 = 0x0e
, L3GXXXX_ODR_800_100 = 0x0f
, L3GXXXX_ODR_12 = 0x10
, L3GXXXX_ODR_25 = 0x14
,
L3GXXXX_ODR_50 = 0x18
} |
| Sensor output data rates (ODR) and LPF2 cutoff frequencies. More...
|
|
enum | l3gxxxx_scale_t { L3GXXXX_SCALE_245_DPS = 0
, L3GXXXX_SCALE_500_DPS = 1
, L3GXXXX_SCALE_2000_DPS = 2
} |
| Full scale in degrees per second (dps) More...
|
|
enum | l3gxxxx_fifo_mode_t {
L3GXXXX_BYPASS = 0
, L3GXXXX_FIFO = 1
, L3GXXXX_STREAM = 2
, L3GXXXX_STREAM_TO_FIFO = 3
,
L3GXXXX_BYPASS_TO_STREAM = 4
, L3GXXXX_DYNAMIC_STREAM = 6
, L3GXXXX_BYPASS_TO_FIFO = 7
} |
| FIFO mode. More...
|
|
enum | l3gxxxx_filter_sel_t { L3GXXXX_NO_FILTER = 0
, L3GXXXX_HPF_ONLY = 1
, L3GXXXX_LPF2_ONLY = 2
, L3GXXXX_HPF_AND_LPF2 = 3
} |
| High pass filter (HPF) and low pass filter 2 (LPF2) selection. More...
|
|
enum | l3gxxxx_hpf_mode_t { L3GXXXX_HPF_NORMAL = 0
, L3GXXXX_HPF_REFERENCE = 1
, L3GXXXX_HPF_AUTORESET = 3
} |
| HPF (high pass filter) modes. More...
|
|
enum | l3gxxxx_int_types_t {
L3GXXXX_INT_DATA_READY = L3GXXXX_INT2_DRDY
, L3GXXXX_INT_FIFO_WATERMARK = L3GXXXX_INT2_WTM
, L3GXXXX_INT_FIFO_OVERRUN = L3GXXXX_INT2_ORUN
, L3GXXXX_INT_FIFO_EMPTY = L3GXXXX_INT2_EMPTY
,
L3GXXXX_INT_EVENT = L3GXXXX_INT1_IG
} |
| Interrupt types. More...
|
|
enum | l3gxxxx_int_pin_level_t { L3GXXXX_HIGH = 0
, L3GXXXX_LOW
} |
| INT1 , INT2/DRDY sensor signal activity level More...
|
|
enum | l3gxxxx_int_pin_type_t { L3GXXXX_PUSH_PULL = 0
, L3GXXXX_OPEN_DRAIN
} |
| INT1 , INT2/DRDY sensor signal type More...
|
|
enum | l3gxxxx_if_t { L3GXXXX_I2C
, L3GXXXX_SPI
} |
| L3Gxxxx interface types. More...
|
|