4 #include "pirprotocol.h"
9 // The XMP protocol is a large, fairly complex protocol, but seems to be
10 // gaining popularity in a variety of modern devices.
13 class XMPProtocol: public PIRProtocol
26 void startSendingCommand(
27 unsigned int threadableID,
31 int generateStandardCommand(
32 const PIRKeyBits &bits,
33 PIRRX51Hardware &device);
35 int generateRepeatCommand(
36 const PIRKeyBits &bits,
37 PIRRX51Hardware &device);
39 int generateFinalCommand(
40 const PIRKeyBits &bits,
41 PIRRX51Hardware &device);
43 unsigned int calculateChecksumOne();
45 unsigned int calculateChecksumTwo(
47 const CommandSequence &firstCode,
48 const CommandSequence &secondCode);
51 unsigned int halfByte,
52 PIRRX51Hardware &rx51device);
55 unsigned int fullByte,
56 PIRRX51Hardware &rx51device);
59 const CommandSequence &bits,
60 PIRRX51Hardware &rx51device);
62 unsigned int subDeviceOne;
63 unsigned int subDeviceTwo;
65 unsigned int deviceCode;
69 #endif // XMPPROTOCOL_H