Main Page   Modules   File List   Globals  

gp3lib.h

Go to the documentation of this file.
00001 
00033 #ifndef _AWC_GP3LIB_H
00034 #define _AWC_GP3LIB_H
00035 
00046 int gp3openport(char *port);  // returns -1 for error
00049 void gp3closeport();
00055 int gp3write(int byte);   // returns 1 for success
00060 unsigned int gp3read(void);  // returns character or -1 for error
00067 int gp3ready(void);  // optional returns 0 for not ready, 1 for ready
00068 
00080 unsigned int gp3readword(void);
00081 
00085 void gp3setLED(int onoff);
00090 unsigned int gp3a2d(int chan);
00091 
00096 void gp3high(int pin);
00101 void gp3low(int pin);
00106 void gp3toggle(int pin);
00107 
00113 int gp3input(int pin);
00120 void gp3settris(int tris);
00126 unsigned int gp3gettris(void);
00130 void gp3setpins(int byte);
00134 unsigned int gp3getpins(void);
00139 void gp3writeee(int address, int byte);
00144 unsigned int gp3readee(int address);
00150 void gp3pwm(int chan,int dc, int dfreq);
00156 unsigned int gp3count(int pin,unsigned int ms);
00166 unsigned int gp3rctime(int pin, int state);
00172 unsigned int gp3pulsein(int pin, int state);
00178 void gp3pulseout(int pin, int duration);
00184 void gp3freq(int pin, int ms, int freq);
00189 void gp3setcounter(int prescale, int ext);
00193 unsigned int gp3counter(void);
00195 void gp3resetall(void);
00197 void gp3reset(void);
00207 void gp3repeat(int count);
00211 void gp3argincr(void);
00215 void gp3argdecr(void);
00220 unsigned int gp3check(void);
00222 #endif
00223 
00224 

Generated on Wed Feb 18 00:34:20 2004 for GP3LIB by doxygen1.2.18