Details | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
1702 | - | 1 | #ifndef __PSEVENTPARSER_H__ |
2 | #define __PSEVENTPARSER_H__ |
||
3 | |||
4 | #include <inttypes.h> |
||
5 | #include <avr/pgmspace.h> |
||
6 | #include "ptpcallback.h" |
||
7 | #include "ptpdebug.h" |
||
8 | #include "canonps.h" |
||
9 | |||
10 | class PSEventParser : public PTPReadParser |
||
11 | { |
||
12 | MultiValueBuffer theBuffer; |
||
13 | uint32_t varBuffer; |
||
14 | uint8_t nStage; |
||
15 | uint16_t eventCode; |
||
16 | uint32_t objHandle; |
||
17 | |||
18 | MultiByteValueParser valueParser; |
||
19 | |||
20 | public: |
||
21 | PSEventParser() : nStage(0), varBuffer(0), objHandle(0) |
||
22 | { |
||
23 | theBuffer.pValue = &varBuffer; |
||
24 | }; |
||
25 | uint32_t GetObjHandle() { return objHandle; }; |
||
26 | virtual void Parse(const uint16_t len, const uint8_t *pbuf, const uint32_t &offset); |
||
27 | }; |
||
28 | |||
29 | #endif // __PSEVENTPARSER_H__ |