1 #ifndef URG_CONNECTION_H 2 #define URG_CONNECTION_H 43 urg_connection_type_t
type;
91 urg_connection_type_t connection_type,
92 const char *device,
long baudrate_or_port);
133 const char *data,
int size);
165 char *data,
int max_size,
int timeout);
190 char *data,
int max_size,
int timeout);
void connection_close(urg_connection_t *connection)
切断
int connection_readline(urg_connection_t *connection, char *data, int max_size, int timeout)
改行文字までの受信
urg_connection_type_t
通信タイプ
int connection_write(urg_connection_t *connection, const char *data, int size)
送信
int connection_read(urg_connection_t *connection, char *data, int max_size, int timeout)
受信
int connection_set_baudrate(urg_connection_t *connection, long baudrate)
int connection_open(urg_connection_t *connection, urg_connection_type_t connection_type, const char *device, long baudrate_or_port)
接続
urg_serial_t serial
シリアル接続
urg_connection_type_t type
接続タイプ
TCP/IP read/write functions.
urg_tcpclient_t tcpclient
イーサーネット接続