(Not all params have been checked, but Brightness and Mute, for example, work good :)
There is a range checking on the params, of course. For example, brightness goes from 0 to 3 included.
pspimpose_driver.h
Code: Select all
/*
* PSP Software Development Kit - http://www.pspdev.org
* -----------------------------------------------------------------------
* Licensed under the BSD license, see LICENSE in PSPSDK root for details.
*
* pspimpose_driver.h - Prototypes for the sceImpose_driver library.
*
* Copyright (c) 2007 Iaroslav Gaponenko <[email protected]>
*
* $Id: pspimpose_driver.h$
*/
#ifndef __IMPOSE_DRIVER_H__
#define __IMPOSE_DRIVER_H__
#ifdef __cplusplus
extern "C" {
#endif
typedef int SceImposeParam;
/**
* These values have been found in the 3.52 kernel.
* Therefore, they might not be supported by previous ones.
*/
#define PSP_IMPOSE_MAIN_VOLUME 0x1
#define PSP_IMPOSE_BACKLIGHT_BRIGHTNESS 0x2
#define PSP_IMPOSE_EQUALIZER_MODE 0x4
#define PSP_IMPOSE_MUTE 0x8
#define PSP_IMPOSE_AVLS 0x10
#define PSP_IMPOSE_TIME_FORMAT 0x20
#define PSP_IMPOSE_DATE_FORMAT 0x40
#define PSP_IMPOSE_LANGUAGE 0x80
#define PSP_IMPOSE_BACKLIGHT_OFF_INTERVAL 0x200
#define PSP_IMPOSE_SOUND_REDUCTION 0x400
#define PSP_IMPOSE_UMD_POPUP_ENABLED 1
#define PSP_IMPOSE_UMD_POPUP_DISABLED 0
/**
* Fetch the value of an Impose parameter.
*
* @return value of the parameter on success, < 0 on error
*/
int sceImposeGetParam(SceImposeParam param);
/**
* Change the value of an Impose parameter.
*
* @param param - The parameter to change.
* @param value - The value to set the parameter to.
* @return < 0 on error
*
*/
int sceImposeSetParam(SceImposeParam param, int value);
/**
* Get the value of the backlight timer.
*
* @return backlight timer in seconds or < 0 on error
*
*/
int sceImposeGetBacklightOffTime(void);
/**
* Set the value of the backlight timer.
*
* @param value - The backlight timer. (30 to a lot of seconds)
* @return < 0 on error
*
*/
int sceImposeSetBacklightOffTime(int value);
/**
* Get the language and button assignment parameters
*
* @return < 0 on error
*
*/
int sceImposeGetLanguageMode(int* lang, int* button);
/**
* Set the language and button assignment parameters
*
* /!\ parameter values not known.
*
* @param lang - Language
* @param button - Button assignment
* @return < 0 on error
*
*/
int sceImposeSetLanguageMode(int lang, int button);
/**
* Get the value of the UMD popup.
*
* @return umd popup state or < 0 on error
*
*/
int sceImposeGetUMDPopup(void);
/**
* Set the value of the UMD popup.
*
* @param value - The popup mode.
* @return < 0 on error
*
*/
int sceImposeSetUMDPopup(int value);
/**
* Get the value of the Home popup.
*
* @return home popup state or < 0 on error
*
*/
int sceImposeGetHomePopup(void);
/**
* Set the value of the Home popup.
*
* @param value - The popup mode.
* @return < 0 on error
*
*/
int sceImposeSetHomePopup(int value);
/**
* Check the video out. (for psp slim?)
*
* @param value - video out mode/status(?)
* @return < 0 on error
*
*/
int sceImposeCheckVideoOut(int* value);
#ifdef __cplusplus
}
#endif
#endif
Code: Select all
.set noreorder
#include "pspstub.s"
STUB_START "sceImpose_driver",0x00010011,0x00170005
STUB_FUNC 0x0F341BE4,sceImposeGetHomePopup
STUB_FUNC 0x116CFF64,sceImposeCheckVideoOut
STUB_FUNC 0x116DDED6,sceImposeSetVideoOutMode
STUB_FUNC 0x1AEED8FE,sceImposeSuspend
STUB_FUNC 0x1B6E3400,sceImposeGetStatus
STUB_FUNC 0x24FD7BCF,sceImposeGetLanguageMode
STUB_FUNC 0x36AA6E91,sceImposeSetLanguageMode
STUB_FUNC 0x381BD9E7,sceImposeHomeButton
STUB_FUNC 0x531C9778,sceImposeGetParam
STUB_FUNC 0x5595A71A,sceImposeSetHomePopup
STUB_FUNC 0x7084E72C,sceImpose_driver_7084E72C
STUB_FUNC 0x72189C48,sceImposeSetUMDPopup
STUB_FUNC 0x810FB7FB,sceImposeSetParam
STUB_FUNC 0x86924032,sceImposeResume
STUB_FUNC 0x8C943191,sceImposeGetBatteryIconStatus
STUB_FUNC 0x8F6E3518,sceImposeGetBacklightOffTime
STUB_FUNC 0x967F6D4A,sceImposeSetBacklightOffTime
STUB_FUNC 0x9C8C6C81,sceImposeSetStatus
STUB_FUNC 0x9DBCE0C4,sceImpose_driver_9DBCE0C4
STUB_FUNC 0xB415FC59,sceImposeChanges
STUB_FUNC 0xBDBC42A6,sceImposeInit
STUB_FUNC 0xC7E36CC7,sceImposeEnd
STUB_FUNC 0xE0887BC8,sceImposeGetUMDPopup
STUB_END