serialcomm.cxx File Reference


Detailed Description

source file for serial communication.

Author:
Thomas Peterseil
Id
serialcomm.cxx 1547 2006-10-25 10:33:10Z veas

#include <OpenTracker/misc/serialcomm.h>
#include <cstdlib>
#include <cstdio>
#include <cstring>
#include <stdio.h>
#include <sys/time.h>
#include <sys/types.h>
#include <sys/ioctl.h>
#include <fcntl.h>
#include <strings.h>
#include <termios.h>
#include <unistd.h>

Include dependency graph for serialcomm.cxx:


Defines

#define DEBUGING   1
#define DEBUG(msg)   printf("%s\n", (msg));

Functions

void initSerialParams (SerialParams *params)
int openSerialPort (SerialPort *port, SerialParams *params)
int closeSerialPort (SerialPort *port)
int setRTSSerialPort (SerialPort *port, int level)
int waitforoneSerialPort (SerialPort *port, long time)
int waitforallSerialPorts (SerialPort **ports, int count, int *setofports, long time)
int readfromSerialPort (SerialPort *port, char *buf, int count)
int writetoSerialPort (SerialPort *port, char *buf, int count)

Define Documentation

#define DEBUG msg   )     printf("%s\n", (msg));
 

#define DEBUGING   1
 


Function Documentation

int closeSerialPort SerialPort port  ) 
 

void initSerialParams SerialParams params  ) 
 

int openSerialPort SerialPort port,
SerialParams params
 

int readfromSerialPort SerialPort port,
char *  buf,
int  count
 

int setRTSSerialPort SerialPort port,
int  level
 

int waitforallSerialPorts SerialPort **  ports,
int  count,
int *  setofports,
long  time
 

int waitforoneSerialPort SerialPort port,
long  time
 

int writetoSerialPort SerialPort port,
char *  buf,
int  count
 


Generated on Wed Feb 28 15:26:29 2007 for NaviTrack by  doxygen 1.4.6