Philip Howard | 567ee00 | 2013-03-27 22:22:00 +0000 | [diff] [blame] | 1 | # This file was automatically generated by SWIG (http://www.swig.org). |
| 2 | # Version 2.0.7 |
| 3 | # |
| 4 | # Do not make changes to this file unless you know what you are doing--modify |
| 5 | # the SWIG interface file instead. |
| 6 | |
| 7 | |
| 8 | |
| 9 | from sys import version_info |
| 10 | if version_info >= (2,6,0): |
| 11 | def swig_import_helper(): |
| 12 | from os.path import dirname |
| 13 | import imp |
| 14 | fp = None |
| 15 | try: |
| 16 | fp, pathname, description = imp.find_module('_wiringpi', [dirname(__file__)]) |
| 17 | except ImportError: |
| 18 | import _wiringpi |
| 19 | return _wiringpi |
| 20 | if fp is not None: |
| 21 | try: |
| 22 | _mod = imp.load_module('_wiringpi', fp, pathname, description) |
| 23 | finally: |
| 24 | fp.close() |
| 25 | return _mod |
| 26 | _wiringpi = swig_import_helper() |
| 27 | del swig_import_helper |
| 28 | else: |
| 29 | import _wiringpi |
| 30 | del version_info |
| 31 | try: |
| 32 | _swig_property = property |
| 33 | except NameError: |
| 34 | pass # Python < 2.2 doesn't have 'property'. |
| 35 | def _swig_setattr_nondynamic(self,class_type,name,value,static=1): |
| 36 | if (name == "thisown"): return self.this.own(value) |
| 37 | if (name == "this"): |
| 38 | if type(value).__name__ == 'SwigPyObject': |
| 39 | self.__dict__[name] = value |
| 40 | return |
| 41 | method = class_type.__swig_setmethods__.get(name,None) |
| 42 | if method: return method(self,value) |
| 43 | if (not static): |
| 44 | self.__dict__[name] = value |
| 45 | else: |
| 46 | raise AttributeError("You cannot add attributes to %s" % self) |
| 47 | |
| 48 | def _swig_setattr(self,class_type,name,value): |
| 49 | return _swig_setattr_nondynamic(self,class_type,name,value,0) |
| 50 | |
| 51 | def _swig_getattr(self,class_type,name): |
| 52 | if (name == "thisown"): return self.this.own() |
| 53 | method = class_type.__swig_getmethods__.get(name,None) |
| 54 | if method: return method(self) |
| 55 | raise AttributeError(name) |
| 56 | |
| 57 | def _swig_repr(self): |
| 58 | try: strthis = "proxy of " + self.this.__repr__() |
| 59 | except: strthis = "" |
| 60 | return "<%s.%s; %s >" % (self.__class__.__module__, self.__class__.__name__, strthis,) |
| 61 | |
| 62 | try: |
| 63 | _object = object |
| 64 | _newclass = 1 |
| 65 | except AttributeError: |
| 66 | class _object : pass |
| 67 | _newclass = 0 |
| 68 | |
| 69 | |
| 70 | |
| 71 | def wiringPiSetup(): |
| 72 | return _wiringpi.wiringPiSetup() |
| 73 | wiringPiSetup = _wiringpi.wiringPiSetup |
| 74 | |
| 75 | def wiringPiSetupSys(): |
| 76 | return _wiringpi.wiringPiSetupSys() |
| 77 | wiringPiSetupSys = _wiringpi.wiringPiSetupSys |
| 78 | |
| 79 | def wiringPiSetupGpio(): |
| 80 | return _wiringpi.wiringPiSetupGpio() |
| 81 | wiringPiSetupGpio = _wiringpi.wiringPiSetupGpio |
| 82 | |
| 83 | def piFaceSetup(*args): |
| 84 | return _wiringpi.piFaceSetup(*args) |
| 85 | piFaceSetup = _wiringpi.piFaceSetup |
| 86 | |
| 87 | def piBoardRev(): |
| 88 | return _wiringpi.piBoardRev() |
| 89 | piBoardRev = _wiringpi.piBoardRev |
| 90 | |
| 91 | def wpiPinToGpio(*args): |
| 92 | return _wiringpi.wpiPinToGpio(*args) |
| 93 | wpiPinToGpio = _wiringpi.wpiPinToGpio |
| 94 | |
| 95 | def pinMode(*args): |
| 96 | return _wiringpi.pinMode(*args) |
| 97 | pinMode = _wiringpi.pinMode |
| 98 | |
| 99 | def getAlt(*args): |
| 100 | return _wiringpi.getAlt(*args) |
| 101 | getAlt = _wiringpi.getAlt |
| 102 | |
| 103 | def pullUpDnControl(*args): |
| 104 | return _wiringpi.pullUpDnControl(*args) |
| 105 | pullUpDnControl = _wiringpi.pullUpDnControl |
| 106 | |
| 107 | def digitalWrite(*args): |
| 108 | return _wiringpi.digitalWrite(*args) |
| 109 | digitalWrite = _wiringpi.digitalWrite |
| 110 | |
| 111 | def digitalWriteByte(*args): |
| 112 | return _wiringpi.digitalWriteByte(*args) |
| 113 | digitalWriteByte = _wiringpi.digitalWriteByte |
| 114 | |
| 115 | def gpioClockSet(*args): |
| 116 | return _wiringpi.gpioClockSet(*args) |
| 117 | gpioClockSet = _wiringpi.gpioClockSet |
| 118 | |
| 119 | def pwmWrite(*args): |
| 120 | return _wiringpi.pwmWrite(*args) |
| 121 | pwmWrite = _wiringpi.pwmWrite |
| 122 | |
| 123 | def setPadDrive(*args): |
| 124 | return _wiringpi.setPadDrive(*args) |
| 125 | setPadDrive = _wiringpi.setPadDrive |
| 126 | |
| 127 | def digitalRead(*args): |
| 128 | return _wiringpi.digitalRead(*args) |
| 129 | digitalRead = _wiringpi.digitalRead |
| 130 | |
| 131 | def pwmSetMode(*args): |
| 132 | return _wiringpi.pwmSetMode(*args) |
| 133 | pwmSetMode = _wiringpi.pwmSetMode |
| 134 | |
| 135 | def pwmSetRange(*args): |
| 136 | return _wiringpi.pwmSetRange(*args) |
| 137 | pwmSetRange = _wiringpi.pwmSetRange |
| 138 | |
| 139 | def pwmSetClock(*args): |
| 140 | return _wiringpi.pwmSetClock(*args) |
| 141 | pwmSetClock = _wiringpi.pwmSetClock |
| 142 | |
| 143 | def wiringPiISR(*args): |
| 144 | return _wiringpi.wiringPiISR(*args) |
| 145 | wiringPiISR = _wiringpi.wiringPiISR |
| 146 | |
| 147 | def piThreadCreate(*args): |
| 148 | return _wiringpi.piThreadCreate(*args) |
| 149 | piThreadCreate = _wiringpi.piThreadCreate |
| 150 | |
| 151 | def piLock(*args): |
| 152 | return _wiringpi.piLock(*args) |
| 153 | piLock = _wiringpi.piLock |
| 154 | |
| 155 | def piUnlock(*args): |
| 156 | return _wiringpi.piUnlock(*args) |
| 157 | piUnlock = _wiringpi.piUnlock |
| 158 | |
| 159 | def delay(*args): |
| 160 | return _wiringpi.delay(*args) |
| 161 | delay = _wiringpi.delay |
| 162 | |
| 163 | def delayMicroseconds(*args): |
| 164 | return _wiringpi.delayMicroseconds(*args) |
| 165 | delayMicroseconds = _wiringpi.delayMicroseconds |
| 166 | |
| 167 | def millis(): |
| 168 | return _wiringpi.millis() |
| 169 | millis = _wiringpi.millis |
| 170 | |
| 171 | def micros(): |
| 172 | return _wiringpi.micros() |
| 173 | micros = _wiringpi.micros |
| 174 | |
| 175 | def serialOpen(*args): |
| 176 | return _wiringpi.serialOpen(*args) |
| 177 | serialOpen = _wiringpi.serialOpen |
| 178 | |
| 179 | def serialClose(*args): |
| 180 | return _wiringpi.serialClose(*args) |
| 181 | serialClose = _wiringpi.serialClose |
| 182 | |
| 183 | def serialFlush(*args): |
| 184 | return _wiringpi.serialFlush(*args) |
| 185 | serialFlush = _wiringpi.serialFlush |
| 186 | |
| 187 | def serialPutchar(*args): |
| 188 | return _wiringpi.serialPutchar(*args) |
| 189 | serialPutchar = _wiringpi.serialPutchar |
| 190 | |
| 191 | def serialPuts(*args): |
| 192 | return _wiringpi.serialPuts(*args) |
| 193 | serialPuts = _wiringpi.serialPuts |
| 194 | |
| 195 | def serialPrintf(*args): |
| 196 | return _wiringpi.serialPrintf(*args) |
| 197 | serialPrintf = _wiringpi.serialPrintf |
| 198 | |
| 199 | def serialDataAvail(*args): |
| 200 | return _wiringpi.serialDataAvail(*args) |
| 201 | serialDataAvail = _wiringpi.serialDataAvail |
| 202 | |
| 203 | def serialGetchar(*args): |
| 204 | return _wiringpi.serialGetchar(*args) |
| 205 | serialGetchar = _wiringpi.serialGetchar |
| 206 | |
| 207 | def shiftOut(*args): |
| 208 | return _wiringpi.shiftOut(*args) |
| 209 | shiftOut = _wiringpi.shiftOut |
| 210 | |
| 211 | def shiftIn(*args): |
| 212 | return _wiringpi.shiftIn(*args) |
| 213 | shiftIn = _wiringpi.shiftIn |
| 214 | |
| 215 | def wiringPiSPIGetFd(*args): |
| 216 | return _wiringpi.wiringPiSPIGetFd(*args) |
| 217 | wiringPiSPIGetFd = _wiringpi.wiringPiSPIGetFd |
| 218 | |
| 219 | def wiringPiSPIDataRW(*args): |
| 220 | return _wiringpi.wiringPiSPIDataRW(*args) |
| 221 | wiringPiSPIDataRW = _wiringpi.wiringPiSPIDataRW |
| 222 | |
| 223 | def wiringPiSPISetup(*args): |
| 224 | return _wiringpi.wiringPiSPISetup(*args) |
| 225 | wiringPiSPISetup = _wiringpi.wiringPiSPISetup |
| 226 | |
| 227 | def wiringPiI2CRead(*args): |
| 228 | return _wiringpi.wiringPiI2CRead(*args) |
| 229 | wiringPiI2CRead = _wiringpi.wiringPiI2CRead |
| 230 | |
| 231 | def wiringPiI2CReadReg8(*args): |
| 232 | return _wiringpi.wiringPiI2CReadReg8(*args) |
| 233 | wiringPiI2CReadReg8 = _wiringpi.wiringPiI2CReadReg8 |
| 234 | |
| 235 | def wiringPiI2CReadReg16(*args): |
| 236 | return _wiringpi.wiringPiI2CReadReg16(*args) |
| 237 | wiringPiI2CReadReg16 = _wiringpi.wiringPiI2CReadReg16 |
| 238 | |
| 239 | def wiringPiI2CWrite(*args): |
| 240 | return _wiringpi.wiringPiI2CWrite(*args) |
| 241 | wiringPiI2CWrite = _wiringpi.wiringPiI2CWrite |
| 242 | |
| 243 | def wiringPiI2CWriteReg8(*args): |
| 244 | return _wiringpi.wiringPiI2CWriteReg8(*args) |
| 245 | wiringPiI2CWriteReg8 = _wiringpi.wiringPiI2CWriteReg8 |
| 246 | |
| 247 | def wiringPiI2CWriteReg16(*args): |
| 248 | return _wiringpi.wiringPiI2CWriteReg16(*args) |
| 249 | wiringPiI2CWriteReg16 = _wiringpi.wiringPiI2CWriteReg16 |
| 250 | |
| 251 | def softToneCreate(*args): |
| 252 | return _wiringpi.softToneCreate(*args) |
| 253 | softToneCreate = _wiringpi.softToneCreate |
| 254 | |
| 255 | def softToneWrite(*args): |
| 256 | return _wiringpi.softToneWrite(*args) |
| 257 | softToneWrite = _wiringpi.softToneWrite |
| 258 | |
| 259 | def softServoWrite(*args): |
| 260 | return _wiringpi.softServoWrite(*args) |
| 261 | softServoWrite = _wiringpi.softServoWrite |
| 262 | |
| 263 | def softServoSetup(*args): |
| 264 | return _wiringpi.softServoSetup(*args) |
| 265 | softServoSetup = _wiringpi.softServoSetup |
| 266 | |
| 267 | def softPwmCreate(*args): |
| 268 | return _wiringpi.softPwmCreate(*args) |
| 269 | softPwmCreate = _wiringpi.softPwmCreate |
| 270 | |
| 271 | def softPwmWrite(*args): |
| 272 | return _wiringpi.softPwmWrite(*args) |
| 273 | softPwmWrite = _wiringpi.softPwmWrite |
| 274 | |
| 275 | def mcp23s17Setup(*args): |
| 276 | return _wiringpi.mcp23s17Setup(*args) |
| 277 | mcp23s17Setup = _wiringpi.mcp23s17Setup |
| 278 | |
| 279 | def mcp23017Setup(*args): |
| 280 | return _wiringpi.mcp23017Setup(*args) |
| 281 | mcp23017Setup = _wiringpi.mcp23017Setup |
| 282 | |
| 283 | def mcp23s08Setup(*args): |
| 284 | return _wiringpi.mcp23s08Setup(*args) |
| 285 | mcp23s08Setup = _wiringpi.mcp23s08Setup |
| 286 | |
| 287 | def mcp23008Setup(*args): |
| 288 | return _wiringpi.mcp23008Setup(*args) |
| 289 | mcp23008Setup = _wiringpi.mcp23008Setup |
| 290 | |
| 291 | def sr595Setup(*args): |
| 292 | return _wiringpi.sr595Setup(*args) |
| 293 | sr595Setup = _wiringpi.sr595Setup |
| 294 | # This file is compatible with both classic and new-style classes. |
| 295 | |
| 296 | cvar = _wiringpi.cvar |
| 297 | |