Jose M Pulido / Mbed 2 deprecated razor

Dependencies:   mbed

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers SerialRazor.h Source File

SerialRazor.h

00001 #pragma once
00002 
00003 // This is a buffered serial reading class, using the serial interrupt introduced in mbed library version 18 on 17/11/09
00004 
00005 // In the simplest case, construct it with a buffer size at least equal to the largest message you 
00006 // expect your program to receive in one go.
00007 
00008 class SerialRazor : public Serial
00009 {
00010 public:
00011     SerialRazor( size_t bufferSize, PinName tx, PinName rx );
00012     virtual ~SerialRazor();
00013     float getRoll(void);
00014     float getPitch(void);
00015     float getYaw(void);
00016     
00017 
00018 
00019 private:
00020     
00021     void handleInterrupt();
00022     float roll;
00023     float pitch;
00024     float yaw;    
00025     char *m_buff;           
00026     uint16_t m_buffSize;
00027     
00028 
00029 };