1 #ifndef PIONEERPROTOCOL_H
2 #define PIONEERPROTOCOL_H
4 #include "spaceprotocol.h"
5 #include "pirrx51hardware.h"
8 // The Pioneer protocol is basically the same as the standard NEC protocol,
9 // with the exception that some keys are defined by a pair of NEC codes
10 // rather than a single one; to my understanding, where a single code is
11 // sent in full over and over again, a pair of codes is simply alternated
12 // one after the other.
15 class PioneerProtocol: public SpaceProtocol
23 void startSendingCommand(
24 unsigned int threadableID,
28 // First, define what is used to represent 0 and 1:
30 unsigned int zeroPulse;
31 unsigned int zeroSpace;
32 unsigned int onePulse;
33 unsigned int oneSpace;
37 unsigned int headerPulse;
38 unsigned int headerSpace;
41 unsigned int trailerPulse;
43 int generateStandardCommand(
44 const PIRKeyBits &bits,
45 PIRRX51Hardware &device);
47 int generateSecondaryCommand(
48 const PIRKeyBits &bits,
49 PIRRX51Hardware &device);
52 #endif // PIONEERPROTOCOL_H