PSPSDK 2024-12-16
Loading...
Searching...
No Matches
UsbDriver Struct Reference

USB driver structure used by sceUsbbdRegister and sceUsbbdUnregister. More...

#include <usb/pspusbbus.h>

Collaboration diagram for UsbDriver:

Data Fields

const charname
 Name of the USB driver.
 
int endpoints
 Number of endpoints in this driver (including default control)
 
struct UsbEndpointendp
 List of endpoint structures (used when calling other functions)
 
struct UsbInterfaceintp
 Interface list.
 
voiddevp_hi
 Pointer to hi-speed device descriptor.
 
voidconfp_hi
 Pointer to hi-speed device configuration.
 
voiddevp
 Pointer to full-speed device descriptor.
 
voidconfp
 Pointer to full-speed device configuration.
 
struct StringDescriptorstr
 Default String descriptor.
 
int(* recvctl )(int arg1, int arg2, struct DeviceRequest *req)
 Received a control request arg0 is endpoint, arg1 is possibly data arg2 is data buffer.
 
int(* func28 )(int arg1, int arg2, int arg3)
 Unknown.
 
int(* attach )(int speed, void *arg2, void *arg3)
 Configuration set (attach) function.
 
int(* detach )(int arg1, int arg2, int arg3)
 Configuration unset (detach) function.
 
int unk34
 Unknown set to 0.
 
int(* start_func )(int size, void *args)
 Function called when the driver is started.
 
int(* stop_func )(int size, void *args)
 Function called when the driver is stopped.
 
struct UsbDriverlink
 Link to next USB driver in the chain, set to NULL.
 

Detailed Description

USB driver structure used by sceUsbbdRegister and sceUsbbdUnregister.

Field Documentation

◆ attach

int(* UsbDriver::attach) (int speed, void *arg2, void *arg3)

Configuration set (attach) function.

◆ confp

void* UsbDriver::confp

Pointer to full-speed device configuration.

◆ confp_hi

void* UsbDriver::confp_hi

Pointer to hi-speed device configuration.

◆ detach

int(* UsbDriver::detach) (int arg1, int arg2, int arg3)

Configuration unset (detach) function.

◆ devp

void* UsbDriver::devp

Pointer to full-speed device descriptor.

◆ devp_hi

void* UsbDriver::devp_hi

Pointer to hi-speed device descriptor.

◆ endp

struct UsbEndpoint* UsbDriver::endp

List of endpoint structures (used when calling other functions)

◆ endpoints

int UsbDriver::endpoints

Number of endpoints in this driver (including default control)

◆ func28

int(* UsbDriver::func28) (int arg1, int arg2, int arg3)

Unknown.

◆ intp

struct UsbInterface* UsbDriver::intp

Interface list.

◆ link

struct UsbDriver* UsbDriver::link

Link to next USB driver in the chain, set to NULL.

◆ name

const char* UsbDriver::name

Name of the USB driver.

◆ recvctl

int(* UsbDriver::recvctl) (int arg1, int arg2, struct DeviceRequest *req)

Received a control request arg0 is endpoint, arg1 is possibly data arg2 is data buffer.

◆ start_func

int(* UsbDriver::start_func) (int size, void *args)

Function called when the driver is started.

◆ stop_func

int(* UsbDriver::stop_func) (int size, void *args)

Function called when the driver is stopped.

◆ str

struct StringDescriptor* UsbDriver::str

Default String descriptor.

◆ unk34

int UsbDriver::unk34

Unknown set to 0.


The documentation for this struct was generated from the following file: