forked from felis/PTP_2.0
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
42 changed files
with
650 additions
and
884 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -17,16 +17,16 @@ e-mail : [email protected] | |
#if !defined(__EOSEVENTDUMP_H__) | ||
#define __EOSEVENTDUMP_H__ | ||
|
||
#include <inttypes.h> | ||
#include <avr/pgmspace.h> | ||
#include "ptpcallback.h" | ||
#include "parsetools.h" | ||
|
||
#if defined(ARDUINO) && ARDUINO >=100 | ||
#include <Arduino.h> | ||
#else | ||
#include <WProgram.h> | ||
#endif | ||
#include <inttypes.h> | ||
#include <avr/pgmspace.h> | ||
#include "ptpcallback.h" | ||
#include "Usb.h" | ||
|
||
|
||
class EOSEventDump : public PTPReadParser | ||
{ | ||
|
@@ -39,7 +39,7 @@ class EOSEventDump : public PTPReadParser | |
MultiValueBuffer valueBuffer; | ||
uint32_t theBuffer; | ||
public: | ||
EOSEventDump() : ptppktSize(0), recordSize(0), parseStage(0), parseSubstage(0) | ||
EOSEventDump() : ptppktSize(0), recordSize(0), parseStage(0), parseSubstage(0) | ||
{ valueBuffer.valueSize = 4; valueBuffer.pValue = &theBuffer; }; | ||
void Initialize() { ptppktSize = 0; recordSize = 0; parseStage = 0; valueParser.Initialize(&valueBuffer); }; | ||
virtual void Parse(const uint16_t len, const uint8_t *pbuf, const uint32_t &offset); | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -18,7 +18,7 @@ e-mail : [email protected] | |
#define __EOSEVENTPARSER_H__ | ||
|
||
#include <inttypes.h> | ||
#include <parsetools.h> | ||
#include <Usb.h> | ||
#include <canoneos.h> | ||
|
||
struct EOSEvent | ||
|
@@ -63,7 +63,7 @@ class EOSEventParser : public PTPReadParser | |
void InitEOSEventStruct(); | ||
|
||
public: | ||
EOSEventParser(EOSEventHandlers *p) : | ||
EOSEventParser(EOSEventHandlers *p) : | ||
pHandler(p), | ||
constInitialEventCode(0xFFFF), | ||
nStage(0), | ||
|
@@ -72,8 +72,8 @@ class EOSEventParser : public PTPReadParser | |
varBuffer(0), | ||
paramCountdown(0), | ||
paramsChanged(0) | ||
{ | ||
theBuffer.pValue = &varBuffer; | ||
{ | ||
theBuffer.pValue = &varBuffer; | ||
}; | ||
|
||
void Reset() | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.