Advanced Settings Panel
[pierogi] / protocols / tdcprotocol.h
1 #ifndef TDCPROTOCOL_H
2 #define TDCPROTOCOL_H
3
4 #include "pirprotocol.h"
5
6 class PIRRX51Hardware;
7
8 class TDCProtocol: public PIRProtocol
9 {
10 public:
11   TDCProtocol(
12     QObject *guiObject,
13     unsigned int index,
14     unsigned int deviceBits,
15     unsigned int subdeviceBits);
16
17 public slots:
18   void startSendingCommand(
19     unsigned int threadableID,
20     PIRKeyName command);
21
22
23 private:
24   int pushBits(
25     const CommandSequence &bits,
26     PIRRX51Hardware &device);
27
28   int pushBit(
29     bool bitValue,
30     PIRRX51Hardware &device);
31
32   unsigned int biphaseUnit;
33   unsigned int buffer;
34   bool bufferContainsSpace;
35   bool bufferContainsPulse;
36 };
37
38 #endif // TDCPROTOCOL_H