4.1.2 SET_CONTROL_LINE_STATE Command

The SET_CONTROL_LINE_STATE command:

  • Enables or disables the UART peripheral
  • Asserts or deasserts the RTS line

Send this request through Endpoint 0x00, with the parameters described in the following table, to enable or disable the UART or to assert or deassert the RTS line.

Table 4-3. SET_CONTROL_LINE_STATE - Command
Byte IndexCommandDescription
00x21bmRequestTypeHost to device, class-specific, Interface 0
10x22bRequestSet flow-control line state
2

0x00

0x01

0x02

0x03

Close UART

De-assert RTS line

Reserved

Assert RTS line

wValue

0x0000→ Disables the UART peripheral

0x0001→ Deasserts the RTS line (reception is disabled)

0x0002→ Reserved

0x0003 → Asserts the RTS line (Reception is enabled)

30x00wValue – higher byte
40x00wIndex – lower byteInterface 0
50x00wIndex – higher byte
60x00wLength – lower bytePayload length in bytes
70x00wLength – higher byte