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