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:
JamieB
Date:
Tue Feb 08 09:17:48 2022 +0000
Revision:
71:7305a35cee58
Parent:
19:08e6a2283d58
Child:
80:0b7f1b85b626
Updated Fuji Lens Parsing to L10 v1.90 of Protocol, added (but commented out) ability to read static lens parameters (needs updating to non-blocking serial read)

Who changed what in which revision?

UserRevisionLine numberNew contents of line
AndyA 19:08e6a2283d58 1 #ifndef __FIZDigiActive_H__
AndyA 19:08e6a2283d58 2 #define __FIZDigiActive_H__
AndyA 19:08e6a2283d58 3 #include "FIZReader.h"
AndyA 19:08e6a2283d58 4
AndyA 19:08e6a2283d58 5 //FIZ protocol used for digipower box.
AndyA 19:08e6a2283d58 6 // this is listen only.
AndyA 19:08e6a2283d58 7
AndyA 19:08e6a2283d58 8 class FIZDigiPowerActive : public FIZReader
AndyA 19:08e6a2283d58 9 {
AndyA 19:08e6a2283d58 10
AndyA 19:08e6a2283d58 11 public:
AndyA 19:08e6a2283d58 12 FIZDigiPowerActive(const PinName Tx, const PinName Rx);
AndyA 19:08e6a2283d58 13 virtual void requestCurrent();
AndyA 19:08e6a2283d58 14
AndyA 19:08e6a2283d58 15 private:
AndyA 19:08e6a2283d58 16 static const int InBufferSize = 32;
AndyA 19:08e6a2283d58 17
AndyA 19:08e6a2283d58 18 void OnRx(void);
AndyA 19:08e6a2283d58 19 void parsePacket();
JamieB 71:7305a35cee58 20 void read_lens_parameters();
JamieB 71:7305a35cee58 21 float get_16bit_float(uint16_t val);
AndyA 19:08e6a2283d58 22
AndyA 19:08e6a2283d58 23 int missedPackets;
AndyA 19:08e6a2283d58 24 uint8_t inputBuffer[InBufferSize];
AndyA 19:08e6a2283d58 25 int inputPtr;
JamieB 71:7305a35cee58 26 uint16_t min_zoom;
JamieB 71:7305a35cee58 27 uint16_t max_zoom;
JamieB 71:7305a35cee58 28 bool initialising;
AndyA 19:08e6a2283d58 29 };
AndyA 19:08e6a2283d58 30
AndyA 19:08e6a2283d58 31
AndyA 19:08e6a2283d58 32 #endif