mirror of
git://soft.sys114.com/WiringPi2-Python
synced 2025-12-19 03:08:42 +09:00
126 lines
6.0 KiB
OpenEdge ABL
126 lines
6.0 KiB
OpenEdge ABL
// Generated by generate-bindings.py - do not edit manually!
|
|
|
|
// Header file WiringPi/wiringPi/wiringPi.h
|
|
extern int wiringPiFailure (int fatal, const char *message, ...);
|
|
extern int msg (int type, const char *message, ...);
|
|
extern int moduleLoaded (char *);
|
|
extern void setupCheck (const char *fName);
|
|
extern void usingGpiomemCheck (const char *what);
|
|
extern void setUsingGpiomem (const unsigned int value);
|
|
extern void wiringPiVersion (int *major, char **minor);
|
|
extern int wiringPiSetup (void);
|
|
extern int wiringPiSetupSys (void);
|
|
extern int wiringPiSetupGpio (void);
|
|
extern int wiringPiSetupPhys (void);
|
|
extern void setDrive (int pin, int value);
|
|
extern int getDrive (int pin);
|
|
extern int getAlt (int pin);
|
|
extern int getPUPD (int pin);
|
|
extern void pinMode (int pin, int mode);
|
|
extern void pullUpDnControl (int pin, int pud);
|
|
extern int digitalRead (int pin);
|
|
extern void digitalWrite (int pin, int value);
|
|
extern unsigned int digitalReadByte (void);
|
|
extern void digitalWriteByte (const int value);
|
|
extern void pwmWrite (int pin, int value);
|
|
extern int analogRead (int pin);
|
|
extern int piGpioLayout (void);
|
|
extern void piBoardId (int *model, int *rev, int *mem, int *maker, int *warranty);
|
|
extern int wpiPinToGpio (int wpiPin);
|
|
extern int physPinToGpio (int physPin);
|
|
extern void pwmSetRange (unsigned int range);
|
|
extern void pwmSetClock (int divisor);
|
|
extern int waitForInterrupt (int pin, int mS);
|
|
extern int wiringPiISRCancel (int pin);
|
|
extern int piThreadCreate (void *(*fn)(void *));
|
|
extern void piLock (int key);
|
|
extern void piUnlock (int key);
|
|
extern int piHiPri (const int pri);
|
|
extern void delay (unsigned int howLong);
|
|
extern void delayMicroseconds (unsigned int howLong);
|
|
extern unsigned int millis (void);
|
|
extern unsigned int micros (void);
|
|
|
|
// Header file WiringPi/wiringPi/wiringPiI2C.h
|
|
extern int wiringPiI2CRead (int fd);
|
|
extern int wiringPiI2CReadReg8 (int fd, int reg);
|
|
extern int wiringPiI2CReadReg16 (int fd, int reg);
|
|
extern int wiringPiI2CReadBlock (int fd, int reg, uint8_t *buff, int size);
|
|
extern int wiringPiI2CWrite (int fd, int data);
|
|
extern int wiringPiI2CWriteReg8 (int fd, int reg, int data);
|
|
extern int wiringPiI2CWriteReg16 (int fd, int reg, int data);
|
|
extern int wiringPiI2CWriteBlock (int fd, int reg, uint8_t *buff, int size);
|
|
extern int wiringPiI2CSetupInterface (const char *device, int devId);
|
|
extern int wiringPiI2CSetup (const int devId);
|
|
|
|
// Header file WiringPi/wiringPi/wiringPiSPI.h
|
|
int wiringPiSPIGetFd (int channel) ;
|
|
int wiringPiSPIDataRW (int channel, unsigned char *data, int len) ;
|
|
int wiringPiSPISetupInterface (const char *device, int channel, int speed, int mode) ;
|
|
int wiringPiSPISetupMode (int channel, int speed, int mode) ;
|
|
int wiringPiSPISetup (int channel, int speed) ;
|
|
|
|
// Header file WiringPi/wiringPi/wiringSerial.h
|
|
extern int serialOpen (const char *device, const int baud) ;
|
|
extern void serialClose (const int fd) ;
|
|
extern void serialFlush (const int fd) ;
|
|
extern void serialPutchar (const int fd, const unsigned char c) ;
|
|
extern void serialPuts (const int fd, const char *s) ;
|
|
extern void serialPrintf (const int fd, const char *message, ...) ;
|
|
extern int serialDataAvail (const int fd) ;
|
|
extern int serialGetchar (const int fd) ;
|
|
|
|
// Header file WiringPi/wiringPi/wiringShift.h
|
|
extern uint8_t shiftIn (uint8_t dPin, uint8_t cPin, uint8_t order) ;
|
|
extern void shiftOut (uint8_t dPin, uint8_t cPin, uint8_t order, uint8_t val) ;
|
|
|
|
// Header file WiringPi/wiringPi/softPwm.h
|
|
extern int softPwmCreate (int pin, int value, int range) ;
|
|
extern void softPwmWrite (int pin, int value) ;
|
|
extern void softPwmStop (int pin) ;
|
|
|
|
// Header file WiringPi/wiringPi/softServo.h
|
|
extern void softServoWrite (int pin, int value) ;
|
|
extern int softServoSetup (int p0, int p1, int p2, int p3, int p4, int p5, int p6, int p7) ;
|
|
|
|
// Header file WiringPi/wiringPi/softTone.h
|
|
extern int softToneCreate (int pin) ;
|
|
extern void softToneStop (int pin) ;
|
|
extern void softToneWrite (int pin, int freq) ;
|
|
|
|
// Header file WiringPi/devLib/font.h
|
|
|
|
// Header file WiringPi/devLib/lcd128x64.h
|
|
extern void lcd128x64setOrigin (int x, int y) ;
|
|
extern void lcd128x64setOrientation (int orientation) ;
|
|
extern void lcd128x64orientCoordinates (int *x, int *y) ;
|
|
extern void lcd128x64getScreenSize (int *x, int *y) ;
|
|
extern void lcd128x64point (int x, int y, int colour) ;
|
|
extern void lcd128x64line (int x0, int y0, int x1, int y1, int colour) ;
|
|
extern void lcd128x64lineTo (int x, int y, int colour) ;
|
|
extern void lcd128x64rectangle (int x1, int y1, int x2, int y2, int colour, int filled) ;
|
|
extern void lcd128x64circle (int x, int y, int r, int colour, int filled) ;
|
|
extern void lcd128x64ellipse (int cx, int cy, int xRadius, int yRadius, int colour, int filled) ;
|
|
extern void lcd128x64putchar (int x, int y, int c, int bgCol, int fgCol) ;
|
|
extern void lcd128x64puts (int x, int y, const char *str, int bgCol, int fgCol) ;
|
|
extern void lcd128x64update (void) ;
|
|
extern void lcd128x64clear (int colour) ;
|
|
extern int lcd128x64setup (void) ;
|
|
|
|
// Header file WiringPi/devLib/lcd.h
|
|
extern void lcdHome (const int fd) ;
|
|
extern void lcdClear (const int fd) ;
|
|
extern void lcdDisplay (const int fd, int state) ;
|
|
extern void lcdCursor (const int fd, int state) ;
|
|
extern void lcdCursorBlink (const int fd, int state) ;
|
|
extern void lcdSendCommand (const int fd, unsigned char command) ;
|
|
extern void lcdPosition (const int fd, int x, int y) ;
|
|
extern void lcdCharDef (const int fd, int index, unsigned char data [8]) ;
|
|
extern void lcdPutchar (const int fd, unsigned char data) ;
|
|
extern void lcdPuts (const int fd, const char *string) ;
|
|
extern void lcdPrintf (const int fd, const char *message, ...) ;
|
|
extern int lcdInit (const int rows, const int cols, const int bits,
|
|
const int rs, const int strb,
|
|
const int d0, const int d1, const int d2, const int d3, const int d4,
|
|
const int d5, const int d6, const int d7) ;
|