![]() |
vitasdk
Documentation of the vitasdk
|
Exports for Kernel. More...
Typedefs | |
| typedef void(* | SceDebugLedHandler) (int arg0, int arg1, int arg2, int arg3) |
| Debug LED handler. | |
Functions | |
| void | ksceKernelSetGPO (SceUInt32 bits) |
| Set the general-purpose output bitfield. | |
| SceUInt32 | ksceKernelGetGPO (void) |
| Get the saved general-purpose output bitfield. | |
| void | ksceKernelSetGPI (SceUInt32 bits) |
| Replace the general-purpose input bitfield stored in software. | |
| SceUInt32 | ksceKernelGetGPI (void) |
| Get the current general-purpose input bitfield. | |
| int | ksceKernelSetGPOMask (SceUInt32 clear_mask, SceUInt32 set_mask) |
| Atomically update the GPO enable mask. | |
| void | ksceDebugLedRegisterHandle0 (SceDebugLedHandler handler) |
| Register or clear debug LED handler 0. | |
| void | ksceDebugLedInvokeHandle0 (int arg0, int arg1, int arg2, int arg3) |
| Call debug LED handler 0 if one is registered. | |
| void | ksceDebugLedRegisterHandle1 (SceDebugLedHandler handler) |
| Register or clear debug LED handler 1. | |
| void | ksceDebugLedInvokeHandle1 (int arg0, int arg1, int arg2, int arg3) |
| Call debug LED handler 1 if one is registered. | |
Exports for Kernel.
Include the header file in your project:
Link the library to the executable:
| typedef void(* SceDebugLedHandler) (int arg0, int arg1, int arg2, int arg3) |
Debug LED handler.
The invoke functions pass the arguments to the handler unchanged.
| void ksceKernelSetGPO | ( | SceUInt32 | bits | ) |
Set the general-purpose output bitfield.
The full value is saved. On PDEL units, enabled bits 0 through 7 control the debug LED display.
| [in] | bits | - Output bitfield. |
| SceUInt32 ksceKernelGetGPO | ( | void | ) |
Get the saved general-purpose output bitfield.
| void ksceKernelSetGPI | ( | SceUInt32 | bits | ) |
Replace the general-purpose input bitfield stored in software.
| [in] | bits | - Input bitfield. |
| SceUInt32 ksceKernelGetGPI | ( | void | ) |
Get the current general-purpose input bitfield.
Atomically update the GPO enable mask.
The new mask is (oldMask & ~clear_mask) | set_mask and takes effect on the next GPO write or when GPO state is restored on resume.
| [in] | clear_mask | - Bits to clear from the current mask. |
| [in] | set_mask | - Bits to set in the current mask. |
| void ksceDebugLedRegisterHandle0 | ( | SceDebugLedHandler | handler | ) |
Register or clear debug LED handler 0.
| [in] | handler | - Handler to register, or NULL to clear it. |
| void ksceDebugLedInvokeHandle0 | ( | int | arg0, |
| int | arg1, | ||
| int | arg2, | ||
| int | arg3 | ||
| ) |
Call debug LED handler 0 if one is registered.
| [in] | arg0 | - First handler argument; meaning unspecified. |
| [in] | arg1 | - Second handler argument; meaning unspecified. |
| [in] | arg2 | - Third handler argument; meaning unspecified. |
| [in] | arg3 | - Fourth handler argument; meaning unspecified. |
| void ksceDebugLedRegisterHandle1 | ( | SceDebugLedHandler | handler | ) |
Register or clear debug LED handler 1.
| [in] | handler | - Handler to register, or NULL to clear it. |
| void ksceDebugLedInvokeHandle1 | ( | int | arg0, |
| int | arg1, | ||
| int | arg2, | ||
| int | arg3 | ||
| ) |
Call debug LED handler 1 if one is registered.
| [in] | arg0 | - First handler argument; meaning unspecified. |
| [in] | arg1 | - Second handler argument; meaning unspecified. |
| [in] | arg2 | - Third handler argument; meaning unspecified. |
| [in] | arg3 | - Fourth handler argument; meaning unspecified. |