|
ChibiOS 21.11.4
|
LSM303AGR MEMS interface module header. More...
Go to the source code of this file.
Data Structures | |
| struct | LSM303AGRConfig |
| LSM303AGR configuration structure. More... | |
| struct | LSM303AGRVMT |
LSM303AGR virtual methods table. More... | |
| struct | LSM303AGRDriver |
| LSM303AGR 6-axis accelerometer/compass class. More... | |
Enumerations | |
LSM303AGR compass subsystem data structures and types. | |
| enum | lsm303agr_comp_odr_t { LSM303AGR_COMP_ODR_10HZ = 0x00 , LSM303AGR_COMP_ODR_20HZ = 0x04 , LSM303AGR_COMP_ODR_50HZ = 0x08 , LSM303AGR_COMP_ODR_100HZ = 0x0C } |
| LSM303AGR compass subsystem output data rate. More... | |
| enum | lsm303agr_comp_mode_t { LSM303AGR_COMP_MODE_NORM = 0x00 , LSM303AGR_COMP_MODE_SINGLE = 0x01 , LSM303AGR_COMP_MODE_IDLE = 0x02 } |
| LSM303AGR compass subsystem working mode. More... | |
| enum | lsm303agr_comp_lpow_t { LSM303AGR_COMP_LPOW_DIS = 0x00 , LSM303AGR_COMP_LPOW_EN = 0x10 } |
| LSM303AGR compass subsystem working mode. More... | |
Functions | |
| void | lsm303agrObjectInit (LSM303AGRDriver *devp) |
| Initializes an instance. | |
| void | lsm303agrStart (LSM303AGRDriver *devp, const LSM303AGRConfig *config) |
| Configures and activates LSM303AGR Complex Driver peripheral. | |
| void | lsm303agrStop (LSM303AGRDriver *devp) |
| Deactivates the LSM303AGR Complex Driver peripheral. | |
LSM303AGR main system data structures and types. | |
| #define | _lsm303agr_methods_alone |
LSM303AGR specific methods. | |
| #define | _lsm303agr_methods |
LSM303AGR specific methods with inherited ones. | |
| #define | _lsm303agr_data |
LSM303AGRDriver specific data. | |
| enum | lsm303agr_state_t { LSM303AGR_UNINIT = 0 , LSM303AGR_STOP = 1 , LSM303AGR_READY = 2 } |
| Driver state machine possible states. More... | |
LSM303AGR MEMS interface module header.
Definition in file lsm303agr.h.