iNEMO inertial module: 3D accelerometer and 3D gyroscope.
Dependencies: X_NUCLEO_COMMON ST_INTERFACES
Diff: LSM6DSOXSensor.h
- Revision:
- 3:d89217a05f63
- Parent:
- 2:6f62c931be0b
--- a/LSM6DSOXSensor.h Thu Oct 29 12:49:31 2020 +0000 +++ b/LSM6DSOXSensor.h Fri Oct 30 07:36:01 2020 +0000 @@ -98,6 +98,17 @@ unsigned int SleepStatus : 1; } LSM6DSOX_Event_Status_t; +typedef struct { + unsigned int is_mlc1 : 1; + unsigned int is_mlc2 : 1; + unsigned int is_mlc3 : 1; + unsigned int is_mlc4 : 1; + unsigned int is_mlc5 : 1; + unsigned int is_mlc6 : 1; + unsigned int is_mlc7 : 1; + unsigned int is_mlc8 : 1; +} LSM6DSOX_MLC_Status_t; + /* Class Declaration ---------------------------------------------------------*/ @@ -184,6 +195,8 @@ int set_fifo_x_bdr(float bdr); int get_fifo_g_axes(int32_t *angular_velocity); int set_fifo_g_bdr(float bdr); + int get_mlc_status(LSM6DSOX_MLC_Status_t *status); + int get_mlc_output(uint8_t *output); /** * @brief Attaching an interrupt handler to the INT1 interrupt.