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