Home    Prev Next    
Contents
Programming For USB Device
Overview
Programmers Guide
Scenario
Data transfer
Synchronous Transfer
Asynchronous Transfer
Reading Descriptors
USB Support Routines And Structures
Common Procedures
UsbEnumerateDevices
OpenRapidUsb
IsRapidUsbOpened
CloseRapidUsb
Descriptors
UsbGetDescriptor
UsbGetDeviceDescriptor
UsbGetStringDescriptor
UsbGetConfigDescriptor
UsbFreeConfigDescriptor
UsbGetInterfaceDescriptor
UsbFreeInterfaceDescriptor
UsbGetEndpointDescriptor
Configure Device
UsbGetDeviceInfo
UsbUnconfigureDevice
UsbSelectConfig
UsbGetConfig
UsbSelectInterface
UsbGetInterface
UsbResetDevice
UsbGetBandwidthInfo
UsbCyclePort
Features and Status
UsbSetFeature
UsbClearFeature
UsbGetStatus
Vendor/Class Requests
UsbVendorRequestIn
UsbVendorRequestOut
UsbClassRequestIn
UsbClassRequestOut
Pipes
IsRapidUsbPipeOpened
UsbPipeOpen
UsbPipeClose
UsbGetPipeCount
UsbPipeGetInfo
UsbPipeDirectionIn
UsbPipeGetType
UsbTransfer
UsbTransferAsync
TRANSFER_COMPLETION_ROUTINE
UsbCancelTransfer
UsbPipeReset
UsbPipeAbort
Other
UsbGetPortStatus
UsbGetCurrentFrameNumber
USB Structures and Types
RDUSB_DEVICE_INFORMATION
RDUSB_PIPE_INFORMATION
RDUSB_PIPE_TYPE
RDUSB_BANDWIDTH_INFORMATION
UsbGetDeviceInfo
Go to RapidDriver Main Page


Language

Description

C/C++
BOOL UsbGetDeviceInfo(IN USB_DEVICE_HANDLE hUsb, 
IN OUT PRDUSB_DEVICE_INFORMATION pDevInfo,   
IN ULONG DevInfoLen);  

Delphi
function UsbGetDeviceInfo(hUsb           : USB_DEVICE_HANDLE;
                          var DeviceInfo : RAPIDUSB_DEVICE_INFORMATION;
                          DeviceInfoLen  : ULONG) : BOOL stdcall;

VB
Function UsbGetDeviceInfo (ByVal hUsb As Long, _
                           ByRef DevInfo As RDUSB_DEVICE_INFORMATION, _
                           ByVal DevInfoLen As Long) As Boolean



Parameters
 
hUsb  
Specifies device handle. This handle can be obtained with OpenRapidUsb.  
pDevInfo  
Pointer to user allocated buffer.  
DevInfoLen  
Length of pDevInfo buffer.  
 
Return Value

If device is in unconfigured state function returns FALSE and data containing in pDevInfo buffer is invalid .  

Description
 
Call this function to get currently active settings of USB device.