Files
pspsdk/src/kernel/pspimpose_driver.h
Carsten Teibes 7c6e46b487 Remove outdated svn ids, change url, fix permissions
Convert to unix line endings
2020-05-08 00:50:41 +02:00

142 lines
2.9 KiB
C

/*
* PSP Software Development Kit - https://github.com/pspdev
* -----------------------------------------------------------------------
* 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 <adrahil@gmail.com>
*
*/
#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