libnx
v4.8.0
|
Common USB (usb:*) service IPC header. More...
#include "../types.h"
Go to the source code of this file.
Data Structures | |
struct | usb_endpoint_descriptor |
Imported from libusb, with some adjustments. More... | |
struct | usb_interface_descriptor |
Imported from libusb, with some adjustments. More... | |
struct | usb_device_descriptor |
Imported from libusb, with some adjustments. More... | |
struct | usb_config_descriptor |
Imported from libusb, with some adjustments. More... | |
struct | usb_ss_endpoint_companion_descriptor |
Imported from libusb, with some adjustments. More... | |
struct | usb_string_descriptor |
Imported from libusb, with some adjustments. More... | |
Macros | |
#define | USB_DT_INTERFACE_SIZE 9 |
Names starting with "libusb" were changed to "usb" to avoid collision with actual libusb if it's ever used. More... | |
#define | USB_DT_ENDPOINT_SIZE 7 |
#define | USB_DT_DEVICE_SIZE 0x12 |
#define | USB_DT_SS_ENDPOINT_COMPANION_SIZE 6 |
#define | USB_ENDPOINT_ADDRESS_MASK 0x0f /* in bEndpointAddress */ |
#define | USB_ENDPOINT_DIR_MASK 0x80 |
#define | USB_TRANSFER_TYPE_MASK 0x03 /* in bmAttributes */ |
Enumerations | |
enum | usb_class_code { USB_CLASS_PER_INTERFACE = 0 , USB_CLASS_AUDIO = 1 , USB_CLASS_COMM = 2 , USB_CLASS_HID = 3 , USB_CLASS_PHYSICAL = 5 , USB_CLASS_PRINTER = 7 , USB_CLASS_PTP = 6 , USB_CLASS_IMAGE = 6 , USB_CLASS_MASS_STORAGE = 8 , USB_CLASS_HUB = 9 , USB_CLASS_DATA = 10 , USB_CLASS_SMART_CARD = 0x0b , USB_CLASS_CONTENT_SECURITY = 0x0d , USB_CLASS_VIDEO = 0x0e , USB_CLASS_PERSONAL_HEALTHCARE = 0x0f , USB_CLASS_DIAGNOSTIC_DEVICE = 0xdc , USB_CLASS_WIRELESS = 0xe0 , USB_CLASS_APPLICATION = 0xfe , USB_CLASS_VENDOR_SPEC = 0xff } |
Imported from libusb, with changed names. | |
enum | usb_descriptor_type { USB_DT_DEVICE = 0x01 , USB_DT_CONFIG = 0x02 , USB_DT_STRING = 0x03 , USB_DT_INTERFACE = 0x04 , USB_DT_ENDPOINT = 0x05 , USB_DT_BOS = 0x0f , USB_DT_DEVICE_CAPABILITY = 0x10 , USB_DT_HID = 0x21 , USB_DT_REPORT = 0x22 , USB_DT_PHYSICAL = 0x23 , USB_DT_HUB = 0x29 , USB_DT_SUPERSPEED_HUB = 0x2a , USB_DT_SS_ENDPOINT_COMPANION = 0x30 } |
Imported from libusb, with changed names. | |
enum | usb_endpoint_direction { USB_ENDPOINT_IN = 0x80 , USB_ENDPOINT_OUT = 0x00 } |
Imported from libusb, with changed names. | |
enum | usb_transfer_type { USB_TRANSFER_TYPE_CONTROL = 0 , USB_TRANSFER_TYPE_ISOCHRONOUS = 1 , USB_TRANSFER_TYPE_BULK = 2 , USB_TRANSFER_TYPE_INTERRUPT = 3 , USB_TRANSFER_TYPE_BULK_STREAM = 4 } |
Imported from libusb, with changed names. | |
enum | usb_standard_request { USB_REQUEST_GET_STATUS = 0x00 , USB_REQUEST_CLEAR_FEATURE = 0x01 , USB_REQUEST_SET_FEATURE = 0x03 , USB_REQUEST_SET_ADDRESS = 0x05 , USB_REQUEST_GET_DESCRIPTOR = 0x06 , USB_REQUEST_SET_DESCRIPTOR = 0x07 , USB_REQUEST_GET_CONFIGURATION = 0x08 , USB_REQUEST_SET_CONFIGURATION = 0x09 , USB_REQUEST_GET_INTERFACE = 0x0A , USB_REQUEST_SET_INTERFACE = 0x0B , USB_REQUEST_SYNCH_FRAME = 0x0C , USB_REQUEST_SET_SEL = 0x30 , USB_SET_ISOCH_DELAY = 0x31 } |
Imported from libusb, with changed names. More... | |
enum | usb_iso_sync_type { USB_ISO_SYNC_TYPE_NONE = 0 , USB_ISO_SYNC_TYPE_ASYNC = 1 , USB_ISO_SYNC_TYPE_ADAPTIVE = 2 , USB_ISO_SYNC_TYPE_SYNC = 3 } |
Imported from libusb, with changed names. | |
enum | usb_iso_usage_type { USB_ISO_USAGE_TYPE_DATA = 0 , USB_ISO_USAGE_TYPE_FEEDBACK = 1 , USB_ISO_USAGE_TYPE_IMPLICIT = 2 } |
Imported from libusb, with changed names. | |
enum | UsbState { UsbState_Detached = 0 , UsbState_Attached = 1 , UsbState_Powered = 2 , UsbState_Default = 3 , UsbState_Address = 4 , UsbState_Configured = 5 , UsbState_Suspended = 6 } |
USB Device States, per USB 2.0 spec. More... | |
Common USB (usb:*) service IPC header.
#define USB_DT_INTERFACE_SIZE 9 |
Names starting with "libusb" were changed to "usb" to avoid collision with actual libusb if it's ever used.
Imported from libusb with changed names.
enum usb_standard_request |
Imported from libusb, with changed names.
enum UsbState |
USB Device States, per USB 2.0 spec.