vitasdk
Documentation of the vitasdk
compat.h File Reference
#include <vitasdk/build_utils.h>
#include <psp2/io/devctl.h>
#include <psp2/rtc.h>
#include <psp2/types.h>

Go to the source code of this file.

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. More...
 
int sceCompatUninit (void)
 Uninit compat. More...
 
int sceCompatStart (void)
 Start compat. More...
 
int sceCompatStop (void)
 Stop compat. More...
 
int sceCompatAllocCdramWithHole (SceCompatCdram *cdram)
 Allocate cdram with hole. More...
 
int sceCompatFrameBufferInit (void *framebuffer)
 Framebuffer init. More...
 
int sceCompatSetSuspendSema (SceUID semaid1, SceUID semaid2)
 Set suspend semaphores. More...
 
int sceCompatSuspendResume (int unk)
 Suspend/resume compat. More...
 
int sceCompatCache (int mode, void *addr, SceSize size)
 Cache operation. More...
 
int sceCompatWaitSpecialRequest (int unk)
 Wait for special request. More...
 
int sceCompatInterrupt (int intr_code)
 Interrupt code. More...
 
int sceCompatLCDCSync (void)
 LCDC sync. More...
 
int sceCompatGetPrimaryHead (void)
 Get primary head. More...
 
int sceCompatGetPeripheralState (int mode)
 Get peripheral state. More...
 
int sceCompatGetStatus (void)
 Get compat status. More...
 
int sceCompatGetUpdateState (void)
 Get update state. More...
 
int sceCompatSetUpdateState (int state)
 Set update state. More...
 
int sceCompatSetDisplayConfig (int unk0, int unk1)
 Set display config. More...
 
int sceCompatSetRif (const char *rif)
 Set RIF name. More...
 
int sceCompatGetPspSystemSoftwareVersion (void)
 Get PSP system software version. More...
 
int sceCompatAvailableColorSpaceSetting (void)
 Get color space setting availability. More...
 
int sceCompatCheckPocketStation (void)
 Check if pocket station application is available. More...
 
int sceCompatIsPocketStationTitle (void)
 Check if current title is a pocket station game. More...
 
int sceCompatWaitAndGetRequest (int mode, int id)
 Wait for command and get request. More...
 
int sceCompatReadShared32 (int location, int *value)
 Read from shared sram. More...
 
int sceCompatWriteShared32 (int location, int value)
 Write to shared sram. More...
 
int sceCompatWriteSharedCtrl (SceCtrlDataPsp *pad_data)
 Write shared control. More...
 
int sceCompatGetTitleList (void *buf, SceSize length)
 Get title list. More...
 
int sceCompatGetDevInf (SceIoDevInfo *info)
 Get Memory Card device information. More...
 
int sceCompatGetCurrentSecureTick (SceRtcTick *tick)
 Get current secure tick. More...