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

FIZ_readers/FIZ_digiPower.h

Committer:
JamieB
Date:
21 months ago
Revision:
85:0cc5931bb9ef
Parent:
80:0b7f1b85b626

File content as of revision 85:0cc5931bb9ef:

#ifndef __FIZDigi_H__
#define __FIZDigi_H__
#include "FIZReader.h"

//FIZ protocol used for digipower box.
// this is listen only.

class FIZDigiPower : public FIZReader {

public:
  FIZDigiPower(const PinName Tx, const PinName Rx);
  virtual void requestCurrent();
  
  private:
  static const int InBufferSize = 32;
  
  void OnRx(void);
  void parsePacket();
  
  uint8_t inputBuffer[InBufferSize];
  int inputPtr;
  };


#endif