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/FIZDigiPowerActive.h@66:066b16c6c34f, 2021-11-16 (annotated)
- Committer:
- JamieB
- Date:
- Tue Nov 16 19:01:34 2021 +0000
- Revision:
- 66:066b16c6c34f
- Parent:
- 19:08e6a2283d58
- Child:
- 71:7305a35cee58
Changed Buffered Serial to Read Raw Serial in RX Interrupt
Who changed what in which revision?
User | Revision | Line number | New 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(); |
AndyA | 19:08e6a2283d58 | 20 | |
AndyA | 19:08e6a2283d58 | 21 | int missedPackets; |
AndyA | 19:08e6a2283d58 | 22 | uint8_t inputBuffer[InBufferSize]; |
AndyA | 19:08e6a2283d58 | 23 | int inputPtr; |
AndyA | 19:08e6a2283d58 | 24 | }; |
AndyA | 19:08e6a2283d58 | 25 | |
AndyA | 19:08e6a2283d58 | 26 | |
AndyA | 19:08e6a2283d58 | 27 | #endif |