vitasdk
Documentation of the vitasdk
|
Exports for Kernel.
Include the header file in your project:
Link the library to the executable:
Functions | |
VITASDK_BUILD_ASSERT_EQ (0x80, SceSysconPacket) | |
VITASDK_BUILD_ASSERT_EQ (0xC, SceSysconDebugHandlers) | |
int | ksceSysconWaitInitialized (void) |
Waits until the syscon is initialized. More... | |
int | ksceSysconCmdExec (SceSysconPacket *packet, unsigned int flags) |
Execute synchronously a syscon packet. More... | |
int | ksceSysconCmdExecAsync (SceSysconPacket *packet, unsigned int flags, SceSysconCmdExecAsyncCallback cb, void *argp) |
Execute asynchronously a syscon packet. More... | |
int | ksceSysconCmdSync (SceSysconPacket *packet, int noWait) |
Wait for the currently queued syscon packets to be executed, or check if any are in the queue. More... | |
int | ksceSysconSetPowerMode (int type, int mode) |
Reset the device. More... | |
int | ksceSysconReadCommand (unsigned short cmd, void *buffer, SceSize size) |
int | ksceSysconSendCommand (unsigned short cmd, const void *buffer, SceSize size) |
int | ksceSysconSetDebugHandlers (const SceSysconDebugHandlers *handlers) |
Set the debug handlers. More... | |
int | ksceSysconCtrlLED (int led, int enable) |
Turn a LED on or off. More... | |
int | ksceSysconCtrlRMRPower (int power) |
Set the memory stick power. More... | |
int | ksceSysconCtrlSdPower (int power) |
Set the SD power. More... | |
int | ksceSysconCtrlHdmiCecPower (int power) |
Set the ADV7533 HDMI CEC power. More... | |
int | ksceSysconCtrlManualChargeMode (int) |
int | ksceSysconEnableHibernateIO (int) |
int | ksceSysconIduModeClear (void) |
int | ksceSysconIduModeSet (void) |
int | ksceSysconIsDownLoaderMode (void) |
int | ksceSysconLogStart (void) |
int | ksceSysconLogStartWaiting (void) |
int | ksceSysconLogReadData (unsigned short, void *buff, SceSize size) |
int | ksceSysconShowModeClear (void) |
int | ksceSysconShowModeSet (void) |
int | ksceSysconGetBaryonVersion (void) |
Get the baryon version. More... | |
unsigned long long | ksceSysconGetBaryonTimestamp () |
Get the baryon timestamp. More... | |
int | ksceSysconGetBatteryCalibData (int *, int *, int *, int *) |
int | ksceSysconGetHardwareInfo (void) |
int | ksceSysconGetHardwareInfo2 (int *, int *, int *) |
int | ksceSysconGetLogInfo (int *) |
int | ksceSysconGetManualChargeMode (int *) |
int | ksceSysconGetManufacturesStatus (int *) |
int | ksceSysconGetTemperatureLog (int *) |
int | ksceSysconGetUsbDetStatus (int *) |
int | ksceSysconClearTemperatureLog (int) |
int | ksceSysconBeginConfigstorageTransaction (void) |
int | ksceSysconCommitConfigstorageTransaction (void) |
int | ksceSysconEndConfigstorageTransaction (void) |
int | ksceSysconLoadConfigstorageScript (unsigned short, const void *buff, SceSize size) |
int | ksceSysconVerifyConfigstorageScript (unsigned short, const void *buff, SceSize size) |
int | ksceSysconSetAlarmCallback (SceSysconCallback callback, void *argp) |
Set the alarm callback, that will be ran when the alarm timer is passed. More... | |
int | ksceSysconSetLowBatteryCallback (SceSysconCallback callback, void *argp) |
Set the low battery callback, that will be ran when the battery is low. More... | |
int | ksceSysconSetThermalAlertCallback (SceSysconCallback callback, void *argp) |
Set the thermal alert callback, that will be ran when the temperature reaches a critical point. More... | |
int | ksceSysconGetControlsInfo (SceUInt32 *ctrl) |
Get physics button control info. More... | |
Typedefs | |
typedef int(* | SceSysconCmdExecAsyncCallback) (SceSysconPacket *packet, void *argp) |
typedef void(* | SceSysconCallback) (int enable, void *argp) |
Macros | |
#define | SCE_SYSCON_PACKET_TX_CMD_LO 0 |
#define | SCE_SYSCON_PACKET_TX_CMD_HI 1 |
#define | SCE_SYSCON_PACKET_TX_LENGTH 2 |
#define | SCE_SYSCON_PACKET_TX_DATA(i) (3 + (i)) |
#define | SCE_SYSCON_PACKET_RX_STATUS_LO 0 |
#define | SCE_SYSCON_PACKET_RX_STATUS_HI 1 |
#define | SCE_SYSCON_PACKET_RX_LENGTH 2 |
#define | SCE_SYSCON_PACKET_RX_RESULT 3 |
#define | SCE_SYSCON_PACKET_RX_DATA(i) (4 + (i)) |
struct SceSysconPacket |
struct SceSysconDebugHandlers |
A set of debug handlers for syscon, that you can set in ksceSysconSetDebugHandlers().
Data Fields | |
int | size |
Structure size (probably, unused). More... | |
void(* | start )(SceSysconPacket *packet) |
Callback ran right before running a packet, with a pointer to it passed as the first argument. More... | |
void(* | end )(SceSysconPacket *packet) |
Callback ran right after finishing running a packet, with a pointer to it passed as the first argument. More... | |
#define SCE_SYSCON_PACKET_TX_CMD_LO 0 |
#define SCE_SYSCON_PACKET_TX_CMD_HI 1 |
#define SCE_SYSCON_PACKET_TX_LENGTH 2 |
#define SCE_SYSCON_PACKET_TX_DATA | ( | i | ) | (3 + (i)) |
#define SCE_SYSCON_PACKET_RX_STATUS_LO 0 |
#define SCE_SYSCON_PACKET_RX_STATUS_HI 1 |
#define SCE_SYSCON_PACKET_RX_LENGTH 2 |
#define SCE_SYSCON_PACKET_RX_RESULT 3 |
#define SCE_SYSCON_PACKET_RX_DATA | ( | i | ) | (4 + (i)) |
typedef int(* SceSysconCmdExecAsyncCallback) (SceSysconPacket *packet, void *argp) |
typedef void(* SceSysconCallback) (int enable, void *argp) |
enum SceSysconCmd |
enum SceSysconResetType |
enum SceSysconControl |
VITASDK_BUILD_ASSERT_EQ | ( | 0x80 | , |
SceSysconPacket | |||
) |
VITASDK_BUILD_ASSERT_EQ | ( | 0xC | , |
SceSysconDebugHandlers | |||
) |
int ksceSysconWaitInitialized | ( | void | ) |
Waits until the syscon is initialized.
int ksceSysconCmdExec | ( | SceSysconPacket * | packet, |
unsigned int | flags | ||
) |
Execute synchronously a syscon packet.
packet | The packet to execute. Its tx member needs to be initialized. |
flags | The packet flags. Check SceSysconPacketFlags. |
int ksceSysconCmdExecAsync | ( | SceSysconPacket * | packet, |
unsigned int | flags, | ||
SceSysconCmdExecAsyncCallback | cb, | ||
void * | argp | ||
) |
Execute asynchronously a syscon packet.
packet | The packet to execute. Its tx member needs to be initialized. |
flags | The packet flags. Check SceSysconPacketFlags. |
callback | The packet callback. Check the callback member of SceSysconPacket. |
argp | The second argument that will be passed to the callback when executed. |
int ksceSysconCmdSync | ( | SceSysconPacket * | packet, |
int | noWait | ||
) |
Wait for the currently queued syscon packets to be executed, or check if any are in the queue.
packet | The packet you want to check or wait for, or NULL if you want to check or wait for all the currently running packets. |
noWait | Set to 1 if you just want to check the packet status, or 0 if you want the function to return only when the packet queue is empty. |
int ksceSysconSetPowerMode | ( | int | type, |
int | mode | ||
) |
Reset the device.
type | The reset type value, one of SceSysconResetType. |
mode | The resetting mode (?). |
int ksceSysconReadCommand | ( | unsigned short | cmd, |
void * | buffer, | ||
SceSize | size | ||
) |
int ksceSysconSendCommand | ( | unsigned short | cmd, |
const void * | buffer, | ||
SceSize | size | ||
) |
int ksceSysconSetDebugHandlers | ( | const SceSysconDebugHandlers * | handlers | ) |
Set the debug handlers.
int ksceSysconCtrlLED | ( | int | led, |
int | enable | ||
) |
Turn a LED on or off.
led | The LED id. |
enable | Set this value to 1 if you want the LED to turn on, or 0 if you want it to turn off. |
int ksceSysconCtrlRMRPower | ( | int | power | ) |
Set the memory stick power.
power | The new power value. |
int ksceSysconCtrlSdPower | ( | int | power | ) |
Set the SD power.
power | The new power value. |
int ksceSysconCtrlHdmiCecPower | ( | int | power | ) |
Set the ADV7533 HDMI CEC power.
power | The new power value. |
int ksceSysconCtrlManualChargeMode | ( | int | ) |
int ksceSysconEnableHibernateIO | ( | int | ) |
int ksceSysconIduModeClear | ( | void | ) |
int ksceSysconIduModeSet | ( | void | ) |
int ksceSysconIsDownLoaderMode | ( | void | ) |
int ksceSysconLogStart | ( | void | ) |
int ksceSysconLogStartWaiting | ( | void | ) |
int ksceSysconLogReadData | ( | unsigned short | , |
void * | buff, | ||
SceSize | size | ||
) |
int ksceSysconShowModeClear | ( | void | ) |
int ksceSysconShowModeSet | ( | void | ) |
int ksceSysconGetBaryonVersion | ( | void | ) |
Get the baryon version.
unsigned long long ksceSysconGetBaryonTimestamp | ( | ) |
Get the baryon timestamp.
int ksceSysconGetBatteryCalibData | ( | int * | , |
int * | , | ||
int * | , | ||
int * | |||
) |
int ksceSysconGetHardwareInfo | ( | void | ) |
int ksceSysconGetHardwareInfo2 | ( | int * | , |
int * | , | ||
int * | |||
) |
int ksceSysconGetLogInfo | ( | int * | ) |
int ksceSysconGetManualChargeMode | ( | int * | ) |
int ksceSysconGetManufacturesStatus | ( | int * | ) |
int ksceSysconGetTemperatureLog | ( | int * | ) |
int ksceSysconGetUsbDetStatus | ( | int * | ) |
int ksceSysconClearTemperatureLog | ( | int | ) |
int ksceSysconBeginConfigstorageTransaction | ( | void | ) |
int ksceSysconCommitConfigstorageTransaction | ( | void | ) |
int ksceSysconEndConfigstorageTransaction | ( | void | ) |
int ksceSysconLoadConfigstorageScript | ( | unsigned short | , |
const void * | buff, | ||
SceSize | size | ||
) |
int ksceSysconVerifyConfigstorageScript | ( | unsigned short | , |
const void * | buff, | ||
SceSize | size | ||
) |
int ksceSysconSetAlarmCallback | ( | SceSysconCallback | callback, |
void * | argp | ||
) |
Set the alarm callback, that will be ran when the alarm timer is passed.
callback | The callback function. |
argp | The second argument that will be passed to the callback. |
int ksceSysconSetLowBatteryCallback | ( | SceSysconCallback | callback, |
void * | argp | ||
) |
Set the low battery callback, that will be ran when the battery is low.
callback | The callback function. |
argp | The second argument that will be passed to the callback. |
int ksceSysconSetThermalAlertCallback | ( | SceSysconCallback | callback, |
void * | argp | ||
) |
Set the thermal alert callback, that will be ran when the temperature reaches a critical point.
callback | The callback function. |
argp | The second argument that will be passed to the callback. |
int ksceSysconGetControlsInfo | ( | SceUInt32 * | ctrl | ) |
Get physics button control info.
[out] | ctrl | - The pointer of physics button control info output |