-
Notifications
You must be signed in to change notification settings - Fork 40
/
Adafruit_LSM6DS3TRC.h
43 lines (35 loc) · 1 KB
/
Adafruit_LSM6DS3TRC.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
/*!
* @file Adafruit_LSM6DSL.h
*
* I2C Driver for the Adafruit LSM6DSL 6-DoF Accelerometer and Gyroscope
*library
*
* This is a library for the Adafruit LSM6DSL breakout:
* https://www.adafruit.com/
*
* Adafruit invests time and resources providing this open source code,
* please support Adafruit and open-source hardware by purchasing products from
* Adafruit!
*
*
* BSD license (see license.txt)
*/
#ifndef _ADAFRUIT_LSM6DS3TRC_H
#define _ADAFRUIT_LSM6DS3TRC_H
#include "Adafruit_LSM6DS.h"
#define LSM6DS3TRC_CHIP_ID 0x6A ///< LSM6DSL default device id from WHOAMI
#define LSM6DS3TRC_MASTER_CONFIG 0x1A ///< I2C Master config
/*!
* @brief Class that stores state and functions for interacting with
* the LSM6DS3TRC
*/
class Adafruit_LSM6DS3TRC : public Adafruit_LSM6DS {
public:
Adafruit_LSM6DS3TRC();
~Adafruit_LSM6DS3TRC(){};
void enableI2CMasterPullups(bool enable_pullups);
void enablePedometer(bool enable);
private:
bool _init(int32_t sensor_id);
};
#endif