Go to the documentation of this file.
20 #ifndef __LINUX_USB_SERIAL_WHITEHEAT_H
21 #define __LINUX_USB_SERIAL_WHITEHEAT_H
25 #define WHITEHEAT_OPEN 1
26 #define WHITEHEAT_CLOSE 2
27 #define WHITEHEAT_SETUP_PORT 3
28 #define WHITEHEAT_SET_RTS 4
29 #define WHITEHEAT_SET_DTR 5
30 #define WHITEHEAT_SET_BREAK 6
31 #define WHITEHEAT_DUMP 7
32 #define WHITEHEAT_STATUS 8
33 #define WHITEHEAT_PURGE 9
34 #define WHITEHEAT_GET_DTR_RTS 10
36 #define WHITEHEAT_GET_HW_INFO 11
38 #define WHITEHEAT_REPORT_TX_DONE 12
39 #define WHITEHEAT_EVENT 13
40 #define WHITEHEAT_ECHO 14
42 #define WHITEHEAT_DO_TEST 15
43 #define WHITEHEAT_CMD_COMPLETE 16
44 #define WHITEHEAT_CMD_FAILURE 17
67 #define WHITEHEAT_PAR_NONE 'n'
68 #define WHITEHEAT_PAR_EVEN 'e'
69 #define WHITEHEAT_PAR_ODD 'o'
70 #define WHITEHEAT_PAR_SPACE '0'
71 #define WHITEHEAT_PAR_MARK '1'
73 #define WHITEHEAT_SFLOW_NONE 'n'
74 #define WHITEHEAT_SFLOW_RX 'r'
76 #define WHITEHEAT_SFLOW_TX 't'
78 #define WHITEHEAT_SFLOW_RXTX 'b'
80 #define WHITEHEAT_HFLOW_NONE 0x00
81 #define WHITEHEAT_HFLOW_RTS_TOGGLE 0x01
83 #define WHITEHEAT_HFLOW_DTR 0x02
85 #define WHITEHEAT_HFLOW_CTS 0x08
87 #define WHITEHEAT_HFLOW_DSR 0x10
89 #define WHITEHEAT_HFLOW_RTS 0x80
112 #define WHITEHEAT_RTS_OFF 0x00
113 #define WHITEHEAT_RTS_ON 0x01
114 #define WHITEHEAT_DTR_OFF 0x00
115 #define WHITEHEAT_DTR_ON 0x01
116 #define WHITEHEAT_BREAK_OFF 0x00
117 #define WHITEHEAT_BREAK_ON 0x01
128 #define WHITEHEAT_DUMP_MEM_DATA 'd'
129 #define WHITEHEAT_DUMP_MEM_IDATA 'i'
130 #define WHITEHEAT_DUMP_MEM_BDATA 'b'
131 #define WHITEHEAT_DUMP_MEM_XDATA 'x'
158 #define WHITEHEAT_PURGE_RX 0x01
159 #define WHITEHEAT_PURGE_TX 0x02
180 #define WHITEHEAT_TEST_UART_RW 0x01
181 #define WHITEHEAT_TEST_UART_INTR 0x02
182 #define WHITEHEAT_TEST_SETUP_CONT 0x03
184 #define WHITEHEAT_TEST_PORT_CONT 0x04
185 #define WHITEHEAT_TEST_PORT_DISCONT 0x05
186 #define WHITEHEAT_TEST_UART_CLK_START 0x06
187 #define WHITEHEAT_TEST_UART_CLK_STOP 0x07
188 #define WHITEHEAT_TEST_MODEM_FT 0x08
190 #define WHITEHEAT_TEST_ERASE_EEPROM 0x09
191 #define WHITEHEAT_TEST_READ_EEPROM 0x0a
192 #define WHITEHEAT_TEST_PROGRAM_EEPROM 0x0b
209 #define WHITEHEAT_EVENT_MODEM 0x01
210 #define WHITEHEAT_EVENT_ERROR 0x02
211 #define WHITEHEAT_EVENT_FLOW 0x04
212 #define WHITEHEAT_EVENT_CONNECT 0x08
214 #define WHITEHEAT_FLOW_NONE 0x00
215 #define WHITEHEAT_FLOW_HARD_OUT 0x01
217 #define WHITEHEAT_FLOW_HARD_IN 0x02
219 #define WHITEHEAT_FLOW_SOFT_OUT 0x04
221 #define WHITEHEAT_FLOW_SOFT_IN 0x08
223 #define WHITEHEAT_FLOW_TX_DONE 0x80
289 #define WHITEHEAT_TEST_FAIL 0x00
290 #define WHITEHEAT_TEST_UNKNOWN 0x01
291 #define WHITEHEAT_TEST_PASS 0xff