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