PSPSDK 2024-10-31
Loading...
Searching...
No Matches
psputility_sysparam.h File Reference
#include <psptypes.h>
Include dependency graph for psputility_sysparam.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define PSP_SYSTEMPARAM_ID_STRING_NICKNAME   1
 IDs for use inSystemParam functions PSP_SYSTEMPARAM_ID_INT are for use with SystemParamInt funcs PSP_SYSTEMPARAM_ID_STRING are for use with SystemParamString funcs.
 
#define PSP_SYSTEMPARAM_ID_INT_ADHOC_CHANNEL   2
 
#define PSP_SYSTEMPARAM_ID_INT_WLAN_POWERSAVE   3
 
#define PSP_SYSTEMPARAM_ID_INT_DATE_FORMAT   4
 
#define PSP_SYSTEMPARAM_ID_INT_TIME_FORMAT   5
 
#define PSP_SYSTEMPARAM_ID_INT_TIMEZONE   6
 
#define PSP_SYSTEMPARAM_ID_INT_DAYLIGHTSAVINGS   7
 
#define PSP_SYSTEMPARAM_ID_INT_LANGUAGE   8
 
#define PSP_SYSTEMPARAM_ID_INT_UNKNOWN   9
 #9 seems to be Region or maybe X/O button swap.
 
#define PSP_SYSTEMPARAM_RETVAL_OK   0
 Return values for the SystemParam functions.
 
#define PSP_SYSTEMPARAM_RETVAL_FAIL   0x80110103
 
#define PSP_SYSTEMPARAM_ADHOC_CHANNEL_AUTOMATIC   0
 Valid values for PSP_SYSTEMPARAM_ID_INT_ADHOC_CHANNEL.
 
#define PSP_SYSTEMPARAM_ADHOC_CHANNEL_1   1
 
#define PSP_SYSTEMPARAM_ADHOC_CHANNEL_6   6
 
#define PSP_SYSTEMPARAM_ADHOC_CHANNEL_11   11
 
#define PSP_SYSTEMPARAM_WLAN_POWERSAVE_OFF   0
 Valid values for PSP_SYSTEMPARAM_ID_INT_WLAN_POWERSAVE.
 
#define PSP_SYSTEMPARAM_WLAN_POWERSAVE_ON   1
 
#define PSP_SYSTEMPARAM_DATE_FORMAT_YYYYMMDD   0
 Valid values for PSP_SYSTEMPARAM_ID_INT_DATE_FORMAT.
 
#define PSP_SYSTEMPARAM_DATE_FORMAT_MMDDYYYY   1
 
#define PSP_SYSTEMPARAM_DATE_FORMAT_DDMMYYYY   2
 
#define PSP_SYSTEMPARAM_TIME_FORMAT_24HR   0
 Valid values for PSP_SYSTEMPARAM_ID_INT_TIME_FORMAT.
 
#define PSP_SYSTEMPARAM_TIME_FORMAT_12HR   1
 
#define PSP_SYSTEMPARAM_DAYLIGHTSAVINGS_STD   0
 Valid values for PSP_SYSTEMPARAM_ID_INT_DAYLIGHTSAVINGS.
 
#define PSP_SYSTEMPARAM_DAYLIGHTSAVINGS_SAVING   1
 
#define PSP_SYSTEMPARAM_LANGUAGE_JAPANESE   0
 Valid values for PSP_SYSTEMPARAM_ID_INT_LANGUAGE.
 
#define PSP_SYSTEMPARAM_LANGUAGE_ENGLISH   1
 
#define PSP_SYSTEMPARAM_LANGUAGE_FRENCH   2
 
#define PSP_SYSTEMPARAM_LANGUAGE_SPANISH   3
 
#define PSP_SYSTEMPARAM_LANGUAGE_GERMAN   4
 
#define PSP_SYSTEMPARAM_LANGUAGE_ITALIAN   5
 
#define PSP_SYSTEMPARAM_LANGUAGE_DUTCH   6
 
#define PSP_SYSTEMPARAM_LANGUAGE_PORTUGUESE   7
 
#define PSP_SYSTEMPARAM_LANGUAGE_RUSSIAN   8
 
#define PSP_SYSTEMPARAM_LANGUAGE_KOREAN   9
 
#define PSP_SYSTEMPARAM_LANGUAGE_CHINESE_TRADITIONAL   10
 
#define PSP_SYSTEMPARAM_LANGUAGE_CHINESE_SIMPLIFIED   11
 

Functions

