Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: BufferedSerial FatFileSystemCpp mbed
FIZ_readers/FIZReader.h
- Committer:
- JamieB
- Date:
- 2021-11-16
- Revision:
- 66:066b16c6c34f
- Parent:
- 17:5ce3fe98e76d
- Child:
- 80:0b7f1b85b626
File content as of revision 66:066b16c6c34f:
#ifndef __FIZReader_H__ #define __FIZReader_H__ #include "BufferedSerial.h" class FIZReader { public: FIZReader(const PinName Tx, const PinName Rx); virtual void requestCurrent() = 0; /// true if the values have been updated since the last update. // focus and zoom are in mm, iris is in 100ths of a stop bool getMostRecent(uint32_t *focus, uint16_t *iris, uint16_t *zoom); protected: int hexValue(char ascii); RawSerial _port; uint32_t _focus; // in mm uint16_t _iris; // in 100ths of F stop uint16_t _zoom; // in mm bool newData; }; #endif