Phil Howard | 8e29d40 | 2016-02-28 10:50:21 +0000 | [diff] [blame] | 1 | // Generated by generate-bindings.py - do not edit manually! |
Phil Howard | aee4f5d | 2016-02-28 09:54:53 +0000 | [diff] [blame] | 2 | |
| 3 | // Header file WiringPi/wiringPi/wiringPi.h |
| 4 | extern int wiringPiFailure (int fatal, const char *message, ...) ; |
| 5 | extern struct wiringPiNodeStruct *wiringPiFindNode (int pin) ; |
| 6 | extern struct wiringPiNodeStruct *wiringPiNewNode (int pinBase, int numPins) ; |
neuralassembly | 91b71d7 | 2017-03-29 17:25:14 +0900 | [diff] [blame] | 7 | extern void wiringPiVersion (int *major, int *minor) ; |
Phil Howard | aee4f5d | 2016-02-28 09:54:53 +0000 | [diff] [blame] | 8 | extern int wiringPiSetup (void) ; |
| 9 | extern int wiringPiSetupSys (void) ; |
| 10 | extern int wiringPiSetupGpio (void) ; |
| 11 | extern int wiringPiSetupPhys (void) ; |
neuralassembly | 91b71d7 | 2017-03-29 17:25:14 +0900 | [diff] [blame] | 12 | extern void pinModeAlt (int pin, int mode) ; |
| 13 | extern void pinMode (int pin, int mode) ; |
| 14 | extern void pullUpDnControl (int pin, int pud) ; |
| 15 | extern int digitalRead (int pin) ; |
| 16 | extern void digitalWrite (int pin, int value) ; |
| 17 | extern void pwmWrite (int pin, int value) ; |
| 18 | extern int analogRead (int pin) ; |
| 19 | extern void analogWrite (int pin, int value) ; |
| 20 | extern int piGpioLayout (void) ; |
| 21 | extern int piBoardRev (void) ; // Deprecated |
Phil Howard | 5d59981 | 2016-02-29 12:07:40 +0000 | [diff] [blame] | 22 | extern void piBoardId (int *model, int *rev, int *mem, int *maker, int *overVolted) ; |
| 23 | extern int wpiPinToGpio (int wpiPin) ; |
| 24 | extern int physPinToGpio (int physPin) ; |
| 25 | extern void setPadDrive (int group, int value) ; |
| 26 | extern int getAlt (int pin) ; |
| 27 | extern void pwmToneWrite (int pin, int freq) ; |
Phil Howard | 5d59981 | 2016-02-29 12:07:40 +0000 | [diff] [blame] | 28 | extern void pwmSetMode (int mode) ; |
| 29 | extern void pwmSetRange (unsigned int range) ; |
| 30 | extern void pwmSetClock (int divisor) ; |
| 31 | extern void gpioClockSet (int pin, int freq) ; |
neuralassembly | 91b71d7 | 2017-03-29 17:25:14 +0900 | [diff] [blame] | 32 | extern unsigned int digitalReadByte (void) ; |
| 33 | extern unsigned int digitalReadByte2 (void) ; |
| 34 | extern void digitalWriteByte (int value) ; |
| 35 | extern void digitalWriteByte2 (int value) ; |
Phil Howard | aee4f5d | 2016-02-28 09:54:53 +0000 | [diff] [blame] | 36 | extern int waitForInterrupt (int pin, int mS) ; |
| 37 | extern int piThreadCreate (void *(*fn)(void *)) ; |
| 38 | extern void piLock (int key) ; |
| 39 | extern void piUnlock (int key) ; |
| 40 | extern int piHiPri (const int pri) ; |
| 41 | extern void delay (unsigned int howLong) ; |
| 42 | extern void delayMicroseconds (unsigned int howLong) ; |
| 43 | extern unsigned int millis (void) ; |
| 44 | extern unsigned int micros (void) ; |
| 45 | |
| 46 | // Header file WiringPi/wiringPi/wiringPiI2C.h |
| 47 | extern int wiringPiI2CRead (int fd) ; |
| 48 | extern int wiringPiI2CReadReg8 (int fd, int reg) ; |
| 49 | extern int wiringPiI2CReadReg16 (int fd, int reg) ; |
| 50 | extern int wiringPiI2CWrite (int fd, int data) ; |
| 51 | extern int wiringPiI2CWriteReg8 (int fd, int reg, int data) ; |
| 52 | extern int wiringPiI2CWriteReg16 (int fd, int reg, int data) ; |
| 53 | extern int wiringPiI2CSetupInterface (const char *device, int devId) ; |
| 54 | extern int wiringPiI2CSetup (const int devId) ; |
| 55 | |
| 56 | // Header file WiringPi/wiringPi/wiringPiSPI.h |
| 57 | int wiringPiSPIGetFd (int channel) ; |
| 58 | int wiringPiSPIDataRW (int channel, unsigned char *data, int len) ; |
| 59 | int wiringPiSPISetupMode (int channel, int speed, int mode) ; |
| 60 | int wiringPiSPISetup (int channel, int speed) ; |
| 61 | |
| 62 | // Header file WiringPi/wiringPi/wiringSerial.h |
| 63 | extern int serialOpen (const char *device, const int baud) ; |
| 64 | extern void serialClose (const int fd) ; |
| 65 | extern void serialFlush (const int fd) ; |
| 66 | extern void serialPutchar (const int fd, const unsigned char c) ; |
| 67 | extern void serialPuts (const int fd, const char *s) ; |
| 68 | extern void serialPrintf (const int fd, const char *message, ...) ; |
| 69 | extern int serialDataAvail (const int fd) ; |
| 70 | extern int serialGetchar (const int fd) ; |
| 71 | |
| 72 | // Header file WiringPi/wiringPi/wiringShift.h |
| 73 | extern uint8_t shiftIn (uint8_t dPin, uint8_t cPin, uint8_t order) ; |
| 74 | extern void shiftOut (uint8_t dPin, uint8_t cPin, uint8_t order, uint8_t val) ; |
| 75 | |
Phil Howard | aee4f5d | 2016-02-28 09:54:53 +0000 | [diff] [blame] | 76 | // Header file WiringPi/wiringPi/drcSerial.h |
| 77 | extern int drcSetupSerial (const int pinBase, const int numPins, const char *device, const int baud) ; |
| 78 | |
Phil Howard | 5d59981 | 2016-02-29 12:07:40 +0000 | [diff] [blame] | 79 | // Header file WiringPi/wiringPi/ads1115.h |
| 80 | extern int ads1115Setup (int pinBase, int i2cAddress) ; |
| 81 | |
Phil Howard | aee4f5d | 2016-02-28 09:54:53 +0000 | [diff] [blame] | 82 | // Header file WiringPi/wiringPi/max31855.h |
| 83 | extern int max31855Setup (int pinBase, int spiChannel) ; |
| 84 | |
| 85 | // Header file WiringPi/wiringPi/max5322.h |
| 86 | extern int max5322Setup (int pinBase, int spiChannel) ; |
| 87 | |
| 88 | // Header file WiringPi/wiringPi/mcp23008.h |
| 89 | extern int mcp23008Setup (const int pinBase, const int i2cAddress) ; |
| 90 | |
| 91 | // Header file WiringPi/wiringPi/mcp23016.h |
| 92 | extern int mcp23016Setup (const int pinBase, const int i2cAddress) ; |
| 93 | |
| 94 | // Header file WiringPi/wiringPi/mcp23016reg.h |
| 95 | |
| 96 | // Header file WiringPi/wiringPi/mcp23017.h |
| 97 | extern int mcp23017Setup (const int pinBase, const int i2cAddress) ; |
| 98 | |
| 99 | // Header file WiringPi/wiringPi/mcp23s08.h |
| 100 | extern int mcp23s08Setup (const int pinBase, const int spiPort, const int devId) ; |
| 101 | |
| 102 | // Header file WiringPi/wiringPi/mcp23s17.h |
| 103 | extern int mcp23s17Setup (int pinBase, int spiPort, int devId) ; |
| 104 | |
| 105 | // Header file WiringPi/wiringPi/mcp23x0817.h |
| 106 | |
| 107 | // Header file WiringPi/wiringPi/mcp23x08.h |
| 108 | |
| 109 | // Header file WiringPi/wiringPi/mcp3002.h |
| 110 | extern int mcp3002Setup (int pinBase, int spiChannel) ; |
| 111 | |
| 112 | // Header file WiringPi/wiringPi/mcp3004.h |
| 113 | extern int mcp3004Setup (int pinBase, int spiChannel) ; |
| 114 | |
| 115 | // Header file WiringPi/wiringPi/mcp3422.h |
| 116 | extern int mcp3422Setup (int pinBase, int i2cAddress, int sampleRate, int gain) ; |
| 117 | |
| 118 | // Header file WiringPi/wiringPi/mcp4802.h |
| 119 | extern int mcp4802Setup (int pinBase, int spiChannel) ; |
| 120 | |
| 121 | // Header file WiringPi/wiringPi/pcf8574.h |
| 122 | extern int pcf8574Setup (const int pinBase, const int i2cAddress) ; |
| 123 | |
| 124 | // Header file WiringPi/wiringPi/pcf8591.h |
| 125 | extern int pcf8591Setup (const int pinBase, const int i2cAddress) ; |
| 126 | |
| 127 | // Header file WiringPi/wiringPi/sn3218.h |
| 128 | extern int sn3218Setup (int pinBase) ; |
| 129 | |
| 130 | // Header file WiringPi/wiringPi/softPwm.h |
| 131 | extern int softPwmCreate (int pin, int value, int range) ; |
| 132 | extern void softPwmWrite (int pin, int value) ; |
| 133 | extern void softPwmStop (int pin) ; |
| 134 | |
| 135 | // Header file WiringPi/wiringPi/softServo.h |
| 136 | extern void softServoWrite (int pin, int value) ; |
| 137 | extern int softServoSetup (int p0, int p1, int p2, int p3, int p4, int p5, int p6, int p7) ; |
| 138 | |
| 139 | // Header file WiringPi/wiringPi/softTone.h |
| 140 | extern int softToneCreate (int pin) ; |
| 141 | extern void softToneStop (int pin) ; |
| 142 | extern void softToneWrite (int pin, int freq) ; |
| 143 | |
| 144 | // Header file WiringPi/wiringPi/sr595.h |
| 145 | extern int sr595Setup (const int pinBase, const int numPins, |
| 146 | const int dataPin, const int clockPin, const int latchPin) ; |
| 147 | |
neuralassembly | 91b71d7 | 2017-03-29 17:25:14 +0900 | [diff] [blame] | 148 | // Header file WiringPi/wiringPi/bmp180.h |
| 149 | extern int bmp180Setup (const int pinBase) ; |
| 150 | |
| 151 | // Header file WiringPi/wiringPi/drcNet.h |
| 152 | extern int drcSetupNet (const int pinBase, const int numPins, const char *ipAddress, const char *port, const char *password) ; |
| 153 | |
| 154 | // Header file WiringPi/wiringPi/ds18b20.h |
| 155 | extern int ds18b20Setup (const int pinBase, const char *serialNum) ; |
| 156 | |
| 157 | // Header file WiringPi/wiringPi/htu21d.h |
| 158 | extern int htu21dSetup (const int pinBase) ; |
| 159 | |
| 160 | // Header file WiringPi/wiringPi/pseudoPins.h |
| 161 | extern int pseudoPinsSetup (const int pinBase) ; |
| 162 | |
| 163 | // Header file WiringPi/wiringPi/rht03.h |
| 164 | extern int rht03Setup (const int pinBase, const int devicePin) ; |
| 165 | |
| 166 | // Header file WiringPi/wiringPi/wpiExtensions.h |
| 167 | extern int loadWPiExtension (char *progName, char *extensionData, int verbose) ; |
| 168 | |
Phil Howard | aee4f5d | 2016-02-28 09:54:53 +0000 | [diff] [blame] | 169 | // Header file WiringPi/devLib/ds1302.h |
| 170 | extern unsigned int ds1302rtcRead (const int reg) ; |
| 171 | extern void ds1302rtcWrite (const int reg, const unsigned int data) ; |
| 172 | extern unsigned int ds1302ramRead (const int addr) ; |
| 173 | extern void ds1302ramWrite (const int addr, const unsigned int data) ; |
| 174 | extern void ds1302clockRead (int clockData [8]) ; |
| 175 | extern void ds1302clockWrite (const int clockData [8]) ; |
| 176 | extern void ds1302trickleCharge (const int diodes, const int resistors) ; |
| 177 | extern void ds1302setup (const int clockPin, const int dataPin, const int csPin) ; |
| 178 | |
| 179 | // Header file WiringPi/devLib/font.h |
| 180 | |
| 181 | // Header file WiringPi/devLib/gertboard.h |
| 182 | extern void gertboardAnalogWrite (const int chan, const int value) ; |
| 183 | extern int gertboardAnalogRead (const int chan) ; |
| 184 | extern int gertboardSPISetup (void) ; |
| 185 | extern int gertboardAnalogSetup (const int pinBase) ; |
| 186 | |
| 187 | // Header file WiringPi/devLib/lcd128x64.h |
| 188 | extern void lcd128x64setOrigin (int x, int y) ; |
| 189 | extern void lcd128x64setOrientation (int orientation) ; |
| 190 | extern void lcd128x64orientCoordinates (int *x, int *y) ; |
| 191 | extern void lcd128x64getScreenSize (int *x, int *y) ; |
| 192 | extern void lcd128x64point (int x, int y, int colour) ; |
| 193 | extern void lcd128x64line (int x0, int y0, int x1, int y1, int colour) ; |
| 194 | extern void lcd128x64lineTo (int x, int y, int colour) ; |
| 195 | extern void lcd128x64rectangle (int x1, int y1, int x2, int y2, int colour, int filled) ; |
| 196 | extern void lcd128x64circle (int x, int y, int r, int colour, int filled) ; |
| 197 | extern void lcd128x64ellipse (int cx, int cy, int xRadius, int yRadius, int colour, int filled) ; |
| 198 | extern void lcd128x64putchar (int x, int y, int c, int bgCol, int fgCol) ; |
| 199 | extern void lcd128x64puts (int x, int y, const char *str, int bgCol, int fgCol) ; |
| 200 | extern void lcd128x64update (void) ; |
| 201 | extern void lcd128x64clear (int colour) ; |
| 202 | extern int lcd128x64setup (void) ; |
| 203 | |
| 204 | // Header file WiringPi/devLib/lcd.h |
| 205 | extern void lcdHome (const int fd) ; |
| 206 | extern void lcdClear (const int fd) ; |
| 207 | extern void lcdDisplay (const int fd, int state) ; |
| 208 | extern void lcdCursor (const int fd, int state) ; |
| 209 | extern void lcdCursorBlink (const int fd, int state) ; |
| 210 | extern void lcdSendCommand (const int fd, unsigned char command) ; |
| 211 | extern void lcdPosition (const int fd, int x, int y) ; |
| 212 | extern void lcdCharDef (const int fd, int index, unsigned char data [8]) ; |
| 213 | extern void lcdPutchar (const int fd, unsigned char data) ; |
| 214 | extern void lcdPuts (const int fd, const char *string) ; |
| 215 | extern void lcdPrintf (const int fd, const char *message, ...) ; |
| 216 | extern int lcdInit (const int rows, const int cols, const int bits, |
| 217 | const int rs, const int strb, |
| 218 | const int d0, const int d1, const int d2, const int d3, const int d4, |
| 219 | const int d5, const int d6, const int d7) ; |
| 220 | |
| 221 | // Header file WiringPi/devLib/maxdetect.h |
| 222 | int maxDetectRead (const int pin, unsigned char buffer [4]) ; |
| 223 | int readRHT03 (const int pin, int *temp, int *rh) ; |
| 224 | |
Phil Howard | aee4f5d | 2016-02-28 09:54:53 +0000 | [diff] [blame] | 225 | // Header file WiringPi/devLib/piGlow.h |
| 226 | extern void piGlow1 (const int leg, const int ring, const int intensity) ; |
| 227 | extern void piGlowLeg (const int leg, const int intensity) ; |
| 228 | extern void piGlowRing (const int ring, const int intensity) ; |
| 229 | extern void piGlowSetup (int clear) ; |
| 230 | |
| 231 | // Header file WiringPi/devLib/piNes.h |
| 232 | extern int setupNesJoystick (int dPin, int cPin, int lPin) ; |
| 233 | extern unsigned int readNesJoystick (int joystick) ; |
Phil Howard | 5d59981 | 2016-02-29 12:07:40 +0000 | [diff] [blame] | 234 | |
| 235 | // Header file WiringPi/devLib/scrollPhat.h |
| 236 | extern void scrollPhatPoint (int x, int y, int colour) ; |
| 237 | extern void scrollPhatLine (int x0, int y0, int x1, int y1, int colour) ; |
| 238 | extern void scrollPhatLineTo (int x, int y, int colour) ; |
| 239 | extern void scrollPhatRectangle (int x1, int y1, int x2, int y2, int colour, int filled) ; |
| 240 | extern void scrollPhatUpdate (void) ; |
| 241 | extern void scrollPhatClear (void) ; |
| 242 | extern int scrollPhatPutchar (int c) ; |
| 243 | extern void scrollPhatPuts (const char *str) ; |
| 244 | extern void scrollPhatPrintf (const char *message, ...) ; |
| 245 | extern void scrollPhatPrintSpeed (const int cps10) ; |
| 246 | extern void scrollPhatIntensity (const int percent) ; |
| 247 | extern int scrollPhatSetup (void) ; |
neuralassembly | 91b71d7 | 2017-03-29 17:25:14 +0900 | [diff] [blame] | 248 | |
| 249 | // Header file WiringPi/devLib/piFace.h |
| 250 | extern int piFaceSetup (const int pinBase) ; |