I messed up the merge, so pushing it over to another repo so I don't lose it. Will tidy up and remove later

Dependencies:   BufferedSerial FatFileSystemCpp mbed

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers FIZ_digiPower.h Source File

FIZ_digiPower.h

00001 #ifndef __FIZDigi_H__
00002 #define __FIZDigi_H__
00003 #include "FIZReader.h"
00004 
00005 //FIZ protocol used for digipower box.
00006 // this is listen only.
00007 
00008 class FIZDigiPower : public FIZReader {
00009 
00010 public:
00011   FIZDigiPower(const PinName Tx, const PinName Rx);
00012   virtual void requestCurrent();
00013   
00014   private:
00015   static const int InBufferSize = 32;
00016   
00017   void OnRx(void);
00018   void parsePacket();
00019   
00020   uint8_t inputBuffer[InBufferSize];
00021   int inputPtr;
00022   };
00023 
00024 
00025 #endif