Philip Howard | 6ae3e5b | 2013-05-21 22:48:41 +0100 | [diff] [blame^] | 1 | extern unsigned int ds1302rtcRead (const int reg) ; |
| 2 | extern void ds1302rtcWrite (const int reg, const unsigned int data) ; |
| 3 | extern unsigned int ds1302ramRead (const int addr) ; |
| 4 | extern void ds1302ramWrite (const int addr, const unsigned int data) ; |
| 5 | extern void ds1302clockRead (int clockData [8]) ; |
| 6 | extern void ds1302clockWrite (const int clockData [8]) ; |
| 7 | extern void ds1302trickleCharge (const int diodes, const int resistors) ; |
| 8 | extern void ds1302setup (const int clockPin, const int dataPin, const int csPin) ; |
| 9 | extern void gertboardAnalogWrite (const int chan, const int value) ; |
| 10 | extern int gertboardAnalogRead (const int chan) ; |
| 11 | extern int gertboardSPISetup (void) ; |
| 12 | extern int gertboardAnalogSetup (const int pinBase) ; |
| 13 | extern void lcd128x64setOrigin (int x, int y) ; |
| 14 | extern void lcd128x64setOrientation (int orientation) ; |
| 15 | extern void lcd128x64orientCoordinates (int *x, int *y) ; |
| 16 | extern void lcd128x64getScreenSize (int *x, int *y) ; |
| 17 | extern void lcd128x64point (int x, int y, int colour) ; |
| 18 | extern void lcd128x64line (int x0, int y0, int x1, int y1, int colour) ; |
| 19 | extern void lcd128x64lineTo (int x, int y, int colour) ; |
| 20 | extern void lcd128x64rectangle (int x1, int y1, int x2, int y2, int colour, int filled) ; |
| 21 | extern void lcd128x64circle (int x, int y, int r, int colour, int filled) ; |
| 22 | extern void lcd128x64ellipse (int cx, int cy, int xRadius, int yRadius, int colour, int filled) ; |
| 23 | extern void lcd128x64putchar (int x, int y, int c, int bgCol, int fgCol) ; |
| 24 | extern void lcd128x64puts (int x, int y, const char *str, int bgCol, int fgCol) ; |
| 25 | extern void lcd128x64update (void) ; |
| 26 | extern void lcd128x64clear (int colour) ; |
| 27 | extern int lcd128x64setup (void) ; |
| 28 | extern void lcdHome (const int fd) ; |
| 29 | extern void lcdClear (const int fd) ; |
| 30 | extern void lcdDisplay (const int fd, int state) ; |
| 31 | extern void lcdCursor (const int fd, int state) ; |
| 32 | extern void lcdCursorBlink (const int fd, int state) ; |
| 33 | extern void lcdSendCommand (const int fd, unsigned char command) ; |
| 34 | extern void lcdPosition (const int fd, int x, int y) ; |
| 35 | extern void lcdCharDef (const int fd, int index, unsigned char data [8]) ; |
| 36 | extern void lcdPutchar (const int fd, unsigned char data) ; |
| 37 | extern void lcdPuts (const int fd, const char *string) ; |
| 38 | extern void lcdPrintf (const int fd, const char *message, ...) ; |
| 39 | extern int lcdInit (const int rows, const int cols, const int bits, |
| 40 | extern int piFaceSetup (const int pinBase) ; |
| 41 | extern int setupNesJoystick (int dPin, int cPin, int lPin) ; |
| 42 | extern unsigned int readNesJoystick (int joystick) ; |
| 43 | extern int doExtension (char *progName, char *extensionData) ; |
| 44 | extern int mcp23008Setup (const int pinBase, const int i2cAddress) ; |
| 45 | extern int mcp23016Setup (const int pinBase, const int i2cAddress) ; |
| 46 | extern int mcp23017Setup (const int pinBase, const int i2cAddress) ; |
| 47 | extern int mcp23s08Setup (const int pinBase, const int spiPort, const int devId) ; |
| 48 | extern int mcp23s17Setup (int pinBase, int spiPort, int devId) ; |
| 49 | extern int mcp3002Setup (int pinBase, int spiChannel) ; |
| 50 | extern int mcp3422Setup (int pinBase, int i2cAddress, int channels, int sampleRate, int gain) ; |
| 51 | extern int mcp4802Setup (int pinBase, int spiChannel) ; |
| 52 | extern int pcf8574Setup (const int pinBase, const int i2cAddress) ; |
| 53 | extern int pcf8591Setup (const int pinBase, const int i2cAddress) ; |
| 54 | extern int softPwmCreate (int pin, int value, int range) ; |
| 55 | extern void softPwmWrite (int pin, int value) ; |
| 56 | extern void softServoWrite (int pin, int value) ; |
| 57 | extern int softServoSetup (int p0, int p1, int p2, int p3, int p4, int p5, int p6, int p7) ; |
| 58 | extern int softToneCreate (int pin) ; |
| 59 | extern void softToneWrite (int pin, int freq) ; |
| 60 | extern int sr595Setup (const int pinBase, const int numPins, |
| 61 | extern int wiringPiFailure (int fatal, const char *message, ...) ; |
| 62 | extern struct wiringPiNodeStruct *wiringPiNewNode (int pinBase, int numPins) ; |
| 63 | extern int wiringPiSetup (void) ; |
| 64 | extern int wiringPiSetupSys (void) ; |
| 65 | extern int wiringPiSetupGpio (void) ; |
| 66 | extern int wiringPiSetupPhys (void) ; |
| 67 | extern void pinMode (int pin, int mode) ; |
| 68 | extern void pullUpDnControl (int pin, int pud) ; |
| 69 | extern int digitalRead (int pin) ; |
| 70 | extern void digitalWrite (int pin, int value) ; |
| 71 | extern void pwmWrite (int pin, int value) ; |
| 72 | extern int analogRead (int pin) ; |
| 73 | extern void analogWrite (int pin, int value) ; |
| 74 | extern int wiringPiSetupPiFace (void) ; |
| 75 | extern int wiringPiSetupPiFaceForGpioProg (void) ; // Don't use this - for gpio program only |
| 76 | extern int piBoardRev (void) ; |
| 77 | extern int wpiPinToGpio (int wpiPin) ; |
| 78 | extern int physPinToGpio (int physPin) ; |
| 79 | extern void setPadDrive (int group, int value) ; |
| 80 | extern int getAlt (int pin) ; |
| 81 | extern void digitalWriteByte (int value) ; |
| 82 | extern void pwmSetMode (int mode) ; |
| 83 | extern void pwmSetRange (unsigned int range) ; |
| 84 | extern void pwmSetClock (int divisor) ; |
| 85 | extern void gpioClockSet (int pin, int freq) ; |
| 86 | extern int waitForInterrupt (int pin, int mS) ; |
| 87 | extern int wiringPiISR (int pin, int mode, void (*function)(void)) ; |
| 88 | extern int piThreadCreate (void *(*fn)(void *)) ; |
| 89 | extern void piLock (int key) ; |
| 90 | extern void piUnlock (int key) ; |
| 91 | extern int piHiPri (const int pri) ; |
| 92 | extern void delay (unsigned int howLong) ; |
| 93 | extern void delayMicroseconds (unsigned int howLong) ; |
| 94 | extern unsigned int millis (void) ; |
| 95 | extern unsigned int micros (void) ; |
| 96 | extern int wiringPiI2CRead (int fd) ; |
| 97 | extern int wiringPiI2CReadReg8 (int fd, int reg) ; |
| 98 | extern int wiringPiI2CReadReg16 (int fd, int reg) ; |
| 99 | extern int wiringPiI2CWrite (int fd, int data) ; |
| 100 | extern int wiringPiI2CWriteReg8 (int fd, int reg, int data) ; |
| 101 | extern int wiringPiI2CWriteReg16 (int fd, int reg, int data) ; |
| 102 | extern int wiringPiI2CSetupInterface (const char *device, int devId) ; |
| 103 | extern int wiringPiI2CSetup (const int devId) ; |
| 104 | extern int serialOpen (const char *device, const int baud) ; |
| 105 | extern void serialClose (const int fd) ; |
| 106 | extern void serialFlush (const int fd) ; |
| 107 | extern void serialPutchar (const int fd, const unsigned char c) ; |
| 108 | extern void serialPuts (const int fd, const char *s) ; |
| 109 | extern void serialPrintf (const int fd, const char *message, ...) ; |
| 110 | extern int serialDataAvail (const int fd) ; |
| 111 | extern int serialGetchar (const int fd) ; |
| 112 | extern uint8_t shiftIn (uint8_t dPin, uint8_t cPin, uint8_t order) ; |
| 113 | extern void shiftOut (uint8_t dPin, uint8_t cPin, uint8_t order, uint8_t val) ; |