libkovan
1
The kovan standard library
accel.hpp
Go to the documentation of this file.
1
#ifndef _ACCEL_HPP_
2
#define _ACCEL_HPP_
3
4
#include "
export.h
"
5
#include "
sensor.hpp
"
6
7
class
Acceleration
8
{
9
public
:
10
static
short
x
();
11
static
short
y
();
12
static
short
z
();
13
static
bool
calibrate
();
14
private
:
15
static
void
setupI2C();
16
static
bool
s_setup;
17
};
18
19
class
AccelX
:
public
Sensor
<short>
20
{
21
public
:
22
virtual
short
value
()
const
;
23
};
24
25
class
AccelY
:
public
Sensor
<short>
26
{
27
public
:
28
virtual
short
value
()
const
;
29
};
30
31
class
AccelZ
:
public
Sensor
<short>
32
{
33
public
:
34
virtual
short
value
()
const
;
35
};
36
37
#endif
Acceleration::x
static short x()
Sensor
The base class for all sensors of any type.
Definition:
sensor.hpp:45
Acceleration::y
static short y()
Acceleration::calibrate
static bool calibrate()
export.h
AccelX
Definition:
accel.hpp:19
AccelX::value
virtual short value() const
sensor.hpp
Base sensor classes.
Acceleration::z
static short z()
Acceleration
Definition:
accel.hpp:7
AccelY
Definition:
accel.hpp:25
AccelY::value
virtual short value() const
AccelZ
Definition:
accel.hpp:31
AccelZ::value
virtual short value() const
include
kovan
accel.hpp
Generated on Tue Aug 30 2016 08:52:43 for libkovan by
1.8.9.1