Ioctl_usbio_cycle_port – Motorola USB08 User Manual

Page 172

Advertising
background image

Designer Reference Manual

USB08 Evaluation Board

172

Universal USB Device Driver (USBIO)

MOTOROLA

Universal USB Device Driver (USBIO)

IOCTL_USBIO_CYCLE_PORT

The IOCTL_USBIO_CYCLE_PORT operation causes a new
enumeration of the device.

lpInBuffer

Not used with this operation. Set to NULL.

nInBufferSize

Not used with this operation. Set to zero.

lpOutBuffer

Not used with this operation. Set to NULL.

nOutBufferSize

Not used with this operation. Set to zero.

Comments

The IOCTL_USBIO_CYCLE_PORT request is similar to the
IOCTL_USBIO_RESET_DEVICE (

page 167

) request, except that from

the software point of view a disconnect/connect is simulated. This
request causes the following events to occur:

The USBIO device instance that is associated with the USB
device will be removed. The corresponding device handles
become invalid and should be closed by the application.

The operating system starts a new enumeration of the device. The
following events occur on the bus:

USB Reset
GET_DEVICE_DESCRIPTOR
USB Reset
SET_ADDRESS
GET_DEVICE_DESCRIPTOR
GET_CONFIGURATION_DESRIPTOR

A new device instance is created by the USBIO driver.

The application receives a PnP notification that informs it about
the new device instance.

After an application issued this request it should close all handles for the
current device. It can open the newly created device instance after it
receives the appropriate PnP notification.

Advertising