vitasdk
Documentation of the vitasdk
usbd.h File Reference

Go to the source code of this file.

Data Structures

struct  SceUsbdDeviceDescriptor
 
struct  SceUsbdConfigurationDescriptor
 
struct  SceUsbdInterfaceDescriptor
 
struct  SceUsbdEndpointDescriptor
 
struct  SceUsbdStringDescriptor
 
struct  SceUsbdHidSubDescriptorInfo
 
struct  SceUsbdHidDescriptor
 
struct  SceUsbdDeviceAddress
 

Macros

#define SCE_USBD_CLASS_PER_INTERFACE   0x00
 
#define SCE_USBD_CLASS_AUDIO   0x01
 
#define SCE_USBD_CLASS_COMMUNICATIONS   0x02
 
#define SCE_USBD_CLASS_HID   0x03
 
#define SCE_USBD_CLASS_MONITOR   0x04
 
#define SCE_USBD_CLASS_PHYSICAL   0x05
 
#define SCE_USBD_CLASS_POWER   0x06
 
#define SCE_USBD_CLASS_PRINTER   0x07
 
#define SCE_USBD_CLASS_STORAGE   0x08
 
#define SCE_USBD_CLASS_HUB   0x09
 
#define SCE_USBD_CLASS_DATA   0x0a
 
#define SCE_USBD_CLASS_VENDOR_SPECIFIC   0xff
 
#define SCE_USBD_CONFIGURATION_RESERVED_ZERO   0x1f
 
#define SCE_USBD_CONFIGURATION_REMOTE_WAKEUP   0x20
 
#define SCE_USBD_CONFIGURATION_SELF_POWERED   0x40
 
#define SCE_USBD_CONFIGURATION_RESERVED_ONE   0x80
 
#define SCE_USBD_ENDPOINT_TRANSFER_TYPE_BITS   0x03
 
#define SCE_USBD_ENDPOINT_TRANSFER_TYPE_SHIFT   0
 
#define SCE_USBD_ENDPOINT_TRANSFER_TYPE_CONTROL   0x00
 
#define SCE_USBD_ENDPOINT_TRANSFER_TYPE_ISOCHRONOUS   0x01
 
#define SCE_USBD_ENDPOINT_TRANSFER_TYPE_BULK   0x02
 
#define SCE_USBD_ENDPOINT_TRANSFER_TYPE_INTERRUPT   0x03
 
#define SCE_USBD_ENDPOINT_NUMBER_BITS   0x1f
 
#define SCE_USBD_ENDPOINT_NUMBER_SHIFT   0
 
#define SCE_USBD_ENDPOINT_DIRECTION_BITS   0x80
 
#define SCE_USBD_ENDPOINT_DIRECTION_SHIFT   7
 
#define SCE_USBD_ENDPOINT_DIRECTION_OUT   0x00
 
#define SCE_USBD_ENDPOINT_DIRECTION_IN   0x80
 

Enumerations

enum  SceUsbdErrorCode {
  SCE_USBD_ERROR_NOT_INITIALIZED = 0x80240001 , SCE_USBD_ERROR_ALREADY_INITIALIZED = 0x80240002 , SCE_USBD_ERROR_INVALID_PARAM = 0x80240003 , SCE_USBD_ERROR_PIPE_NOT_FOUND = 0x80240004 ,
  SCE_USBD_ERROR_NO_MEMORY = 0x80240005 , SCE_USBD_ERROR_DEVICE_NOT_FOUND = 0x80240006 , SCE_USBD_ERROR_80240007 = 0x80240007 , SCE_USBD_ERROR_80240009 = 0x80240009 ,
  SCE_USBD_ERROR_8024000A = 0x8024000A , SCE_USBD_ERROR_FATAL = 0x802400FF
}
 
enum  SceUsbdDescriptorType {
  SCE_USBD_DESCRIPTOR_DEVICE = 0x01 , SCE_USBD_DESCRIPTOR_CONFIGURATION = 0x02 , SCE_USBD_DESCRIPTOR_STRING = 0x03 , SCE_USBD_DESCRIPTOR_INTERFACE = 0x04 ,
  SCE_USBD_DESCRIPTOR_ENDPOINT = 0x05 , SCE_USBD_DESCRIPTOR_DEVICE_QUALIFIER = 0x06 , SCE_USBD_DESCRIPTOR_OTHER_SPEED = 0x07 , SCE_USBD_DESCRIPTOR_INTERFACE_POWER = 0x08 ,
  SCE_USBD_DESCRIPTOR_OTG = 0x09 , SCE_USBD_DESCRIPTOR_HID = 0x21 , SCE_USBD_DESCRIPTOR_REPORT = 0x22
}
 

Functions

 VITASDK_BUILD_ASSERT_EQ (0x12, SceUsbdDeviceDescriptor)
 
 VITASDK_BUILD_ASSERT_EQ (0xA, SceUsbdConfigurationDescriptor)
 
 VITASDK_BUILD_ASSERT_EQ (9, SceUsbdInterfaceDescriptor)
 
 VITASDK_BUILD_ASSERT_EQ (8, SceUsbdEndpointDescriptor)
 
 VITASDK_BUILD_ASSERT_EQ (2, SceUsbdStringDescriptor)
 
 VITASDK_BUILD_ASSERT_EQ (3, SceUsbdHidSubDescriptorInfo)
 
 VITASDK_BUILD_ASSERT_EQ (6, SceUsbdHidDescriptor)
 
struct SceUsbdDeviceAddress __attribute__ ((packed)) SceUsbdDeviceAddress
 
 VITASDK_BUILD_ASSERT_EQ (6, SceUsbdDeviceAddress)
 

Variables

unsigned int unk0
 
unsigned short unk1