1 #ifndef SPACEPROTOCOL_H
2 #define SPACEPROTOCOL_H
4 #include "pirprotocol.h"
8 // This class supports the generic (LIRC-based) space encoded IR protocol.
9 // It is intended to support all other space-based protocols through
10 // inheritance, and as such contains a variety of commonly useful methods and
13 class SpaceProtocol: public PIRProtocol
25 unsigned int trailerp,
31 const CommandSequence &bits,
32 PIRRX51Hardware &device);
35 const CommandSequence &bits,
36 PIRRX51Hardware &device);
39 const CommandSequence &bits,
40 PIRRX51Hardware &device);
42 int pushInvertedReverseBits(
43 const CommandSequence &bits,
44 PIRRX51Hardware &device);
46 unsigned int zeroPulse;
47 unsigned int zeroSpace;
48 unsigned int onePulse;
49 unsigned int oneSpace;
51 unsigned int headerPulse;
52 unsigned int headerSpace;
54 unsigned int trailerPulse;
57 #endif // SPACEPROTOCOL_H