File: SermodeStrings.uni

package info (click to toggle)
edk2 0~20131112.2590861a-3
  • links: PTS, VCS
  • area: non-free
  • in suites: jessie, jessie-kfreebsd
  • size: 125,836 kB
  • ctags: 175,818
  • sloc: ansic: 1,274,042; python: 75,968; asm: 68,082; perl: 22,386; cpp: 22,278; makefile: 14,914; sh: 4,113; pascal: 1,126; xml: 318; lisp: 24
file content (191 lines) | stat: -rw-r--r-- 13,510 bytes parent folder | download | duplicates (3)
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
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
// *++

//

// Copyright (c) 2005 - 2006, Intel Corporation                                                         

// All rights reserved. This program and the accompanying materials                          

// are licensed and made available under the terms and conditions of the BSD License         

// which accompanies this distribution. The full text of the license may be found at         

// http://opensource.org/licenses/bsd-license.php                                            

//                                                                                           

// THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,                     

// WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.             

// 

// Module Name:

//

//   SermodeStrings.uni

// 

// Abstract:

// 

//   String definitions for the Shell sermode command

// 

// Revision History:

//  

// --*/



/=#



#langdef   eng "English"



#string STR_SERMODE_INVALID_STOP_BITS  #language eng  "%Hsermode%N: Invalid stop bits parameter\n"



#string STR_SERMODE_NO_SERIAL_PORTS    #language eng  "%Hsermode%N: No serial ports present\n"



#string STR_SERMODE_CANNOT_SET_ATTR    #language eng  "%Hsermode%N: Cannot set attributes on handle %08x - %r\n"



#string STR_SERMODE_MODE_SET_ON_HANDLE #language eng  "%Hsermode%N: Mode set on handle %08x\n"



#string STR_SERMODE_INVALID_PARITY_PARAM #language eng  "%Hsermode%N: Invalid parity parameter.\n"



#string STR_SERMODE__NOT_SER_HANDLE    #language eng  "%Hsermode%N: Handle - %x is not a serial device handle.\n"



#string STR_SERMODE_DISPLAY            #language eng  "%x(%08x) - (%ld, %c, %d, %s)\n"



#string STR_SERMODE_NOT_FOUND          #language eng  "%Hsermode%N: No serial port or specified serial port found.\n"



#string STR_SERMODE_LINE_HELP          #language eng  "Sets serial port attributes"



#string STR_SERMODE_VERBOSE_HELP       #language eng  "Sets serial port attributes.\n"

                                                      "\n"

                                                      "SERMODE [handle [baudrate parity databits stop bits]]\n"

                                                      "\n"

                                                      "    handle   - Device handle for a serial port\n"

                                                      "    baudrate - Baud rate for specified serial port\n"

                                                      "    parity   - Parity bit settings for specified serial port:\n"

                                                      "                 d   - Default parity\n"

                                                      "                 n   - No parity\n"

                                                      "                 e   - Even parity\n"

                                                      "                 o   - Odd parity\n"

                                                      "                 m   - Mark parity\n"

                                                      "                 s   - Space parity\n"

                                                      "    databits - Data bits for specified serial port\n"

                                                      "    stopbits - Stop bits for specified serial port\n"

                                                      "\n"

                                                      "Note: \n"

                                                      "    1. The 'handle' parameter is the device handle of the desired serial port.\n"

                                                      "       The 'DH' command can be used to retrieve this information.\n"

                                                      "    2. The 'stopbits' parameter supports the following settings:\n"

                                                      "         0  (0 stop bits - default setting)\n"

                                                      "         1  (1 stop bit)\n"

                                                      "         2  (2 stop bits)\n"

                                                      "         15 (1.5 stop bits)\n"

                                                      "       All other settings are invalid.\n"

                                                      "    3. The 'baudrate' parameter supports the following settings:\n"

                                                      "        50, 75, 110, 150, 300, 600, 1200, 1800, 2000, 2400, 3600, 4800,\n"

                                                      "        7200, 9600(default), 19200, 38400, 57600, 115200, 230400, 460800\n"

                                                      "       All other values will be converted to the next highest setting.\n"

                                                      "    4. The 'databits' parameter supports the following settings:\n"

                                                      "         4\n"

                                                      "         7\n"

                                                      "         8 (default)\n"

                                                      "       All other settings are invalid.\n"

                                                      "    5. Parity attributes are mutually exclusive.\n"

													                            "\n"

                                                      "Examples:\n"

                                                      "  * To display the settings for all serial port devices:\n"

                                                      "    Shell> sermode\n"

                                                      "    4F06B08 - (115200, N, 8, 1)\n"

                                                      "    4F05F88 - (115200, N, 8, 1)\n"

                                                      "\n"

                                                      "  * To display the settings for the serial port device whose handle is 0x6B:\n"

                                                      "    Shell> sermode 6B\n"

                                                      "    4F06B08 - (115200, N, 8, 1)\n"

                                                      "\n"

                                                      "  * To configure the serial port settings for handle 0x6B to 9600bps, even\n"

                                                      "    parity, 8 data bits, and 1 stop bit:\n"

                                                      "    Shell> sermode 6B 9600 e 8 1  \n"

                                                      "    sermode: Mode set on handle 04F06B08\n"