1 #ifndef NOKIA32PROTOCOL_H
2 #define NOKIA32PROTOCOL_H
4 #include "spaceprotocol.h"
9 // The Nokia32 protocol is a somewhat unusual 32-bit protocol. It encodes
10 // pairs of bits rather than individual bits.
13 class Nokia32Protocol: public PIRProtocol
21 void startSendingCommand(
22 unsigned int threadableID,
26 int generateStandardCommand(
27 const PIRKeyBits &bits,
28 PIRRX51Hardware &device);
31 const CommandSequence &bits,
32 PIRRX51Hardware &rx51device);
34 int pushToggleAndBits(
35 const CommandSequence &bits,
36 PIRRX51Hardware &rx51device);
41 PIRRX51Hardware &rx51device);
43 unsigned int zeroPulse;
44 unsigned int zeroSpace;
45 unsigned int onePulse;
46 unsigned int oneSpace;
47 unsigned int twoPulse;
48 unsigned int twoSpace;
49 unsigned int threePulse;
50 unsigned int threeSpace;
52 unsigned int headerPulse;
53 unsigned int headerSpace;
55 unsigned int trailerPulse;
57 unsigned int keypressCount;
60 #endif // NOKIA32PROTOCOL_H