
AN758
Rev. 0.1 3
3.1.2. Get Line Coding
This request allows the host to find out the currently configured line coding. Table 2 defines the line coding
properties.
3.1.3. Set Control Line State
This request generates RS-232/V.24 style control signals. Table 3 defines control signal bitmap.
Table 2. Line Coding Format
Offset Field Size Value Description
0 dwDTERate 4 Number Data terminal rate, in bits per second.
4 bCharFormat 1 Number 0: 1 Stop bit
1: 1.5 Stop bits
2: 2 Stop bits
5 bParityType 1 Number Parity:
0:None
1: Odd
2: Even
3: Mark
4: Space
6 bDataBits 1 Number Data bits (5, 6, 7, 8 or 16).
bmRequestType bRequest wValue wIndex wLength Data
10100001b GET_LINE_CODING 0 interface size of
structure
line coding
structure
bmRequestType bRequest wValue wIndex wLength Data
00100001b SET_LINE_CON-
TROL_STATE
control signal
bitmap
interface 0 none
Table 3. Control Signal Bitmap
Bit Position Description
15:2 Reserved (Reset to zero).
1 Carrier control for half duplex modems. This signal corresponds to V.24 signal
105 and RS232 signal RTS.
0: Deactivate carrier.
1: Activate carrier.
The device ignores the value of this bit when operating in full duplex mode.
0 Indicates to DCE if DTE is present or not. This signal corresponds to V.24 signal
108/2 and RS232 signal DTR.
0: DTE is not present.
1: DTE is present.
Comentarios a estos manuales