vitasdk
Documentation of the vitasdk

Detailed Description

Exports for User.


Using this library in your project

Include the header file in your project:

#include <psp2/udcd.h>


Link the library to the executable:

SceUdcd_stub



Functions

 VITASDK_BUILD_ASSERT_EQ (0x18, SceUdcdDeviceState)
 
int sceUdcdGetDeviceState (SceUdcdDeviceState *state)
 Get device state. More...
 
int sceUdcdGetDeviceInfo (SceUdcdDeviceInfo *devInfo)
 Get device information. More...
 
int sceUdcdGetDrvState (const char *driverName)
 Get state of a specific USB driver. More...
 
int sceUdcdRegisterCallback (SceUID cbid, int state)
 Register callback. More...
 
int sceUdcdUnregisterCallback (SceUID cbid)
 Unregister callback. More...
 
int sceUdcdWaitState (SceUdcdWaitParam *waitParam, unsigned int timeout)
 Wait for state. More...
 

Data Structure Documentation

◆ SceUdcdDeviceState

struct SceUdcdDeviceState
Data Fields
int unk_00
int state
int cable
int connection
int use_usb_charging
int unk_14

Function Documentation

◆ VITASDK_BUILD_ASSERT_EQ()

VITASDK_BUILD_ASSERT_EQ ( 0x18  ,
SceUdcdDeviceState   
)

◆ sceUdcdGetDeviceState()

int sceUdcdGetDeviceState ( SceUdcdDeviceState state)

Get device state.

Parameters
[out]state- Device state
Returns
0 on success, < 0 on error.

◆ sceUdcdGetDeviceInfo()

int sceUdcdGetDeviceInfo ( SceUdcdDeviceInfo devInfo)

Get device information.

Parameters
[out]devInfo- Device information
Returns
0 on success, < 0 on error.

◆ sceUdcdGetDrvState()

int sceUdcdGetDrvState ( const char *  driverName)

Get state of a specific USB driver.

Parameters
driverName- name of USB driver to get status from
Returns
SCE_UDCD_STATUS_DRIVER_STARTED if the driver has been started, SCE_UDCD_STATUS_DRIVER_REGISTERED if it is stopped

◆ sceUdcdRegisterCallback()

int sceUdcdRegisterCallback ( SceUID  cbid,
int  state 
)

Register callback.

Parameters
[in]cbid- Callback UID
[in]state- State
Returns
0 on success, < 0 on error.

◆ sceUdcdUnregisterCallback()

int sceUdcdUnregisterCallback ( SceUID  cbid)

Unregister callback.

Parameters
[in]cbid- Callback UID
Returns
0 on success, < 0 on error.

◆ sceUdcdWaitState()

int sceUdcdWaitState ( SceUdcdWaitParam waitParam,
unsigned int  timeout 
)

Wait for state.

Parameters
[in]waitParam- Wait parameter
[in]timeout- Timeout
Returns
0 on success, < 0 on error.