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/FIZDigiPowerActive.h

Committer:
AndyA
Date:
2021-06-29
Revision:
19:08e6a2283d58
Child:
71:7305a35cee58

File content as of revision 19:08e6a2283d58:

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

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

class FIZDigiPowerActive : public FIZReader
{

public:
    FIZDigiPowerActive(const PinName Tx, const PinName Rx);
    virtual void requestCurrent();

private:
    static const int InBufferSize = 32;

    void OnRx(void);
    void parsePacket();

    int missedPackets;
    uint8_t inputBuffer[InBufferSize];
    int inputPtr;
};


#endif