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
15 // For standard RC5, the control portion will be passed in as
20 unsigned int sevenBitControl);
22 // For extended RC5, each key must contain the entire 13 bits.
28 void startSendingCommand(
29 unsigned int threadableID,
33 unsigned int biphaseUnit;
37 PIRRX51Hardware &device);
39 int pushKeyCommandBits(
40 const CommandSequence &bits,
41 PIRRX51Hardware &device);
43 int pushNonStandardRC5(
44 const CommandSequence &bits,
45 PIRRX51Hardware &device);
49 PIRRX51Hardware &device);
54 // Only one of the following can be true, but both can be false:
55 bool bufferContainsSpace;
56 bool bufferContainsPulse;
59 #endif // RC5PROTOCOL_H