System Info Library


Enumerations

enum  pgeSystemLanguages {
  PGE_LANGUAGE_JAPANESE,
  PGE_LANGUAGE_ENGLISH,
  PGE_LANGUAGE_FRENCH,
  PGE_LANGUAGE_SPANISH,
  PGE_LANGUAGE_GERMAN,
  PGE_LANGUAGE_ITALIAN,
  PGE_LANGUAGE_DUTCH,
  PGE_LANGUAGE_PORTUGUESE,
  PGE_LANGUAGE_RUSSIAN,
  PGE_LANGUAGE_KOREAN,
  PGE_LANGUAGE_CHINESE_TRADITIONAL,
  PGE_LANGUAGE_CHINESE_SIMPLIFIED
}

Functions

void pgeSystemGetNickname (char *nickname)
void pgeSystemGetPsid (unsigned char *psid)
int pgeSystemGetLanguage (void)
void pgeSystemGetMac (unsigned char *mac)
float pgeSystemMsSize (void)
float pgeSystemMsFreeSize (void)
unsigned int pgeSystemGetFreeRam (void)
int pgeSystemSetCpu (unsigned int freq)
int pgeSystemGetBatteryPercent (void)
int pgeSystemGetBatteryTime (void)
int pgeSystemGetBatteryCharging (void)
int pgeSystemGetBatteryExists (void)
int pgeSystemGetBatteryIsLow (void)

Enumeration Type Documentation

Enumerator for languages.

Enumerator:
PGE_LANGUAGE_JAPANESE 
PGE_LANGUAGE_ENGLISH 
PGE_LANGUAGE_FRENCH 
PGE_LANGUAGE_SPANISH 
PGE_LANGUAGE_GERMAN 
PGE_LANGUAGE_ITALIAN 
PGE_LANGUAGE_DUTCH 
PGE_LANGUAGE_PORTUGUESE 
PGE_LANGUAGE_RUSSIAN 
PGE_LANGUAGE_KOREAN 
PGE_LANGUAGE_CHINESE_TRADITIONAL 
PGE_LANGUAGE_CHINESE_SIMPLIFIED 


Function Documentation

int pgeSystemGetBatteryCharging ( void   ) 

Get if the battery is charging or not.

Returns:
1 if charging, 0 if not.

int pgeSystemGetBatteryExists ( void   ) 

Get if the battery exists.

Returns:
1 if exists, 0 if not.

int pgeSystemGetBatteryIsLow ( void   ) 

Get if the battery charge is low.

Returns:
1 if low, 0 if not.

int pgeSystemGetBatteryPercent ( void   ) 

Get the battery charge as a percentage.

Returns:
The battery charge as a percentage (0-100).

int pgeSystemGetBatteryTime ( void   ) 

Get the battery charge in minutes.

Returns:
The battery charge in minutes.

unsigned int pgeSystemGetFreeRam ( void   ) 

Get the free RAM size.

Returns:
The free RAM size in MB (accurate to 512kb).

int pgeSystemGetLanguage ( void   ) 

Get the language of the PSP

Returns:
One of pgeSystemLanguages.

void pgeSystemGetMac ( unsigned char *  mac  ) 

Get the MAC address of the PSP

Parameters:
mac - Pointer to a buffer to store the mac (should be 8 bytes).

void pgeSystemGetNickname ( char *  nickname  ) 

Get the nickname of the PSP

Parameters:
nickname - Pointer to a buffer to store the nickname (should be 128 bytes).

void pgeSystemGetPsid ( unsigned char *  psid  ) 

Get the PSID of the PSP

Parameters:
psid - Pointer to a buffer to store the PSID (should be 16 bytes).

float pgeSystemMsFreeSize ( void   ) 

Get the free memory stick size.

Returns:
The free memory stick size in MB.

float pgeSystemMsSize ( void   ) 

Get the memory stick size.

Returns:
The memory stick size in MB.

int pgeSystemSetCpu ( unsigned int  freq  ) 

Get the CPU speed.

Parameters:
freq - The frequency of the CPU 1-333
Returns:
1 on success, 0 on error.


Generated on Mon Sep 22 16:58:14 2008 for Phoenix Game Engine by  doxygen 1.5.5