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