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

Committer:
AndyA
Date:
Fri Apr 30 11:26:34 2021 +0000
Revision:
16:a8d3a0dbe4bf
Child:
80:0b7f1b85b626
Add support for multiple types of FIZ reader.; Added support for digipower FIZ as used by skycam

Who changed what in which revision?

UserRevisionLine numberNew contents of line
AndyA 16:a8d3a0dbe4bf 1 #ifndef __FIZDisney_H__
AndyA 16:a8d3a0dbe4bf 2 #define __FIZDisney_H__
AndyA 16:a8d3a0dbe4bf 3 #include "FIZReader.h"
AndyA 16:a8d3a0dbe4bf 4
AndyA 16:a8d3a0dbe4bf 5 //FIZ protocol used for Disney project
AndyA 16:a8d3a0dbe4bf 6
AndyA 16:a8d3a0dbe4bf 7 class FIZDisney : public FIZReader {
AndyA 16:a8d3a0dbe4bf 8
AndyA 16:a8d3a0dbe4bf 9 public:
AndyA 16:a8d3a0dbe4bf 10 FIZDisney(const PinName Tx, const PinName Rx);
AndyA 16:a8d3a0dbe4bf 11 virtual void requestCurrent();
AndyA 16:a8d3a0dbe4bf 12
AndyA 16:a8d3a0dbe4bf 13 private:
AndyA 16:a8d3a0dbe4bf 14 static const int InBufferSize = 32;
AndyA 16:a8d3a0dbe4bf 15
AndyA 16:a8d3a0dbe4bf 16 void OnRx(void);
AndyA 16:a8d3a0dbe4bf 17 void parsePacket();
AndyA 16:a8d3a0dbe4bf 18
AndyA 16:a8d3a0dbe4bf 19 uint8_t inputBuffer[InBufferSize];
AndyA 16:a8d3a0dbe4bf 20 int inputPtr;
AndyA 16:a8d3a0dbe4bf 21 };
AndyA 16:a8d3a0dbe4bf 22
AndyA 16:a8d3a0dbe4bf 23
AndyA 16:a8d3a0dbe4bf 24 #endif