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_DISNEY.h@80:0b7f1b85b626, 2022-08-30 (annotated)
- Committer:
- JamieB
- Date:
- Tue Aug 30 09:33:44 2022 +0000
- Revision:
- 80:0b7f1b85b626
- Parent:
- 16:a8d3a0dbe4bf
Added Lens map configuration options
Who changed what in which revision?
User | Revision | Line number | New 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 | |
JamieB | 80:0b7f1b85b626 | 24 | #endif |