pspsdk-1.0+beta2
psputility_sysparam.h
Go to the documentation of this file.
1 /*
2  * PSP Software Development Kit - http://www.pspdev.org
3  * -----------------------------------------------------------------------
4  * Licensed under the BSD license, see LICENSE in PSPSDK root for details.
5  *
6  * psputility_sysparam.h - Definitions and Functions for System Paramters
7  * section of the pspUtility library
8  *
9  * Copyright (c) 2005 John Kelley <ps2dev@kelley.ca>
10  *
11  * $Id: psputility_sysparam.h 2433 2008-10-15 10:00:27Z iwn $
12  */
13 #ifndef __PSPUTILITY_SYSPARAM_H__
14 #define __PSPUTILITY_SYSPARAM_H__
15 
16 #ifdef __cplusplus
17 extern "C" {
18 #endif
19 
20 #include <psptypes.h>
21 
27 #define PSP_SYSTEMPARAM_ID_STRING_NICKNAME 1
28 #define PSP_SYSTEMPARAM_ID_INT_ADHOC_CHANNEL 2
29 #define PSP_SYSTEMPARAM_ID_INT_WLAN_POWERSAVE 3
30 #define PSP_SYSTEMPARAM_ID_INT_DATE_FORMAT 4
31 #define PSP_SYSTEMPARAM_ID_INT_TIME_FORMAT 5
32 //Timezone offset from UTC in minutes, (EST = -300 = -5 * 60)
33 #define PSP_SYSTEMPARAM_ID_INT_TIMEZONE 6
34 #define PSP_SYSTEMPARAM_ID_INT_DAYLIGHTSAVINGS 7
35 #define PSP_SYSTEMPARAM_ID_INT_LANGUAGE 8
36 
43 #define PSP_SYSTEMPARAM_ID_INT_UNKNOWN 9
44 
48 #define PSP_SYSTEMPARAM_RETVAL_OK 0
49 #define PSP_SYSTEMPARAM_RETVAL_FAIL 0x80110103
50 
54 #define PSP_SYSTEMPARAM_ADHOC_CHANNEL_AUTOMATIC 0
55 #define PSP_SYSTEMPARAM_ADHOC_CHANNEL_1 1
56 #define PSP_SYSTEMPARAM_ADHOC_CHANNEL_6 6
57 #define PSP_SYSTEMPARAM_ADHOC_CHANNEL_11 11
58 
62 #define PSP_SYSTEMPARAM_WLAN_POWERSAVE_OFF 0
63 #define PSP_SYSTEMPARAM_WLAN_POWERSAVE_ON 1
64 
68 #define PSP_SYSTEMPARAM_DATE_FORMAT_YYYYMMDD 0
69 #define PSP_SYSTEMPARAM_DATE_FORMAT_MMDDYYYY 1
70 #define PSP_SYSTEMPARAM_DATE_FORMAT_DDMMYYYY 2
71 
75 #define PSP_SYSTEMPARAM_TIME_FORMAT_24HR 0
76 #define PSP_SYSTEMPARAM_TIME_FORMAT_12HR 1
77 
81 #define PSP_SYSTEMPARAM_DAYLIGHTSAVINGS_STD 0
82 #define PSP_SYSTEMPARAM_DAYLIGHTSAVINGS_SAVING 1
83 
87 #define PSP_SYSTEMPARAM_LANGUAGE_JAPANESE 0
88 #define PSP_SYSTEMPARAM_LANGUAGE_ENGLISH 1
89 #define PSP_SYSTEMPARAM_LANGUAGE_FRENCH 2
90 #define PSP_SYSTEMPARAM_LANGUAGE_SPANISH 3
91 #define PSP_SYSTEMPARAM_LANGUAGE_GERMAN 4
92 #define PSP_SYSTEMPARAM_LANGUAGE_ITALIAN 5
93 #define PSP_SYSTEMPARAM_LANGUAGE_DUTCH 6
94 #define PSP_SYSTEMPARAM_LANGUAGE_PORTUGUESE 7
95 #define PSP_SYSTEMPARAM_LANGUAGE_RUSSIAN 8
96 #define PSP_SYSTEMPARAM_LANGUAGE_KOREAN 9
97 #define PSP_SYSTEMPARAM_LANGUAGE_CHINESE_TRADITIONAL 10
98 #define PSP_SYSTEMPARAM_LANGUAGE_CHINESE_SIMPLIFIED 11
99 
107 int sceUtilitySetSystemParamInt(int id, int value);
108 
116 int sceUtilitySetSystemParamString(int id, const char *str);
117 
125 int sceUtilityGetSystemParamInt( int id, int *value );
126 
135 int sceUtilityGetSystemParamString(int id, char *str, int len);
136 
137 #ifdef __cplusplus
138 }
139 #endif
140 
141 #endif