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_ArriCmotion.h@85:0cc5931bb9ef, 21 months ago (annotated)
- Committer:
- JamieB
- Date:
- Thu Dec 15 06:05:30 2022 +0000
- Revision:
- 85:0cc5931bb9ef
- Parent:
- 80:0b7f1b85b626
Push to somewhere else due to merge issue
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
AndyA | 62:dcb92159ac8e | 1 | #ifndef __FIZArriCM_H__ |
AndyA | 62:dcb92159ac8e | 2 | #define __FIZArriCM_H__ |
AndyA | 62:dcb92159ac8e | 3 | #include "FIZReader.h" |
AndyA | 62:dcb92159ac8e | 4 | |
AndyA | 62:dcb92159ac8e | 5 | //FIZ protocol used for Arri C motion systems |
AndyA | 62:dcb92159ac8e | 6 | // this is listen only. |
AndyA | 62:dcb92159ac8e | 7 | |
AndyA | 62:dcb92159ac8e | 8 | class FIZ_ArriCmotion : public FIZReader { |
AndyA | 62:dcb92159ac8e | 9 | |
AndyA | 62:dcb92159ac8e | 10 | public: |
AndyA | 62:dcb92159ac8e | 11 | FIZ_ArriCmotion(const PinName Tx, const PinName Rx); |
AndyA | 62:dcb92159ac8e | 12 | virtual void requestCurrent(); |
AndyA | 62:dcb92159ac8e | 13 | |
AndyA | 62:dcb92159ac8e | 14 | private: |
AndyA | 62:dcb92159ac8e | 15 | static const int InBufferSize = 32; |
AndyA | 62:dcb92159ac8e | 16 | |
AndyA | 62:dcb92159ac8e | 17 | void OnRx(void); |
AndyA | 62:dcb92159ac8e | 18 | void parsePacket(); |
AndyA | 62:dcb92159ac8e | 19 | |
AndyA | 62:dcb92159ac8e | 20 | uint8_t inputBuffer[InBufferSize]; |
AndyA | 62:dcb92159ac8e | 21 | int inputPtr; |
AndyA | 62:dcb92159ac8e | 22 | }; |
AndyA | 62:dcb92159ac8e | 23 | |
AndyA | 62:dcb92159ac8e | 24 | |
JamieB | 80:0b7f1b85b626 | 25 | #endif |