![]() |
vitasdk
Documentation of the vitasdk
|
Exports for User. More...
Data Structures | |
| struct | SceCompatCdram |
| struct | SceCtrlDataPsp |
Enumerations | |
| enum | SceCompatCacheMode { SCE_COMPAT_CACHE_NONE = 0 , SCE_COMPAT_CACHE_INVALIDATE = 1 , SCE_COMPAT_CACHE_WRITEBACK = 2 } |
| enum | SceCompatPeripheralMode { SCE_COMPAT_PERIPHERAL_POWER_IS_SUSPEND_REQUIRED = 1 , SCE_COMPAT_PERIPHERAL_POWER_GET_BATTERY_LIFETIME = 2 , SCE_COMPAT_PERIPHERAL_POWER_GET_BATTERY_PERCENT = 3 , SCE_COMPAT_PERIPHERAL_HPREMOTE_IS_HEADPHONE_EXIST = 4 } |
Functions | |
| VITASDK_BUILD_ASSERT_EQ (8, SceCompatCdram) | |
| VITASDK_BUILD_ASSERT_EQ (0x10, SceCtrlDataPsp) | |
| int | sceCompatInitEx (int unk) |
| Init compat. | |
| int | sceCompatUninit (void) |
| Uninit compat. | |
| int | sceCompatStart (void) |
| Start compat. | |
| int | sceCompatStop (void) |
| Stop compat. | |
| int | sceCompatAllocCdramWithHole (SceCompatCdram *cdram) |
| Allocate cdram with hole. | |
| int | sceCompatFrameBufferInit (void *framebuffer) |
| Framebuffer init. | |
| int | sceCompatSetSuspendSema (SceUID semaid1, SceUID semaid2) |
| Set suspend semaphores. | |
| int | sceCompatSuspendResume (int unk) |
| Suspend/resume compat. | |
| int | sceCompatCache (int mode, void *addr, SceSize size) |
| Cache operation. | |
| int | sceCompatWaitSpecialRequest (int unk) |
| Wait for special request. | |
| int | sceCompatInterrupt (int intr_code) |
| Interrupt code. | |
| int | sceCompatLCDCSync (void) |
| LCDC sync. | |
| int | sceCompatGetPrimaryHead (void) |
| Get primary head. | |
| int | sceCompatGetPeripheralState (int mode) |
| Get peripheral state. | |
| int | sceCompatGetStatus (void) |
| Get compat status. | |
| int | sceCompatGetUpdateState (void) |
| Get update state. | |
| int | sceCompatSetUpdateState (int state) |
| Set update state. | |
| int | sceCompatSetDisplayConfig (int unk0, int unk1) |
| Set display config. | |
| int | sceCompatSetRif (const char *rif) |
| Set RIF name. | |
| int | sceCompatGetPspSystemSoftwareVersion (void) |
| Get PSP system software version. | |
| int | sceCompatAvailableColorSpaceSetting (void) |
| Get color space setting availability. | |
| int | sceCompatCheckPocketStation (void) |
| Check if pocket station application is available. | |
| int | sceCompatIsPocketStationTitle (void) |
| Check if current title is a pocket station game. | |
| int | sceCompatWaitAndGetRequest (int mode, int id) |
| Wait for command and get request. | |
| int | sceCompatReadShared32 (int location, int *value) |
| Read from shared sram. | |
| int | sceCompatWriteShared32 (int location, int value) |
| Write to shared sram. | |
| int | sceCompatWriteSharedCtrl (SceCtrlDataPsp *pad_data) |
| Write shared control. | |
| int | sceCompatGetTitleList (void *buf, SceSize length) |
| Get title list. | |
| int | sceCompatGetDevInf (SceIoDevInfo *info) |
| Get Memory Card device information. | |
| int | sceCompatGetCurrentSecureTick (SceRtcTick *tick) |
| Get current secure tick. | |
| int | sceCompatDatRead (SceUInt32 index, SceUInt32 offset, void *buffer, SceSize size) |
| Read cached PSP activation data. | |
| int | sceCompatIdStorageLookup (SceUInt16 key, SceUInt32 offset, void *buffer, SceSize size) |
| Read a PSP IdStorage leaf. | |
Variables | |
| void * | SceCompatCdram::cached_cdram |
| void * | SceCompatCdram::uncached_cdram |
| unsigned int | SceCtrlDataPsp::TimeStamp |
| unsigned int | SceCtrlDataPsp::Buttons |
| unsigned char | SceCtrlDataPsp::Lx |
| unsigned char | SceCtrlDataPsp::Ly |
| unsigned char | SceCtrlDataPsp::Rx |
| unsigned char | SceCtrlDataPsp::Ry |
| unsigned char | SceCtrlDataPsp::Rsrv [4] |
Exports for User.
Include the header file in your project:
Link the library to the executable:
| struct SceCtrlDataPsp |
| enum SceCompatCacheMode |
| VITASDK_BUILD_ASSERT_EQ | ( | 8 | , |
| SceCompatCdram | |||
| ) |
| VITASDK_BUILD_ASSERT_EQ | ( | 0x10 | , |
| SceCtrlDataPsp | |||
| ) |
| int sceCompatInitEx | ( | int | unk | ) |
Init compat.
| [in] | unk | - Unknown, pass 0 |
| int sceCompatUninit | ( | void | ) |
Uninit compat.
| int sceCompatStart | ( | void | ) |
Start compat.
| int sceCompatStop | ( | void | ) |
Stop compat.
| int sceCompatAllocCdramWithHole | ( | SceCompatCdram * | cdram | ) |
Allocate cdram with hole.
| [out] | cdram | - A pointer to a SceCompatCdram structure. |
| int sceCompatFrameBufferInit | ( | void * | framebuffer | ) |
Framebuffer init.
| [in] | framebuffer | - Pointer to framebuffer |
Set suspend semaphores.
| [in] | semaid1 | - Semaphore id 1 |
| [in] | semaid2 | - Semaphore id 2 |
| int sceCompatSuspendResume | ( | int | unk | ) |
Suspend/resume compat.
| [in] | unk | - Unknown, pass 1 |
| int sceCompatCache | ( | int | mode, |
| void * | addr, | ||
| SceSize | size | ||
| ) |
Cache operation.
| [in] | mode | - One of SceCompatCacheMode |
| [in] | addr | - Address |
| [in] | size | - Size |
| int sceCompatWaitSpecialRequest | ( | int | unk | ) |
Wait for special request.
| [in] | unk | - Unknown, pass 1 |
| int sceCompatInterrupt | ( | int | intr_code | ) |
Interrupt code.
| [in] | intr_code | - Interrupt code |
| int sceCompatLCDCSync | ( | void | ) |
LCDC sync.
| int sceCompatGetPrimaryHead | ( | void | ) |
Get primary head.
| int sceCompatGetPeripheralState | ( | int | mode | ) |
Get peripheral state.
| [in] | mode | - One of SceCompatPeripheralMode |
| int sceCompatGetStatus | ( | void | ) |
Get compat status.
| int sceCompatGetUpdateState | ( | void | ) |
Get update state.
| int sceCompatSetUpdateState | ( | int | state | ) |
Set update state.
| [in] | state | - State |
| int sceCompatSetDisplayConfig | ( | int | unk0, |
| int | unk1 | ||
| ) |
Set display config.
| [in] | unk0 | - Unknown |
| [in] | unk1 | - Unknown |
| int sceCompatSetRif | ( | const char * | rif | ) |
Set RIF name.
| [in] | rif | - RIF name (max. 36 chars) |
| int sceCompatGetPspSystemSoftwareVersion | ( | void | ) |
Get PSP system software version.
| int sceCompatAvailableColorSpaceSetting | ( | void | ) |
Get color space setting availability.
| int sceCompatCheckPocketStation | ( | void | ) |
Check if pocket station application is available.
| int sceCompatIsPocketStationTitle | ( | void | ) |
Check if current title is a pocket station game.
| int sceCompatWaitAndGetRequest | ( | int | mode, |
| int | id | ||
| ) |
Wait for command and get request.
| [in] | mode | - Mode |
| [in] | id | - ID |
| int sceCompatReadShared32 | ( | int | location, |
| int * | value | ||
| ) |
Read from shared sram.
| [in] | location | - Location |
| [out] | value | - Pointer to a int buffer to hold the value |
| int sceCompatWriteShared32 | ( | int | location, |
| int | value | ||
| ) |
Write to shared sram.
| [in] | location | - Location |
| [in] | value | - Value |
| int sceCompatWriteSharedCtrl | ( | SceCtrlDataPsp * | pad_data | ) |
Write shared control.
| [in] | pad_data | - Pointer to a SceCtrlDataPsp structure. |
| int sceCompatGetTitleList | ( | void * | buf, |
| SceSize | length | ||
| ) |
Get title list.
| [out] | buf | - A 100 bytes buffer for the title list |
| [in] | length | - Must be 100 |
| int sceCompatGetDevInf | ( | SceIoDevInfo * | info | ) |
Get Memory Card device information.
| [out] | info | - A pointer to a SceIoDevInfo structure. |
| int sceCompatGetCurrentSecureTick | ( | SceRtcTick * | tick | ) |
Get current secure tick.
| [out] | tick | - A pointer to a SceRtcTick structure. |
Read cached PSP activation data.
FW 3.60 exposes the 0x1038-byte activation data cached by sceCompatStart to PSPEmu as flash2:/act.dat. This function only succeeds for the PSPEmu process associated with the active SceCompat instance.
| [in] | index | - Data selector. Must be 0 on FW 3.60. |
| [in] | offset | - Byte offset in the cached activation data. Must be less than 0x1038. |
| [out] | buffer | - Buffer that receives the requested bytes. |
| [in] | size | - Number of bytes to read. The requested range must fit within the 0x1038-byte activation data. |
Read a PSP IdStorage leaf.
FW 3.60 accepts PSP keys from 0x100 through 0x13F and maps them to Vita IdStorage keys 0x0000 through 0x003F. The offset is within the resulting 0x200-byte leaf. A size of 0x200 or greater is treated as 0x200 before the requested range is checked. This function only succeeds for the PSPEmu process associated with the active SceCompat instance.
| [in] | key | - PSP IdStorage key from 0x100 through 0x13F. |
| [in] | offset | - Byte offset within the 0x200-byte leaf. |
| [out] | buffer | - Buffer that receives the requested bytes. |
| [in] | size | - Number of bytes to read. |
| void* SceCompatCdram::cached_cdram |
| void* SceCompatCdram::uncached_cdram |
| unsigned int SceCtrlDataPsp::TimeStamp |
| unsigned int SceCtrlDataPsp::Buttons |
| unsigned char SceCtrlDataPsp::Lx |
| unsigned char SceCtrlDataPsp::Ly |
| unsigned char SceCtrlDataPsp::Rx |
| unsigned char SceCtrlDataPsp::Ry |
| unsigned char SceCtrlDataPsp::Rsrv[4] |