vitasdk
Documentation of the vitasdk

Detailed Description

Exports for Kernel.


Using this library in your project

Include the header file in your project:


Link the library to the executable:

SceUsbSerialForDriver_stub



Functions

int ksceUsbSerialStart (void)
 Activate USB serial device. More...
 
int ksceUsbSerialSetup (int unk)
 Setup USB serial device. More...
 
int ksceUsbSerialStatus (void)
 Get USB device status. More...
 
int ksceUsbSerialClose (void)
 Close USB serial device. More...
 
unsigned int ksceUsbSerialGetRecvBufferSize (void)
 Get receive buffer length. More...
 
SceSize ksceUsbSerialSend (const void *buffer, SceSize len, int unk1, int unk2)
 Send data. More...
 
SceSize ksceUsbSerialRecv (void *buffer, SceSize max_len, int unk1, int unk2)
 Receive Data. More...
 

Function Documentation

◆ ksceUsbSerialStart()

int ksceUsbSerialStart ( 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.

◆ ksceUsbSerialSetup()

int ksceUsbSerialSetup ( int  unk)

Setup USB serial device.

Returns
0 on success, < 0 on error
Parameters
unkUnknown

◆ ksceUsbSerialStatus()

int ksceUsbSerialStatus ( void  )

Get USB device status.

Returns
Returns 1 when serial port is open

◆ ksceUsbSerialClose()

int ksceUsbSerialClose ( void  )

Close USB serial device.

◆ ksceUsbSerialGetRecvBufferSize()

unsigned int ksceUsbSerialGetRecvBufferSize ( void  )

Get receive buffer length.

Returns
Returns length of USB rx buffer

◆ ksceUsbSerialSend()

SceSize ksceUsbSerialSend ( const void *  buffer,
SceSize  len,
int  unk1,
int  unk2 
)

Send data.

Parameters
[in]*bufferdata to send over usb
[in]lenint len of serial buffer data
unk1Unknown
unk2Unknown
Note
max send length is 0x10000

◆ ksceUsbSerialRecv()

SceSize ksceUsbSerialRecv ( void *  buffer,
SceSize  max_len,
int  unk1,
int  unk2 
)

Receive Data.

Parameters
[out]*bufferbuffer for incoming data
[in]max_lenmax data length to receive
unk1Unknown
unk2Unknown
Note
max recv length is 0x10000