Treehopper C++ API
Lis3dh.h
Go to the documentation of this file.
1
#pragma once
2
3
#include "
Libraries/Treehopper.Libraries.h
"
4
#include "
Libraries/Sensors/Inertial/Lis3dhRegisters.h
"
5
#include "
Accelerometer.h
"
6
7
namespace
Treehopper
{
8
namespace
Libraries {
9
namespace
Sensors {
10
namespace
Inertial {
11
class
LIBRARIES_API
Lis3dh
:
public
virtual
Accelerometer
{
12
public
:
13
Lis3dh
(
I2c
&i2c,
bool
sdo =
false
,
int
rate = 100);
14
15
void
update();
16
17
private
:
18
Lis3dhRegisters registers;
19
SMBusDevice
_dev;
20
};
21
}
22
}
23
}
24
}
Treehopper::I2c
Base I2c interface.
Definition:
I2c.h:10
Treehopper::SMBusDevice
Definition:
SMBusDevice.h:7
Treehopper::Libraries::Sensors::Inertial::Accelerometer
Definition:
Accelerometer.h:14
Treehopper::Libraries::Sensors::Inertial::Lis3dh
Definition:
Lis3dh.h:11
LIBRARIES_API
#define LIBRARIES_API
Definition:
Treehopper.Libraries.h:17
Treehopper
Definition:
AdcPin.h:3
Treehopper.Libraries.h
Lis3dhRegisters.h
Accelerometer.h
C++
API
inc
Libraries
Sensors
Inertial
Lis3dh.h