Download USB Peripheral Communications Device Class Driver

Transcript
Renesas
5.2.3
USB Peripheral Communications Device Class Driver (PCDC)
Class Notifications (Peripheral to Host)
Whether or not a class notification is supported is shown in Table 5.7.
Table 5.7 CDC Class Notifications
Notification
NETWORK_CONNECTION
RESPONSE_AVAILABLE
SERIAL_STATE
Code
0x00
0x01
0x20
Description
Notification of network connection state
Response to GET_ENCAPSLATED_RESPONSE
Notification of serial line state
Supported
No
No
Yes
(1). Serial State
The host is notified of the serial state when a change in the UART port state is detected.
This software supports the detection of overrun, parity and framing errors. A state notification is performed when a
change from normal state to error is detected. However, notification is not continually transmitted when an error is
continually detected.
The SerialState data format is shown below.
Table 5.8 SerialState Format
bmRequestType
0xA1
bRequest
SERIAL_STATE
(0x20)
wValue
0x00
wIndex
0x00
wLength
0x02
Data
UART State bitmap
See Table 5.9 UART
state bitmap format
Table 5.9 UART state bitmap format
Bits
D15~D7
D6
D5
D4
D3
D2
D1
D0
5.3
Field
bOverRun
bParity
bFraming
bRingSignal
bBreak
bTxCarrier
bRxCarrier
Description
Reserved
Overrun error detected
Parity error detected
Framing error detected
INCOMING signal (ring signal) detected
Break signal detected
Data Set Ready: Line connected and ready for communication
Data Carrier Detect: Carrier detected on line
Supported
Yes
Yes
Yes
No
No
No
No
Endpoint Specification
Endpoints used are shown in Table 5.10.
Table 5.10 Endpoints
bEndpointAddress
EP No
Direction
EP0
In/Out
EP1
In
EP2
Out
EP3
In
bmAttributes
Transfer Method
Control
Bulk
Bulk
Interrupt
R01AN0555EJ0213 Rev.2.13
Mar 16, 2015
wMaxPacketSize
Max Packet Size
64
64 (Full Speed)
64 (Full Speed)
16
Description
Standard request, class request
Data transfer from device to host
Data transfer from host to device
State notification from device to host
Page 21 of 31