Go to the source code of this file.
Defines | |
#define | READ_TIMEOUT 250000 |
#define | _POSIX |
Functions | |
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 READ_TIMEOUT 250000 |
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 | |||
) |
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 | ) |
int carmen_serial_writen | ( | int | dev_fd, | |
char * | buf, | |||
int | nChars | |||
) |