Hubo Library
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
CSC5262.h
Go to the documentation of this file.
1 #ifndef CSC5262_H_
2 #define CSC5262_H_
3 
4 
5 class CSC5262
6 {
7 
8 public:
9  CSC5262 (int pulseLength, int pin, bool bQuiet = false);
10  virtual ~CSC5262 ();
11  bool SwitchSocket (unsigned char SystemCode, unsigned char Receiver, bool bTurnOn, int repeatedSuccess, int totalTransmittion);
12  bool Switch (unsigned char SystemCode, unsigned char Receiver, bool bTurnOn);
13 
14 protected:
16  {
17  Zero = 0,
18  One,
19  Floating,
20  Sync
21  };
22 
23  //bool Switch (unsigned char SystemCode, unsigned char Receiver, bool bTurnOn);
24  void SendLogicalBit (unsigned short bit);
25  void SendPysicalBit (TriSTateBit bit);
26  void SendCommand (bool bTurnOn);
27  void SendSync ();
28 
29  int m_PulseLength;
30  int m_Pin;
31  bool m_bQuiet;
32 };
33 
34 #endif /* CSC5262_H_ */
Definition: CSC5262.h:5
virtual ~CSC5262()
Definition: CSC5262.cpp:23
void SendLogicalBit(unsigned short bit)
Definition: CSC5262.cpp:69
void SendSync()
Definition: CSC5262.cpp:92
void SendCommand(bool bTurnOn)
Definition: CSC5262.cpp:78
CSC5262(int pulseLength, int pin, bool bQuiet=false)
Definition: CSC5262.cpp:10
bool m_bQuiet
Definition: CSC5262.h:31
void SendPysicalBit(TriSTateBit bit)
Definition: CSC5262.cpp:28
int m_Pin
Definition: CSC5262.h:30
int m_PulseLength
Definition: CSC5262.h:29
bool SwitchSocket(unsigned char SystemCode, unsigned char Receiver, bool bTurnOn, int repeatedSuccess, int totalTransmittion)
Definition: CSC5262.cpp:128
TriSTateBit
Definition: CSC5262.h:15
bool Switch(unsigned char SystemCode, unsigned char Receiver, bool bTurnOn)
Definition: CSC5262.cpp:98