4 #include "pirprotocol.h"
9 // The RC5 protocol is not as widespread as the NEC protocol, but still
10 // somewhat popular. Philips, the inventor, uses it extensively.
13 class RC5Protocol: public PIRProtocol
16 // For standard RC5, the control portion will be passed in as
21 unsigned int sevenBitControl);
23 // For extended RC5, each key must contain the entire 13 bits.
29 void startSendingCommand(
30 unsigned int threadableID,
34 unsigned int biphaseUnit;
38 PIRRX51Hardware &device);
40 int pushKeyCommandBits(
41 const PIRKeyBits &pkb,
42 PIRRX51Hardware &device);
44 int pushNonStandardRC5(
45 const PIRKeyBits &bits,
46 PIRRX51Hardware &device);
50 PIRRX51Hardware &device);
55 // Only one of the following can be true, but both can be false:
56 bool bufferContainsSpace;
57 bool bufferContainsPulse;
60 #endif // RC5PROTOCOL_H