vitasdk
Documentation of the vitasdk

Detailed Description

Exports for User.


Using this library in your project

Include the header file in your project:


Link the library to the executable:

SceUsbSerial_stub



Functions

int sceUsbSerialStart (void)
 Activate USB serial device. More...
 
int sceUsbSerialSetup (int unk)
 Setup USB serial device. More...
 
int sceUsbSerialClose (void)
 Close USB serial device. More...
 
int sceUsbSerialStatus (void)
 Close USB serial device. More...
 
unsigned int sceUsbSerialGetRecvBufferSize (void)
 Get receive buffer length. More...
 
unsigned int sceUsbSerialSend (const void *buffer, unsigned int len, int unk1, int unk2)
 Send data. More...
 
unsigned int sceUsbSerialRecv (void *buffer, unsigned int max_len, int unk1, int unk2)
 Receive Data. More...
 

Function Documentation

◆ sceUsbSerialStart()

int sceUsbSerialStart ( void  )

Activate USB serial device.

Returns
0 on success, < 0 on error
Note
The user is responsible for making sure no other UDC driver is active. This activates UDC as a "PS Vita" Type D device.
Wrapper for kernel function sceUsbSerialStartForDriver()

◆ sceUsbSerialSetup()

int sceUsbSerialSetup ( int  unk)

Setup USB serial device.

Returns
0 on success, < 0 on error
Parameters
unkUnknown
Note
Wrapper for kernel function sceUsbSerialSetupForDriver()

◆ sceUsbSerialClose()

int sceUsbSerialClose ( void  )

Close USB serial device.

Note
Wrapper for kernel function sceUsbSerialCloseForDriver()

◆ sceUsbSerialStatus()

int sceUsbSerialStatus ( void  )

Close USB serial device.

Returns
Returns 1 when serial port is open
Note
Wrapper for kernel function sceUsbSerialStatusForDriver()

◆ sceUsbSerialGetRecvBufferSize()

unsigned int sceUsbSerialGetRecvBufferSize ( void  )

Get receive buffer length.

Returns
Returns length of USB rx buffer
Note
Wrapper for kernel function sceUsbSerialGetLenForDriver()

◆ sceUsbSerialSend()

unsigned int sceUsbSerialSend ( const void *  buffer,
unsigned int  len,
int  unk1,
int  unk2 
)

Send data.

Parameters
[in]*bufferdata to send over usb
lenint len of serial buffer data
unk1Unknown
unk2Unknown
Note
max send length is 0x10000
Wrapper for kernel function sceUsbSerialSendForDriver()

◆ sceUsbSerialRecv()

unsigned int sceUsbSerialRecv ( void *  buffer,
unsigned int  max_len,
int  unk1,
int  unk2 
)

Receive Data.

Parameters
[out]*bufferbuffer for incoming data
max_lenmax data length to receive
unk1Unknown
unk2Unknown
Note
max recv length is 0x10000
Wrapper for kernel function sceUsbSerialRecvForDriver()