urg_connection.h
Go to the documentation of this file.
1 #ifndef URG_CONNECTION_H
2 #define URG_CONNECTION_H
3 
13 #ifdef __cplusplus
14 extern "C" {
15 #endif
16 
17 #include "urg_c/urg_serial.h"
18 #include "urg_c/urg_tcpclient.h"
19 
20 
24 enum {
26 };
27 
28 
32 typedef enum {
36 
37 
41 typedef struct
42 {
43  urg_connection_type_t type;
47 
48 
90 extern int connection_open(urg_connection_t *connection,
91  urg_connection_type_t connection_type,
92  const char *device, long baudrate_or_port);
93 
94 
107 extern void connection_close(urg_connection_t *connection);
108 
109 
111 extern int connection_set_baudrate(urg_connection_t *connection, long baudrate);
112 
113 
132 extern int connection_write(urg_connection_t *connection,
133  const char *data, int size);
134 
135 
164 extern int connection_read(urg_connection_t *connection,
165  char *data, int max_size, int timeout);
166 
167 
189 extern int connection_readline(urg_connection_t *connection,
190  char *data, int max_size, int timeout);
191 
192 #ifdef __cplusplus
193 }
194 #endif
195 
196 #endif /* !URG_CONNECTION_H */
�V���A���ʐM�p
Definition: urg_serial.h:40
void connection_close(urg_connection_t *connection)
�ؒf
int connection_readline(urg_connection_t *connection, char *data, int max_size, int timeout)
���s�����܂ł̎�M
�C�[�T�[�l�b�g�ڑ�
urg_connection_type_t
�ʐM�^�C�v
int connection_write(urg_connection_t *connection, const char *data, int size)
���M
�^�C���A�E�g�����������Ƃ��̖߂�l
int connection_read(urg_connection_t *connection, char *data, int max_size, int timeout)
��M
�V���A���ʐM
TCP/IP connection.
Definition: urg_tcpclient.h:44
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
�V���A���ڑ�
urg_connection_type_t type
�ڑ��^�C�v
�ʐM���\�[�X
TCP/IP read/write functions.
urg_tcpclient_t tcpclient
�C�[�T�[�l�b�g�ڑ�
�V���A��, USB �ڑ�


urg_c
Author(s): Satofumi Kamimura , Katsumi Kimoto, Adrian Boeing
autogenerated on Mon Feb 28 2022 23:56:00