Adafruit LSM6DS Sensors Library
Adafruit_LSM6DSOX.h
Go to the documentation of this file.
1 
18 #ifndef _ADAFRUIT_LSM6DSOX_H
19 #define _ADAFRUIT_LSM6DSOX_H
20 
21 #include "Adafruit_LSM6DS.h"
22 
23 #define LSM6DSOX_CHIP_ID 0x6C
24 
25 #define LSM6DSOX_FUNC_CFG_ACCESS 0x1
26 #define LSM6DSOX_PIN_CTRL 0x2
27 
28 #define LSM6DSOX_INT1_CTRL 0x0D
29 #define LSM6DSOX_CTRL1_XL 0x10
30 #define LSM6DSOX_CTRL2_G 0x11
31 #define LSM6DSOX_CTRL3_C 0x12
32 #define LSM6DSOX_CTRL9_XL 0x18
33 
34 #define LSM6DSOX_MASTER_CONFIG 0x14
35 
43 public:
45 
46  void enableI2CMasterPullups(bool enable_pullups);
47  void disableSPIMasterPullups(bool disable_pullups);
48 
49 private:
50  bool _init(int32_t sensor_id);
51 };
52 
53 #endif
void disableSPIMasterPullups(bool disable_pullups)
Disables and enables the SPI master bus pulllups.
Definition: Adafruit_LSM6DSOX.cpp:60
void enableI2CMasterPullups(bool enable_pullups)
Enables and disables the I2C master bus pulllups.
Definition: Adafruit_LSM6DSOX.cpp:76
Base class for use with LSM6DS series acclerometer gyro sensors from STMicroelectronics. DO NOT USE DIRECTLY. Specific sensor variants should be subclassed as needed.
Definition: Adafruit_LSM6DS.h:140
Class that stores state and functions for interacting with the LSM6DSOX I2C Digital Potentiometer...
Definition: Adafruit_LSM6DSOX.h:42
Adafruit_LSM6DSOX()
Instantiates a new LSM6DSOX class.
Definition: Adafruit_LSM6DSOX.cpp:18