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
Diff: FIZ_readers/FIZ_digiPower.h
- Revision:
- 16:a8d3a0dbe4bf
- Child:
- 80:0b7f1b85b626
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/FIZ_readers/FIZ_digiPower.h Fri Apr 30 11:26:34 2021 +0000 @@ -0,0 +1,25 @@ +#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 \ No newline at end of file