Go to the documentation of this file.
15 const char *device,
long baudrate_or_port)
17 connection->
type = connection_type;
19 switch (connection_type) {
26 device, baudrate_or_port);
35 switch (connection->
type) {
51 switch (connection->
type) {
66 const char *data,
int size)
68 switch (connection->
type) {
81 char *data,
int max_size,
int timeout)
83 switch (connection->
type) {
96 char *data,
int max_size,
int timeout)
98 switch (connection->
type) {
104 data, max_size, timeout);
int serial_set_baudrate(urg_serial_t *serial, long baudrate)
ボーレートを設定する
int serial_read(urg_serial_t *serial, char *data, int max_size, int timeout)
データを受信する
void tcpclient_close(urg_tcpclient_t *cli)
destructor of tcp client module
urg_connection_type_t
通信タイプ
int connection_write(urg_connection_t *connection, const char *data, int size)
送信
void connection_close(urg_connection_t *connection)
切断
int serial_write(urg_serial_t *serial, const char *data, int size)
データを送信する
urg_serial_t serial
シリアル接続
int tcpclient_read(urg_tcpclient_t *cli, char *userbuf, int req_size, int timeout)
read from socket.
int tcpclient_open(urg_tcpclient_t *cli, const char *server_ip_str, int port_num)
constructor of tcp client module
int connection_readline(urg_connection_t *connection, char *data, int max_size, int timeout)
改行文字までの受信
urg_connection_type_t type
接続タイプ
void serial_close(urg_serial_t *serial)
接続を閉じる
int connection_open(urg_connection_t *connection, urg_connection_type_t connection_type, const char *device, long baudrate_or_port)
接続
int tcpclient_readline(urg_tcpclient_t *cli, char *userbuf, int buf_size, int timeout)
read one line from socket.
int serial_readline(urg_serial_t *serial, char *data, int max_size, int timeout)
改行までのデータを受信する
urg_tcpclient_t tcpclient
イーサーネット接続
int serial_open(urg_serial_t *serial, const char *device, long baudrate)
接続を開く
int connection_read(urg_connection_t *connection, char *data, int max_size, int timeout)
受信
int tcpclient_write(urg_tcpclient_t *cli, const char *userbuf, int req_size)
write to socket.
int connection_set_baudrate(urg_connection_t *connection, long baudrate)
urg_c
Author(s): Satofumi Kamimura
, Katsumi Kimoto, Adrian Boeing
autogenerated on Wed Mar 2 2022 01:08:11