4 #include "spaceprotocol.h"
5 #include "pirrx51hardware.h"
8 // The "NEC" Protocol is, more or less, followed by the majority of
9 // remotes defined in the LIRC config files, which means it is probably
10 // followed by most of the remotes out there.
14 // There exist two well-defined NEC protocols: "standard" and "extended". The
15 // extended form sacrifices some redundancy to increase the size of the
18 // Also, NEC has two types of repeat -- a "short repeat", sending only the
19 // header value, and a full repetition of the command pulse train.
22 class NECProtocol: public SpaceProtocol
32 void startSendingCommand(
33 unsigned int threadableID,
37 unsigned int repeatPulse;
38 unsigned int repeatSpace;
43 int generateStandardCommand(
44 const PIRKeyBits &bits,
45 PIRRX51Hardware &device);
47 int generateRepeatCommand(
48 PIRRX51Hardware &device);
51 #endif // NECPROTOCOL_H