Main Page   Modules   File List   Globals  

gp3linux.c File Reference

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

#include <stdio.h>
#include <fcntl.h>
#include "gp3lib.h"
#include <asm/termios.h>

Go to the source code of this file.


#define BAUDRATE   B57600
#define DEBUGOUT   0
#define DEBUG(tag, x)


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 linux-specific gp3 file.

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

Al Williams
17 Feb 2004

Definition in file gp3linux.c.

Define Documentation

#define BAUDRATE   B57600

Definition at line 15 of file gp3linux.c.

Referenced by gp3openport().

#define DEBUG tag,

Definition at line 20 of file gp3linux.c.

#define DEBUGOUT   0

Definition at line 16 of file gp3linux.c.

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