X-Git-Url: http://vcs.maemo.org/git/?a=blobdiff_plain;f=protocols%2Ftdcprotocol.h;fp=protocols%2Ftdcprotocol.h;h=28c0d7b6e310fe368fbc85f5410b5357e3b7b4d3;hb=a755f0efc0ba10848d26e1aed7f9933ccdcbb59e;hp=0000000000000000000000000000000000000000;hpb=c368b9d2216660ed7541cad6919338a3538a644b;p=pierogi diff --git a/protocols/tdcprotocol.h b/protocols/tdcprotocol.h new file mode 100644 index 0000000..28c0d7b --- /dev/null +++ b/protocols/tdcprotocol.h @@ -0,0 +1,38 @@ +#ifndef TDCPROTOCOL_H +#define TDCPROTOCOL_H + +#include "pirprotocol.h" + +class PIRRX51Hardware; + +class TDCProtocol: public PIRProtocol +{ +public: + TDCProtocol( + QObject *guiObject, + unsigned int index, + unsigned int deviceBits, + unsigned int subdeviceBits); + +public slots: + void startSendingCommand( + unsigned int threadableID, + PIRKeyName command); + + +private: + int pushBits( + const CommandSequence &bits, + PIRRX51Hardware &device); + + int pushBit( + bool bitValue, + PIRRX51Hardware &device); + + unsigned int biphaseUnit; + unsigned int buffer; + bool bufferContainsSpace; + bool bufferContainsPulse; +}; + +#endif // TDCPROTOCOL_H