Torc
0.1
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
outputs
platforms
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
16
class
TorcPiGPIO
:
public
TorcDeviceHandler
17
{
18
public
:
19
TorcPiGPIO
();
20
~TorcPiGPIO
() =
default
;
21
22
static
TorcPiGPIO
*
gPiGPIO
;
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
torcpiswitchoutput.h
torcpiswitchinput.h
TorcPiGPIO
Definition:
torcpigpio.h:16
TorcDeviceHandler
Definition:
torcdevicehandler.h:10
torcpipwmoutput.h
TorcPiGPIO::gPiGPIO
static TorcPiGPIO * gPiGPIO
Definition:
torcpigpio.h:22
TorcPiGPIO::Create
void Create(const QVariantMap &GPIO)
Definition:
torcpigpio.cpp:154
torccentral.h
TorcPiGPIO::Destroy
void Destroy(void)
Definition:
torcpigpio.cpp:258
TorcPiGPIO::TorcPiGPIO
TorcPiGPIO()
Definition:
torcpigpio.cpp:144
TorcPiGPIO::~TorcPiGPIO
~TorcPiGPIO()=default
Generated on Sat Jan 5 2019 21:54:03 for Torc by
1.8.11