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