-
Notifications
You must be signed in to change notification settings - Fork 57
/
Copy pathcom0com.h
72 lines (63 loc) · 2.91 KB
/
com0com.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
/*
* $Id$
*
* Copyright (c) 2006-2011 Vyacheslav Frolov
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*
*/
#ifndef _INCLUDE_C0C_COM0COM_H_
#define _INCLUDE_C0C_COM0COM_H_
#define C0C_BUS_DEVICE_ID TEXT_PREF"root\\com0com"
#define C0C_PORT_DEVICE_ID TEXT_PREF"com0com\\port"
#define C0C_PORT_HW_ID_CNCCLASS TEXT_PREF"com0com\\cncport"
#define C0C_PORT_HW_ID_COMCLASS TEXT_PREF"com0com\\comport"
#define C0C_SERVICE TEXT_PREF"com0com"
#define C0C_PREF_NT_DEVICE_NAME TEXT_PREF"\\Device\\"
#define C0C_PORT_NAME_LEN 12
#define C0C_PREF_BUS_NAME TEXT_PREF"CNCBUS"
#define C0C_PREF_PORT_NAME_A TEXT_PREF"CNCA"
#define C0C_PREF_PORT_NAME_B TEXT_PREF"CNCB"
#define C0C_PREF_DEVICE_NAME_A C0C_PREF_NT_DEVICE_NAME C0C_SERVICE TEXT_PREF"1"
#define C0C_PREF_DEVICE_NAME_B C0C_PREF_NT_DEVICE_NAME C0C_SERVICE TEXT_PREF"2"
#define C0C_PORT_NAME_COMCLASS TEXT_PREF"COM#"
#define C0C_REGSTR_VAL_PORT_NUM TEXT_PREF"PortNum"
#define C0C_PIN_RRTS 0x00000001
#define C0C_PIN_RDTR 0x00000002
#define C0C_PIN_ROUT1 0x00000004
#define C0C_PIN_ROUT2 0x00000008
#define C0C_PIN_ROPEN 0x00000080
#define C0C_PIN_LRTS 0x00000100
#define C0C_PIN_LDTR 0x00000200
#define C0C_PIN_LOUT1 0x00000400
#define C0C_PIN_LOUT2 0x00000800
#define C0C_PIN_LOPEN 0x00008000
#define C0C_PIN_ON 0x10000000
#define C0C_PIN_NEGATIVE 0x80000000
#define C0C_DEFAULT_PIN_CTS C0C_PIN_RRTS
#define C0C_DEFAULT_PIN_DSR C0C_PIN_RDTR
#define C0C_DEFAULT_PIN_DCD C0C_PIN_RDTR
#define C0C_DEFAULT_PIN_RI (C0C_PIN_ON|C0C_PIN_NEGATIVE)
#define C0C_DEFAULT_EMUBR 0x00000000
#define C0C_DEFAULT_EMUOVERRUN 0x00000000
#define C0C_DEFAULT_PLUGINMODE 0x00000000
#define C0C_DEFAULT_EXCLUSIVEMODE 0x00000000
#define C0C_DEFAULT_HIDDENMODE 0x00000000
#define C0C_DEFAULT_ALLDATABITS 0x00000000
#define C0C_DEFAULT_EMUNOISE 0x00000000
#define C0C_DEFAULT_ADDRTTO 0x00000000
#define C0C_DEFAULT_ADDRITO 0x00000000
#define C0C_PROBABILITY_ONE 100000000
#endif /* _INCLUDE_C0C_COM0COM_H_ */