4 #include "pirprotocol.h"
5 #include "pirrx51hardware.h"
8 // The RC5 protocol is not as widespread as the NEC protocol, but still
9 // somewhat popular. Philips, the inventor, uses it extensively.
12 class RC5Protocol: public PIRProtocol
32 void startSendingCommand(
33 unsigned int threadableID,
37 unsigned int biphasePulse;
38 unsigned int biphaseSpace;
40 unsigned int leadPulse;
42 unsigned int headerPulse;
43 unsigned int headerSpace;
46 // The original RC-5 specification marks a single bit as a "toggle bit",
47 // which should be inverted on each separate keypress. This was originally
48 // the third bit, but apparently some remotes invert a different bit.
49 // If set to 0, then no bits are inverted.
54 const CommandSequence &bits,
55 PIRRX51Hardware &device);
60 // Only one of the following can be true, but both can be false:
61 bool bufferContainsSpace;
62 bool bufferContainsPulse;
65 #endif // RC5PROTOCOL_H