Functions | |
int | gp3openport (char *port) |
Open the GP3 serial port. | |
void | gp3closeport () |
Close the GP3 port. | |
int | gp3write (int byte) |
Write a byte to the GP3. | |
unsigned int | gp3read (void) |
Read a byte from the GP3. | |
int | gp3ready (void) |
Optional function reads the CTS input to determine if the GP3 is ready. |
|
Close the GP3 port.
Definition at line 60 of file gp3cygwin.c. Referenced by main(). |
|
Open the GP3 serial port.
Definition at line 36 of file gp3cygwin.c. References BAUDRATE. |
|
Read a byte from the GP3. This function blocks until a byte is received
Definition at line 76 of file gp3cygwin.c. References DEBUG. Referenced by gp3check(), gp3getpins(), gp3gettris(), gp3input(), gp3readee(), and gp3readword(). |
|
Optional function reads the CTS input to determine if the GP3 is ready. None of the functions use this (although the demo program does). Using this function it is possible to avoid calling gp3write when it would cause the program to block.
Definition at line 95 of file gp3cygwin.c. Referenced by gp3write(), and main(). |
|
Write a byte to the GP3. This function blocks if the GP3 is not ready.
Definition at line 67 of file gp3cygwin.c. References DEBUG. |