Specifications
V850E2/MN4 USB CDC (Communication Device Class) Driver
R01AN0010EJ0101 Rev.1.01 Page 17 of 117
Feb 01, 2012
4.1.2 Request Handling
This section describes the USB requests supported by the sample driver.
(1)
Standard Requests
The sample driver performs the following response processing for requests that the V850E2/MN4 does not
automatically respond:
(a)
GET_DESCRIPTOR_string
This request is used by the host to get the string descriptor of a function device.
Upon receipt of this request, the sample driver performs the processing of sending the requested string descriptor
(control read transfer).
(b)
SET_DESCRIPTOR
This request is used by the host to set the descriptor of a function device.
Upon receipt of this request, the sample driver returns a STALL response.
(2)
Class Requests
The sample driver performs the following response processing for class requests of the bulk-only transport protocol for
the USB communication device class (CDC):
(a)
SendEncapsulatedCommand
This request is used to issue commands in the CDC interface control protocol format.
When this request is received, the sample driver acquires the data associated with the request and performs the transmit
processing (bulk IN transfer).
(b)
GetEncapsulatedResponse
This request is used to request a response in the CDC interface control protocol format.
Currently, the sample drive does not support this request.
(c)
SetLineCoding
This request is used to specify the communication format for the serial communication.
When this request is received, the sample driver acquires the data associated with the request, sets the communication
rate and other parameters and performs NULL packet transmission processing (control read transfer).
(d)
GetLineCoding
This request is used to acquire communication format setting for the serial communication.
When this request is received, the sample driver reads the communication rate and other settings and transmission
processing (control read transfer).
(e)
SetControlLineState
This request is used for the RS-232/V.24 format control signals.
When this request is received, the sample driver performs NULL packet transmission processing (control read transfer).