Main Page   Modules   File List   Globals  

gp3cygwin.c File Reference

This is the cygwin-specific gp3 file. More...

#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.


Detailed Description

This is the cygwin-specific gp3 file.

Compile and link with gp3lib.c. Do not link with other files (such as gp3linux.c).

Author:
Al Williams alw@al-williams.com
Version:
1.1
Date:
17 Feb 2004

Definition in file gp3cygwin.c.


Define Documentation

#define BAUDRATE   B57600
 

Must operate at 57600 baud.

Definition at line 15 of file gp3cygwin.c.

Referenced by gp3openport().

#define DEBUG tag,
 
 

Definition at line 25 of file gp3cygwin.c.

Referenced by gp3read(), and gp3write().

#define DEBUGOUT   0
 

If DEBUGOUT=1 then the platform-specific code will generate interesting debug messages.

Definition at line 21 of file gp3cygwin.c.


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