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