V0.1

Fork of MotionSensor by Components

Files at this revision

API Documentation at this revision

Comitter:
JimCarver
Date:
Wed Apr 23 22:00:18 2014 +0000
Parent:
1:821b100de6e1
Commit message:
Preliminary Version

Changed in this revision

MotionSensor.h Show annotated file Show diff for this revision Revisions of this file
diff -r 821b100de6e1 -r efad17aa7c8e MotionSensor.h
--- a/MotionSensor.h	Wed Apr 23 17:12:04 2014 +0000
+++ b/MotionSensor.h	Wed Apr 23 22:00:18 2014 +0000
@@ -17,18 +17,18 @@
 class MotionSensor
 {
 public:
-    virtual MotionSensor();
+    //virtual MotionSensor();
     virtual void enable(void) = 0;
     virtual void disable(void) = 0;
     virtual uint32_t sampleRate(uint32_t frequency) = 0;
     virtual uint32_t whoAmI(void) = 0;
-    virtual int32_t dataReady(void) = 0;
-    virtual uint16_t getX(void) = 0;
-    virtual uint16_t getY(void) = 0;
-    virtual uint16_t getZ(void) = 0;
-    virtual float getX(void) = 0;
-    virtual float getY(void) = 0;
-    virtual float getZ(void) = 0;
+    virtual uint32_t dataReady(void) = 0;
+    virtual void getX(int16_t * x) = 0;
+    virtual void getY(int16_t * y) = 0;
+    virtual void getZ(int16_t * z) = 0;
+    virtual void getX(float * x) = 0;
+    virtual void getY(float * y) = 0;
+    virtual void getZ(float * z) = 0;
     virtual void getAxis(MotionSensorDataCounts * data) = 0;
     virtual void getAxis(MotionSensorDataUnits * data) = 0;
 };