#include <stdio.h>
#include <fcntl.h>
#include "gp3lib.h"
#include <termios.h>
Go to the source code of this file.
Defines | |
| #define | BAUDRATE B57600 |
| Must operate at 57600 baud. | |
| #define | DEBUGOUT 0 |
| If DEBUGOUT=1 then the platform-specific code will generate interesting debug messages. | |
| #define | DEBUG(tag, x) |
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. | |
Compile and link with gp3lib.c. Do not link with other files (such as gp3linux.c).
Definition in file gp3cygwin.c.
|
|
Must operate at 57600 baud.
Definition at line 15 of file gp3cygwin.c. Referenced by gp3openport(). |
|
|
Definition at line 25 of file gp3cygwin.c. Referenced by gp3read(), and gp3write(). |
|
|
If DEBUGOUT=1 then the platform-specific code will generate interesting debug messages.
Definition at line 21 of file gp3cygwin.c. |
1.2.18