Adafruit LSM6DS Sensors Library
Adafruit_LSM6DSO32.h
Go to the documentation of this file.
1 
18 #ifndef _ADAFRUIT_LSM6DSO32_H
19 #define _ADAFRUIT_LSM6DSO32_H
20 
21 #include "Adafruit_LSM6DS.h"
22 #include "Adafruit_LSM6DSOX.h"
23 #define LSM6DSO32_CHIP_ID 0x6C
24 
25 
26 typedef enum dso32_accel_range {
27  LSM6DSO32_ACCEL_RANGE_4_G,
28  LSM6DSO32_ACCEL_RANGE_32_G,
29  LSM6DSO32_ACCEL_RANGE_8_G,
30  LSM6DSO32_ACCEL_RANGE_16_G
32 
38 public:
40 
42  void setAccelRange(lsm6dso32_accel_range_t new_range);
43  void _read(void);
44 
45 private:
46  bool _init(int32_t sensor_id);
47 };
48 
49 #endif
enum dso32_accel_range lsm6dso32_accel_range_t
void setAccelRange(lsm6dso32_accel_range_t new_range)
Sets the accelerometer measurement range.
Definition: Adafruit_LSM6DSO32.cpp:135
dso32_accel_range
Definition: Adafruit_LSM6DSO32.h:26
Adafruit_LSM6DSO32()
Instantiates a new LSM6DSO32 class.
Definition: Adafruit_LSM6DSO32.cpp:19
lsm6dso32_accel_range_t getAccelRange(void)
Gets the accelerometer measurement range.
Definition: Adafruit_LSM6DSO32.cpp:120
void _read(void)
Updates the measurement data for all sensors simultaneously.
Definition: Adafruit_LSM6DSO32.cpp:62
Class that stores state and functions for interacting with the LSM6DSOX I2C Digital Potentiometer...
Definition: Adafruit_LSM6DSOX.h:42
Class that stores state and functions for interacting with the LSM6DSO32 I2C Digital Potentiometer...
Definition: Adafruit_LSM6DSO32.h:37