4 #include "pirprotocol.h"
5 #include "pirrx51hardware.h"
8 // JVC has its own protocol, similar in some ways to the popular NEC protocol.
9 // The main differences are that the address and command segments are not
10 // sent with an inverted copy, and that repeats are implemented by sending
11 // the body without a header, rather than a header without a body.
14 class JVCProtocol: public PIRProtocol
22 void startSendingCommand(
23 unsigned int threadableID,
27 unsigned int zeroPulse;
28 unsigned int zeroSpace;
29 unsigned int onePulse;
30 unsigned int oneSpace;
32 unsigned int headerPulse;
33 unsigned int headerSpace;
35 unsigned int trailerPulse;
37 int generateStandardCommand(
38 const CommandSequence &bits,
39 PIRRX51Hardware &device);
41 int generateHeadlessCommand(
42 const CommandSequence &bits,
43 PIRRX51Hardware &device);
46 const CommandSequence &bits,
47 PIRRX51Hardware &device);
50 #endif // JVCPROTOCOL_H