#include <math.h>#include <stdio.h>#include <string.h>#include <strings.h>#include <unistd.h>#include <fcntl.h>#include <sys/stat.h>#include <sys/time.h>#include <sys/types.h>#include <shvel-param.h>#include <serial.h>#include <communication.h>#include <utility.h>#include <param.h>#include <ypspur-coordinator.h>#include <yprintf.h>#include <errno.h>#include <sys/select.h>#include <sys/termios.h>
Go to the source code of this file.
Functions | |
| int | baud2i (speed_t baud) |
| int | encode_write (char *data, int len) |
| speed_t | i2baud (int baud) |
| int | recieve_throw (char *buf, int len, double t, void *data) |
| int | serial_change_baudrate (int baud) |
| ボーレートを変更する | |
| int | serial_close (void) |
| int | serial_connect (char *device_name) |
| void | serial_flush_in (void) |
| void | serial_flush_out (void) |
| int | serial_recieve (int(*serial_event)(char *, int, double, void *), void *data) |
| int | serial_tryconnect (char *device_name) |
| int | serial_write (char *buf, int len) |
Variables | |
| int | g_device_port = 0 |
| struct termios | g_oldtio |
| double | SER_BAUDRATE |
| int encode_write | ( | char * | data, |
| int | len | ||
| ) |
| int recieve_throw | ( | char * | buf, |
| int | len, | ||
| double | t, | ||
| void * | data | ||
| ) |
| int serial_change_baudrate | ( | int | baud | ) |
| int serial_close | ( | void | ) |
| int serial_connect | ( | char * | device_name | ) |
| void serial_flush_in | ( | void | ) |
| void serial_flush_out | ( | void | ) |
| int serial_recieve | ( | int(*)(char *, int, double, void *) | serial_event, |
| void * | data | ||
| ) |
| int serial_tryconnect | ( | char * | device_name | ) |
| int serial_write | ( | char * | buf, |
| int | len | ||
| ) |
| int g_device_port = 0 |
| double SER_BAUDRATE |