シリアル通信 More...
Go to the source code of this file.
Enumerations | |
enum | { INVALID_FD = -1 } |
Functions | |
static int | internal_receive (char data[], int data_size_max, urg_serial_t *serial, int timeout) |
static void | serial_clear (urg_serial_t *serial) |
void | serial_close (urg_serial_t *serial) |
接続を閉じる More... | |
static void | serial_initialize (urg_serial_t *serial) |
int | serial_open (urg_serial_t *serial, const char *device, long baudrate) |
接続を開く More... | |
int | serial_read (urg_serial_t *serial, char *data, int max_size, int timeout) |
データを受信する More... | |
int | serial_set_baudrate (urg_serial_t *serial, long baudrate) |
ボーレートを設定する More... | |
int | serial_write (urg_serial_t *serial, const char *data, int size) |
データを送信する More... | |
static int | wait_receive (urg_serial_t *serial, int timeout) |
anonymous enum |
Enumerator | |
---|---|
INVALID_FD |
Definition at line 15 of file urg_serial_linux.c.
|
static |
Definition at line 164 of file urg_serial_linux.c.
|
static |
Definition at line 29 of file urg_serial_linux.c.
void serial_close | ( | urg_serial_t * | serial | ) |
接続を閉じる
Definition at line 82 of file urg_serial_linux.c.
|
static |
Definition at line 20 of file urg_serial_linux.c.
int serial_open | ( | urg_serial_t * | serial, |
const char * | device, | ||
long | baudrate | ||
) |
接続を開く
Definition at line 38 of file urg_serial_linux.c.
int serial_read | ( | urg_serial_t * | serial, |
char * | data, | ||
int | max_size, | ||
int | timeout | ||
) |
データを受信する
Definition at line 193 of file urg_serial_linux.c.
int serial_set_baudrate | ( | urg_serial_t * | serial, |
long | baudrate | ||
) |
ボーレートを設定する
Definition at line 91 of file urg_serial_linux.c.
int serial_write | ( | urg_serial_t * | serial, |
const char * | data, | ||
int | size | ||
) |
データを送信する
Definition at line 134 of file urg_serial_linux.c.
|
static |
Definition at line 143 of file urg_serial_linux.c.