/home/fwph/code/wurde/modules/sickLaser/serial.h File Reference

Go to the source code of this file.


#define READ_TIMEOUT   250000
#define _POSIX


int carmen_serial_connect (int *dev_fd, char *dev_name)
void carmen_serial_setrts (int fd)
void carmen_serial_setparms (int fd, char *baudr, char *par, char *bits, int hwf, int swf)
void carmen_serial_configure (int dev_fd, int baudrate, char *parity)
long carmen_serial_numChars (int dev_fd)
int carmen_serial_ClearInputBuffer (int dev_fd)
int carmen_serial_writen (int dev_fd, char *buf, int nChars)
int carmen_serial_readn (int dev_fd, char *buf, int nChars)

Define Documentation

#define _POSIX

Definition at line 42 of file serial.h.

#define READ_TIMEOUT   250000

Definition at line 41 of file serial.h.

Referenced by carmen_serial_readn().

Function Documentation

int carmen_serial_ClearInputBuffer ( int  dev_fd  ) 

Definition at line 294 of file serial.h.

References carmen_serial_numChars(), and val.

Referenced by sick_set_config_mode().

void carmen_serial_configure ( int  dev_fd,
int  baudrate,
char *  parity 

Definition at line 262 of file serial.h.

References carmen_serial_setparms().

int carmen_serial_connect ( int *  dev_fd,
char *  dev_name 

Definition at line 44 of file serial.h.

long carmen_serial_numChars ( int  dev_fd  ) 

Definition at line 284 of file serial.h.

Referenced by carmen_serial_ClearInputBuffer(), sick_handle_laser(), sick_read_data(), and sick_write_command().

int carmen_serial_readn ( int  dev_fd,
char *  buf,
int  nChars 

Definition at line 327 of file serial.h.

References err, and READ_TIMEOUT.

Referenced by sick_handle_laser().

void carmen_serial_setparms ( int  fd,
char *  baudr,
char *  par,
char *  bits,
int  hwf,
int  swf 

Definition at line 87 of file serial.h.

References carmen_serial_setrts(), RAW, TIOCGETP, and TIOCSETP.

Referenced by carmen_serial_configure().

void carmen_serial_setrts ( int  fd  ) 

Definition at line 72 of file serial.h.

Referenced by carmen_serial_setparms().

int carmen_serial_writen ( int  dev_fd,
char *  buf,
int  nChars 

Definition at line 305 of file serial.h.

Referenced by sick_write_command().

Generated on Thu Feb 1 15:31:54 2007 for WURDE by  doxygen 1.5.1