![](/media/cache/img/default_profile.jpg.50x50_q85.jpg)
Fork to see if I can get working
Dependencies: BufferedSerial OneWire WinbondSPIFlash libxDot-dev-mbed5-deprecated
Fork of xDotBridge_update_test20180823 by
xDotBridge/inc/EepromLog.h@73:dc5adf462660, 2017-04-10 (annotated)
- Committer:
- Matt Briggs
- Date:
- Mon Apr 10 16:06:31 2017 -0600
- Revision:
- 73:dc5adf462660
Forgot to add some files.
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
Matt Briggs | 73:dc5adf462660 | 1 | #ifndef EEPROMLOG_H_ |
Matt Briggs | 73:dc5adf462660 | 2 | #define EEPROMLOG_H_ |
Matt Briggs | 73:dc5adf462660 | 3 | |
Matt Briggs | 73:dc5adf462660 | 4 | #include <stdint.h> |
Matt Briggs | 73:dc5adf462660 | 5 | |
Matt Briggs | 73:dc5adf462660 | 6 | class EepromLog { |
Matt Briggs | 73:dc5adf462660 | 7 | public: |
Matt Briggs | 73:dc5adf462660 | 8 | EepromLog (uint16_t baseAddr, uint8_t size); |
Matt Briggs | 73:dc5adf462660 | 9 | ~EepromLog (); |
Matt Briggs | 73:dc5adf462660 | 10 | void clear(); |
Matt Briggs | 73:dc5adf462660 | 11 | bool read(); |
Matt Briggs | 73:dc5adf462660 | 12 | bool save(); |
Matt Briggs | 73:dc5adf462660 | 13 | |
Matt Briggs | 73:dc5adf462660 | 14 | protected: |
Matt Briggs | 73:dc5adf462660 | 15 | uint16_t mBaseAddr; |
Matt Briggs | 73:dc5adf462660 | 16 | uint8_t *mData; |
Matt Briggs | 73:dc5adf462660 | 17 | uint8_t mLogSize; |
Matt Briggs | 73:dc5adf462660 | 18 | }; |
Matt Briggs | 73:dc5adf462660 | 19 | |
Matt Briggs | 73:dc5adf462660 | 20 | #endif |