Torc  0.1
Classes | Variables
torcpigpio.cpp File Reference
#include "torclogging.h"
#include "torccentral.h"
#include "torcpigpio.h"
#include "torcinputs.h"
#include "torcoutputs.h"
#include "wiringPi.h"
Include dependency graph for torcpigpio.cpp:

Go to the source code of this file.

Classes

class  TorcPiGPIOXSDFactory
 

Variables

static const QString gpioPinNumberTypeRev1
 
static const QString gpioPinNumberTypeRev2
 
static const QString pigpioInputTypes
 
static const QString pigpioInputs
 
static const QString pigpioOutputTypes
 
static const QString pigpioOutputs
 
static const QString pigpioUnique
 
TorcPiGPIOXSDFactory TorcPiGPIOXSDFactory
 

Variable Documentation

const QString gpioPinNumberTypeRev1
static
Initial value:
= QStringLiteral(
"<xs:simpleType name='gpioPinNumberType'>\r\n"
" <xs:restriction base='xs:integer'>\r\n"
" <xs:minInclusive value='0'/>\r\n"
" <xs:maxInclusive value='6'/>\r\n"
" </xs:restriction>\r\n"
"</xs:simpleType>\r\n")

Definition at line 293 of file torcpigpio.cpp.

const QString gpioPinNumberTypeRev2
static
Initial value:
= QStringLiteral(
"<xs:simpleType name='gpioPinNumberType'>\r\n"
" <xs:restriction base='xs:integer'>\r\n"
" <xs:enumeration value='0'/>\r\n"
" <xs:enumeration value='1'/>\r\n"
" <xs:enumeration value='2'/>\r\n"
" <xs:enumeration value='3'/>\r\n"
" <xs:enumeration value='4'/>\r\n"
" <xs:enumeration value='5'/>\r\n"
" <xs:enumeration value='6'/>\r\n"
" <xs:enumeration value='17'/>\r\n"
" <xs:enumeration value='18'/>\r\n"
" <xs:enumeration value='19'/>\r\n"
" <xs:enumeration value='20'/>\r\n"
" <xs:enumeration value='21'/>\r\n"
" <xs:enumeration value='22'/>\r\n"
" <xs:enumeration value='23'/>\r\n"
" <xs:enumeration value='24'/>\r\n"
" <xs:enumeration value='25'/>\r\n"
" <xs:enumeration value='26'/>\r\n"
" <xs:enumeration value='27'/>\r\n"
" <xs:enumeration value='28'/>\r\n"
" <xs:enumeration value='29'/>\r\n"
" <xs:enumeration value='30'/>\r\n"
" <xs:enumeration value='31'/>\r\n"
" </xs:restriction>\r\n"
"</xs:simpleType>\r\n")

Definition at line 304 of file torcpigpio.cpp.

const QString pigpioInputs
static
Initial value:
= QStringLiteral(
" <xs:element minOccurs='0' maxOccurs='1' name='gpio' type='gpioInputType'/>\r\n")

Definition at line 349 of file torcpigpio.cpp.

const QString pigpioInputTypes
static
Initial value:
= QStringLiteral(
"\r\n"
"<xs:complexType name='gpioInputSwitchType'>\r\n"
" <xs:all>\r\n"
" <xs:element name='name' type='deviceNameType'/>\r\n"
" <xs:element name='username' type='userNameType' minOccurs='0' maxOccurs='1'/>\r\n"
" <xs:element name='userdescription' type='userDescriptionType' minOccurs='0' maxOccurs='1'/>\r\n"
" <xs:element name='gpiopinnumber' type='gpioPinNumberType'/>\r\n"
" </xs:all>\r\n"
"</xs:complexType>\r\n"
"\r\n"
"<xs:complexType name='gpioInputType'>\r\n"
" <xs:sequence>\r\n"
" <xs:element minOccurs='1' maxOccurs='unbounded' name='switch' type='gpioInputSwitchType'/>\r\n"
" </xs:sequence>\r\n"
"</xs:complexType>\r\n")

Definition at line 332 of file torcpigpio.cpp.

const QString pigpioOutputs
static
Initial value:
= QStringLiteral(
" <xs:element minOccurs='0' maxOccurs='1' name='gpio' type='gpioOutputType'/>\r\n")

Definition at line 380 of file torcpigpio.cpp.

const QString pigpioOutputTypes
static
Initial value:
= QStringLiteral(
"<xs:complexType name='gpioOutputSwitchType'>\r\n"
" <xs:all>\r\n"
" <xs:element name='name' type='deviceNameType'/>\r\n"
" <xs:element name='username' type='userNameType' minOccurs='0' maxOccurs='1'/>\r\n"
" <xs:element name='userdescription' type='userDescriptionType' minOccurs='0' maxOccurs='1'/>\r\n"
" <xs:element name='gpiopinnumber' type='gpioPinNumberType'/>\r\n"
" <xs:element name='default' type='switchNumberType'/>\r\n"
" </xs:all>\r\n"
"</xs:complexType>\r\n"
"\r\n"
"<xs:complexType name='gpioOutputPWMType'>\r\n"
" <xs:all>\r\n"
" <xs:element name='name' type='deviceNameType'/>\r\n"
" <xs:element name='username' type='userNameType' minOccurs='0' maxOccurs='1'/>\r\n"
" <xs:element name='userdescription' type='userDescriptionType' minOccurs='0' maxOccurs='1'/>\r\n"
" <xs:element name='gpiopinnumber' type='gpioPinNumberType'/>\r\n"
" <xs:element name='default' type='pwmNumberType'/>\r\n"
" </xs:all>\r\n"
"</xs:complexType>\r\n"
"\r\n"
"<xs:complexType name='gpioOutputType'>\r\n"
" <xs:choice minOccurs='1' maxOccurs='unbounded'>\r\n"
" <xs:element name='switch' type='gpioOutputSwitchType'/>\r\n"
" <xs:element name='pwm' type='gpioOutputPWMType'/>\r\n"
" </xs:choice>\r\n"
"</xs:complexType>\r\n")

Definition at line 352 of file torcpigpio.cpp.

const QString pigpioUnique
static
Initial value:
= QStringLiteral(
" <!-- enforce unique GPIO pin numbers -->\r\n"
" <xs:unique name='uniqueGPIOPinNumber'>\r\n"
" <xs:selector xpath='.//gpiopinnumber' />\r\n"
" <xs:field xpath='.' />\r\n"
" </xs:unique>\r\n")

Definition at line 383 of file torcpigpio.cpp.