Dependencies:   mbed

Revision:
0:87f191bdb9ab
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/SerialRazor.h	Tue Oct 12 13:26:58 2010 +0000
@@ -0,0 +1,29 @@
+#pragma once
+
+// This is a buffered serial reading class, using the serial interrupt introduced in mbed library version 18 on 17/11/09
+
+// In the simplest case, construct it with a buffer size at least equal to the largest message you 
+// expect your program to receive in one go.
+
+class SerialRazor : public Serial
+{
+public:
+    SerialRazor( size_t bufferSize, PinName tx, PinName rx );
+    virtual ~SerialRazor();
+    float getRoll(void);
+    float getPitch(void);
+    float getYaw(void);
+    
+
+
+private:
+    
+    void handleInterrupt();
+    float roll;
+    float pitch;
+    float yaw;    
+    char *m_buff;           
+    uint16_t m_buffSize;
+    
+
+};
\ No newline at end of file