VCOM Linux Driver
Advantech Inc.
Loading...
Searching...
No Matches
advtype.h
Go to the documentation of this file.
1
#ifndef __ADV_TYPE_H
2
#define __ADV_TYPE_H
3
4
#define ADV_PAIR_NONE 0
5
#define ADV_PAIR_ODD 1
6
#define ADV_PAIR_EVEN 2
7
#define ADV_PAIR_MARK 3
8
#define ADV_PAIR_SPACE 4
9
#define ADV_PAIR_UNDEF 5
10
11
#define ADV_FLOW_NONE 0
12
#define ADV_FLOW_XONXOFF 1
13
#define ADV_FLOW_RTSCTS 2
14
#define ADV_FLOW_DTSDTR 3
15
#define ADV_FLOW_UNDEF 4
16
17
#define ADV_STOP_1 0
18
//#define ADV_STOP_1P5 1
19
#define ADV_STOP_2 2
20
#define ADV_STOP_UNDEF 3
21
22
#define ADV_MS_DTR 0x002
23
#define ADV_MS_RTS 0x004
24
#define ADV_MS_CTS 0x010
25
#define ADV_MS_DSR 0x020
26
#define ADV_MS_RNG 0x040
27
#define ADV_MS_CAR 0x080
28
#define ADV_MS_DCD ADV_MS_CAR
29
#define ADV_MS_RI ADV_MS_RNG
30
31
struct
adv_port_info
{
32
int
is_open
;
33
int
baud
;
34
int
flowctl
;
35
int
byte
;
36
int
pair
;
37
int
stop
;
38
unsigned
int
ms
;
39
};
40
#endif
adv_port_info
Definition
advtype.h:31
adv_port_info::pair
int pair
Definition
advtype.h:36
adv_port_info::baud
int baud
Definition
advtype.h:33
adv_port_info::stop
int stop
Definition
advtype.h:37
adv_port_info::ms
unsigned int ms
Definition
advtype.h:38
adv_port_info::flowctl
int flowctl
Definition
advtype.h:34
adv_port_info::byte
int byte
Definition
advtype.h:35
adv_port_info::is_open
int is_open
Definition
advtype.h:32
driver
advtype.h
Generated by
1.12.0