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@62:dcb92159ac8e, 2021-10-25 (annotated)
- Committer:
- AndyA
- Date:
- Mon Oct 25 09:04:21 2021 +0000
- Revision:
- 62:dcb92159ac8e
- Child:
- 80:0b7f1b85b626
First pass at adding Arri FIZ support
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 | |
AndyA | 62:dcb92159ac8e | 25 | #endif |