On Time RTOS-32 Documentation
Welcome
RTTarget-32
RTKernel-32
RTFiles-32
RTIP-32
RTPEG-32
RTUSB-32
RTUSB-32 Programming Manual
RTUSB-32 Reference Manual
Introduction
Initialization
Device Query
Function RTUGetDevice
Function RTUDeviceSpeed
Function RTUGetConfiguration
Function RTUAltInterfaces
Function RTUGetInterface
Function RTUFindInterface
Function RTUGetEndpoint
Function RTUEndpointDirection
Function RTUEndpointType
Function RTUEndpointPacketSize
Function RTUEndpointInterval
Function RTUFindEndpoint
Function RTUGetString
Function RTUEnumDescriptors
Function RTUGetDescriptor
Function RTUEnumDevices
Function RTUParentDevice
Function RTUSuspendHubs
Function RTUGetFrameNumber
Device Configuration
Pipe I/O
Message Queues
Keyboard Class Driver
Mouse Class Driver
Touch Screen Driver
Printer Class Driver
Mass Storage Class Driver
AX772 USB-Ethernet Driver
AX172 USB-Ethernet Driver
CDC ECM USB-Ethernet Driver
Audio Class Driver
Media Transfer Protocol Class Driver
RTUSB-32 Error Codes and Diagnostics
|
Function RTUParentDevice
RTUParentDevice retrieves the device handle of the hub a device is connected to:
RTUDeviceHandle RTUParentDevice(RTUDeviceHandle Device);
ParametersDeviceHandle of a USB device.
return valueThe device's parent or NULL if Device is NULL, a virtual root hub, or has been disconnected.
Since devices can be attached and detached at any time, the returned handle may be invalid if used in a subsequent call (the device might have been removed in the mean time). To guard against device attachment and detachment while the application steps through the device tree, it is recommended to temporarily disable the RTUSB-32 internal Hub class driver using RTUSuspendHubs.
Device Query
Function RTUEnumDevices
Function RTUSuspendHubs
|