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 
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
static short x()
The base class for all sensors of any type.
Definition: sensor.hpp:45
static short y()
static bool calibrate()
Definition: accel.hpp:19
virtual short value() const
Base sensor classes.
static short z()
Definition: accel.hpp:7
Definition: accel.hpp:25
virtual short value() const
Definition: accel.hpp:31
virtual short value() const