Torc  0.1
torcpigpio.h
Go to the documentation of this file.
1 #ifndef TORCPIGPIO_H
2 #define TORCPIGPIO_H
3 
4 // Qt
5 #include <QMap>
6 #include <QMutex>
7 
8 // Torc
9 #include "torccentral.h"
10 #include "torcpiswitchoutput.h"
11 #include "torcpipwmoutput.h"
12 #include "torcpiswitchinput.h"
13 
14 #define PI_GPIO QStringLiteral("gpio")
15 
17 {
18  public:
19  TorcPiGPIO();
20  ~TorcPiGPIO() = default;
21 
23 
24  void Create (const QVariantMap &GPIO);
25  void Destroy (void);
26 
27  private:
28  QMap<int,TorcPiSwitchInput*> m_inputs;
29  QMap<int,TorcPiSwitchOutput*> m_outputs;
30  QMap<int,TorcPiPWMOutput*> m_pwmOutputs;
31  bool m_setup;
32 };
33 
34 #endif // TORCPIGPIO_H
static TorcPiGPIO * gPiGPIO
Definition: torcpigpio.h:22
void Create(const QVariantMap &GPIO)
Definition: torcpigpio.cpp:154
void Destroy(void)
Definition: torcpigpio.cpp:258
~TorcPiGPIO()=default