int sceUtilitySetSystemParamInt (int id, int value)
 Set Integer System Parameter.
 
int sceUtilitySetSystemParamString (int id, const char *str)
 Set String System Parameter.
 
int sceUtilityGetSystemParamInt (int id, int *value)
 Get Integer System Parameter.
 
int sceUtilityGetSystemParamString (int id, char *str, int len)
 Get String System Parameter.
 

Macro Definition Documentation

◆ PSP_SYSTEMPARAM_ADHOC_CHANNEL_1

#define PSP_SYSTEMPARAM_ADHOC_CHANNEL_1   1

◆ PSP_SYSTEMPARAM_ADHOC_CHANNEL_11

#define PSP_SYSTEMPARAM_ADHOC_CHANNEL_11   11

◆ PSP_SYSTEMPARAM_ADHOC_CHANNEL_6

#define PSP_SYSTEMPARAM_ADHOC_CHANNEL_6   6

◆ PSP_SYSTEMPARAM_ADHOC_CHANNEL_AUTOMATIC

#define PSP_SYSTEMPARAM_ADHOC_CHANNEL_AUTOMATIC   0

Valid values for PSP_SYSTEMPARAM_ID_INT_ADHOC_CHANNEL.

◆ PSP_SYSTEMPARAM_DATE_FORMAT_DDMMYYYY

#define PSP_SYSTEMPARAM_DATE_FORMAT_DDMMYYYY   2

◆ PSP_SYSTEMPARAM_DATE_FORMAT_MMDDYYYY

#define PSP_SYSTEMPARAM_DATE_FORMAT_MMDDYYYY   1

◆ PSP_SYSTEMPARAM_DATE_FORMAT_YYYYMMDD

#define PSP_SYSTEMPARAM_DATE_FORMAT_YYYYMMDD   0

Valid values for PSP_SYSTEMPARAM_ID_INT_DATE_FORMAT.

◆ PSP_SYSTEMPARAM_DAYLIGHTSAVINGS_SAVING

#define PSP_SYSTEMPARAM_DAYLIGHTSAVINGS_SAVING   1

◆ PSP_SYSTEMPARAM_DAYLIGHTSAVINGS_STD

#define PSP_SYSTEMPARAM_DAYLIGHTSAVINGS_STD   0

Valid values for PSP_SYSTEMPARAM_ID_INT_DAYLIGHTSAVINGS.

◆ PSP_SYSTEMPARAM_ID_INT_ADHOC_CHANNEL

#define PSP_SYSTEMPARAM_ID_INT_ADHOC_CHANNEL   2

◆ PSP_SYSTEMPARAM_ID_INT_DATE_FORMAT

#define PSP_SYSTEMPARAM_ID_INT_DATE_FORMAT   4

◆ PSP_SYSTEMPARAM_ID_INT_DAYLIGHTSAVINGS

#define PSP_SYSTEMPARAM_ID_INT_DAYLIGHTSAVINGS   7

◆ PSP_SYSTEMPARAM_ID_INT_LANGUAGE

#define PSP_SYSTEMPARAM_ID_INT_LANGUAGE   8

◆ PSP_SYSTEMPARAM_ID_INT_TIME_FORMAT

#define PSP_SYSTEMPARAM_ID_INT_TIME_FORMAT   5

◆ PSP_SYSTEMPARAM_ID_INT_TIMEZONE

#define PSP_SYSTEMPARAM_ID_INT_TIMEZONE   6

◆ PSP_SYSTEMPARAM_ID_INT_UNKNOWN

#define PSP_SYSTEMPARAM_ID_INT_UNKNOWN   9

#9 seems to be Region or maybe X/O button swap.

It doesn't exist on JAP v1.0 is 1 on NA v1.5s is 0 on JAP v1.5s is read-only

◆ PSP_SYSTEMPARAM_ID_INT_WLAN_POWERSAVE

#define PSP_SYSTEMPARAM_ID_INT_WLAN_POWERSAVE   3

◆ PSP_SYSTEMPARAM_ID_STRING_NICKNAME

#define PSP_SYSTEMPARAM_ID_STRING_NICKNAME   1

IDs for use inSystemParam functions PSP_SYSTEMPARAM_ID_INT are for use with SystemParamInt funcs PSP_SYSTEMPARAM_ID_STRING are for use with SystemParamString funcs.

◆ PSP_SYSTEMPARAM_LANGUAGE_CHINESE_SIMPLIFIED

#define PSP_SYSTEMPARAM_LANGUAGE_CHINESE_SIMPLIFIED   11

