Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

Windows.Devices.Usb namespace

The Windows.Devices.Usb defines Windows Runtime classes that a Windows store app can use to communicate with a USB device that does not belong to a device class, or for which Microsoft does not provide an in-box driver.

ResourcesDescription
Writing apps for USB devices (Windows Store apps using C#/VB/C++) A brief overview about how to use these APIs.
Talking to USB devices, start to finish (Windows Store app) Step-by-step instructions about using these APIs to perform common tasks for communicating with a USB device.
Samples

 

Members

The Windows.Devices.Usb namespace has these types of members:

Classes

The Windows.Devices.Usb namespace has these classes.

ClassDescription
UsbBulkInEndpointDescriptor The endpoint descriptor for a USB bulk IN endpoint. The descriptor specifies the endpoint type, direction, number and also the maximum number of bytes that can be read from the endpoint, in a single transfer.
UsbBulkInPipe Represents the pipe that the underlying USB driver opens to communicate with a USB bulk IN endpoint of the device. The app can get an input stream from the pipe and access data is being read from the endpoint.
UsbBulkOutEndpointDescriptor The endpoint descriptor for a USB bulk OUT endpoint. The descriptor specifies the endpoint type, direction, number and also the maximum number of bytes that can be written to the endpoint, in a single transfer.
UsbBulkOutPipe Represents the pipe that the underlying USB driver opens to communicate with a USB bulk OUT endpoint of the device. The object provides access to an output stream to which the app can write data to send to the endpoint.
UsbConfiguration Provides information about a USB configuration, its descriptors and the interfaces defined within that configuration. For an explanation of a USB configuration, see Section 9.6.3 in the Universal Serial Bus (USB) specification.
UsbConfigurationDescriptor Derives information from the first 9 bytes of a USB configuration descriptor. The information includes the power capabilities of the device when the configuration is active and the number of interfaces included in that configuration.
UsbControlRequestType Provides information about the USB control transfer, the type of control request, whether the data is sent from or to the host, and the recipient of the request in the device.
UsbDescriptor Provides information about the type of descriptor, its size (in bytes), and gets the descriptor data.
UsbDevice Represents a USB device. The object provides methods and properties that an app can use to find the device (in the system) with which the app wants to communicate, and sends IN and OUT control transfers to the device.
UsbDeviceClass Provides a way for the app to get an Advanced Query Syntax (AQS) string by specifying the class code, subclass code, and the protocol code defined by the device. The properties in this class are passed in the call to GetDeviceClassSelector.
UsbDeviceClasses Provides a way for the app to create a UsbDeviceClass object by specifying the USB device class of the device. The properties defined in this class represent the supported USB device classes and are passed in the constructor call to instantiate UsbDeviceClass.
UsbDeviceDescriptor Derives information from the USB device descriptor of the device.
UsbEndpointDescriptor Derives information from the USB endpoint descriptor of the endpoint, such as type, direction, and endpoint number. This object also gets the specific endpoint descriptors based on the type of endpoint.
UsbInterface Provides information about the USB interface including its endpoints, the number of alternate settings the interface supports, and gets the entire descriptor set for those settings. It also obtains pipes associated with the endpoints that the interface supports.
UsbInterfaceDescriptor Describes a USB alternate setting (of an interface) in an interface descriptor.
UsbInterfaceSetting Provides information about an alternate setting and select that setting. The app can get the USB interface descriptors for the setting and its endpoints, and determine whether this setting is currently selected.
UsbInterruptInEndpointDescriptor The endpoint descriptor for a USB interrupt IN endpoint. The descriptor specifies the endpoint type, direction, number and also the maximum number of bytes that can be read from the endpoint, in a single transfer. The app can also get information about how often the host polls the endpoint for data.
UsbInterruptInEventArgs Represents the object that is passed as a parameter to the event handler for the DataReceived event.
UsbInterruptInPipe Represents the pipe that the underlying USB driver opens to communicate with a USB interrupt IN endpoint of the device. The object also enables the app to specify an event handler. That handler that gets invoked when data is read from the endpoint.
UsbInterruptOutEndpointDescriptor The endpoint descriptor for a USB interrupt OUT endpoint. The descriptor specifies the endpoint type, direction, number and also the maximum number of bytes that can be written to the endpoint, in a single transfer. The app can also get information about how often the host polls the endpoint to send data.
UsbInterruptOutPipe Represents the pipe that the underlying USB driver opens to communicate with a USB interrupt OUT endpoint of the device. The object provides access to an output stream to which the app can write data to send to the endpoint.
UsbSetupPacket Describes the setup packet for a USB control transfer.

 

Enumerations

The Windows.Devices.Usb namespace has these enumerations.

EnumerationDescription
UsbControlRecipient Defines constants that indicate the recipient of a USB control transfer. The recipient is defined in the setup packet of the control request. See Table 9.2 of section 9.3 of the Universal Serial Bus (USB) specification (www.usb.org).
UsbControlTransferType Defines constants that indicate the type of USB control transfer: standard, class, or vendor.
UsbEndpointType Defines constants that indicate the type of USB endpoint: control, bulk, isochronous, or interrupt.
UsbReadOptions Defines constants for configuration flags that can be set for a USB pipe that the host opens for a USB bulk IN endpoint.
UsbTransferDirection Defines constants that indicate the direction of USB transfer: IN or OUT transfers.
UsbWriteOptions Defines constants for configuration flags that can be set for a USB pipe that the host opens for a USB OUT endpoint.

 

Requirements

Minimum supported client

Windows 8.1

Minimum supported server

Windows Server 2012 R2

Namespace

Windows.Devices.Usb
Windows::Devices::Usb [C++]

Metadata

Windows.winmd

See also

Talking to USB devices, start to finish (Windows Store app)

 

 

Show:
© 2014 Microsoft. All rights reserved.