USB HOST DRIVER V03 Freescale Semiconductor / Motorola, USB HOST DRIVER V03 Datasheet - Page 23

no-image

USB HOST DRIVER V03

Manufacturer Part Number
USB HOST DRIVER V03
Description
USB Host Driver v03
Manufacturer
Freescale Semiconductor / Motorola
Datasheet
3. Programming Interface.
3.1. Transfers.
The USB specification defines 4 transfer types: control, bulk, interrupt, and isochronous.
The MOTUSB Device object handle is required for control transfers, while the others
require a MOTUSB pipe object handle to perform data I/O operations.
3.2. Control Transfers.
All USB Devices must support the control transfer type for configuration, command, and
status information. Control transfer applies to the default endpoint (zero) and
monopolized by USBDI. From the programmer point of view, the control transfers are
not represented as data flow, but rather “Device control commands”. All the control
transactions on the bus are under the responsibility of USBDI. The USB specification
defines a set of standard requests on the Default Control Endpoint. Thus, although
USBDI provides a mechanism for direct access to the default endpoint, the MOTUSB
Driver does not make this functionality available in the user mode, and only provides a
set of standard requests.
The Client application can perform control transactions using the
Win32 API function on the Device handle, specifying some I/O control code and
parameters block. The following list of MOTUSB requests perform control transfer (for a
detailed requests description see Device requests section):
3.3. Bulk and Interrupt Transfers
Bulk and interrupt transfers may be applied through the pipes opened up on the Device.
For interrupt and bulk transfers the buffer size can be larger than the maximum packet
size of the endpoint, as reported in the endpoint descriptor.
M
IOCTL_USB_CLASS_OR_VENDOR_REQUEST
IOCTL_USB_CYCLE_PORT
IOCTL_USB_FEATURE_CONTROL
IOCTL_USB_GET_CONFIGURATION
IOCTL_USB_GET_DESCRIPTOR
IOCTL_USB_GET_INTERFACE
IOCTL_USB_GET_STATUS
IOCTL_USB_RESET_DEVICE
IOCTL_USB_RESET_PIPE
IOCTL_USB_SET_CONFIGURATION
IOCTL_USB_SET_INTERFACE
IOCTL_USB_UNCONFIGURE_DEVICE
PRELIMINARY—SUBJECT TO CHANGE WITHOUT NOTICE
Programming Interface.
DeviceIoControl
3-1

Related parts for USB HOST DRIVER V03