◆ PSP_SYSTEMPARAM_LANGUAGE_CHINESE_TRADITIONAL

#define PSP_SYSTEMPARAM_LANGUAGE_CHINESE_TRADITIONAL   10

◆ PSP_SYSTEMPARAM_LANGUAGE_DUTCH

#define PSP_SYSTEMPARAM_LANGUAGE_DUTCH   6

◆ PSP_SYSTEMPARAM_LANGUAGE_ENGLISH

#define PSP_SYSTEMPARAM_LANGUAGE_ENGLISH   1

◆ PSP_SYSTEMPARAM_LANGUAGE_FRENCH

#define PSP_SYSTEMPARAM_LANGUAGE_FRENCH   2

◆ PSP_SYSTEMPARAM_LANGUAGE_GERMAN

#define PSP_SYSTEMPARAM_LANGUAGE_GERMAN   4

◆ PSP_SYSTEMPARAM_LANGUAGE_ITALIAN

#define PSP_SYSTEMPARAM_LANGUAGE_ITALIAN   5

◆ PSP_SYSTEMPARAM_LANGUAGE_JAPANESE

#define PSP_SYSTEMPARAM_LANGUAGE_JAPANESE   0

Valid values for PSP_SYSTEMPARAM_ID_INT_LANGUAGE.

◆ PSP_SYSTEMPARAM_LANGUAGE_KOREAN

#define PSP_SYSTEMPARAM_LANGUAGE_KOREAN   9

◆ PSP_SYSTEMPARAM_LANGUAGE_PORTUGUESE

#define PSP_SYSTEMPARAM_LANGUAGE_PORTUGUESE   7

◆ PSP_SYSTEMPARAM_LANGUAGE_RUSSIAN

#define PSP_SYSTEMPARAM_LANGUAGE_RUSSIAN   8

◆ PSP_SYSTEMPARAM_LANGUAGE_SPANISH

#define PSP_SYSTEMPARAM_LANGUAGE_SPANISH   3

◆ PSP_SYSTEMPARAM_RETVAL_FAIL

#define PSP_SYSTEMPARAM_RETVAL_FAIL   0x80110103

◆ PSP_SYSTEMPARAM_RETVAL_OK

#define PSP_SYSTEMPARAM_RETVAL_OK   0

Return values for the SystemParam functions.

◆ PSP_SYSTEMPARAM_TIME_FORMAT_12HR

#define PSP_SYSTEMPARAM_TIME_FORMAT_12HR   1

◆ PSP_SYSTEMPARAM_TIME_FORMAT_24HR

#define PSP_SYSTEMPARAM_TIME_FORMAT_24HR   0

Valid values for PSP_SYSTEMPARAM_ID_INT_TIME_FORMAT.

◆ PSP_SYSTEMPARAM_WLAN_POWERSAVE_OFF

#define PSP_SYSTEMPARAM_WLAN_POWERSAVE_OFF   0

Valid values for PSP_SYSTEMPARAM_ID_INT_WLAN_POWERSAVE.

◆ PSP_SYSTEMPARAM_WLAN_POWERSAVE_ON

#define PSP_SYSTEMPARAM_WLAN_POWERSAVE_ON   1

Function Documentation

◆ sceUtilityGetSystemParamInt()

int sceUtilityGetSystemParamInt ( int  id,
int value 
)

Get Integer System Parameter.

Parameters
id- which parameter to get
value- pointer to integer value to place result in
Returns
0 on success, PSP_SYSTEMPARAM_RETVAL_FAIL on failure

◆ sceUtilityGetSystemParamString()

int sceUtilityGetSystemParamString ( int  id,
char str,
int  len 
)

Get String System Parameter.

Parameters
id- which parameter to get
str- char * buffer to place result in
len- length of str buffer
Returns
0 on success, PSP_SYSTEMPARAM_RETVAL_FAIL on failure

◆ sceUtilitySetSystemParamInt()

int sceUtilitySetSystemParamInt ( int  id,
int  value 
)

Set Integer System Parameter.

Parameters
id- which parameter to set
value- integer value to set
Returns
0 on success, PSP_SYSTEMPARAM_RETVAL_FAIL on failure

◆ sceUtilitySetSystemParamString()

int sceUtilitySetSystemParamString ( int  id,
const char str 
)

Set String System Parameter.

Parameters
id- which parameter to set
str- char * value to set
Returns
0 on success, PSP_SYSTEMPARAM_RETVAL_FAIL on failure