![](/media/cache/group/Racelogic_Blue_Logo.jpg.50x50_q85.jpg)
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_DISNEY.h
- Revision:
- 16:a8d3a0dbe4bf
- Child:
- 80:0b7f1b85b626
diff -r 830fc953edd9 -r a8d3a0dbe4bf FIZ_readers/FIZ_DISNEY.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/FIZ_readers/FIZ_DISNEY.h Fri Apr 30 11:26:34 2021 +0000 @@ -0,0 +1,24 @@ +#ifndef __FIZDisney_H__ +#define __FIZDisney_H__ +#include "FIZReader.h" + +//FIZ protocol used for Disney project + +class FIZDisney : public FIZReader { + +public: + FIZDisney(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