|
#define | FIFO_PALIB FIFO_USER_08 |
| PAlib Fifo channel number...
|
|
#define | PA_SendFifoMsg(msg) fifoSendDatamsg(FIFO_PALIB, sizeof(PA_FifoMsg), (u8*) &msg) |
| Send a PA_FifoMsg structure to the other CPU.
|
|
#define | PA_SendFifoVal(val) fifoSendValue32(FIFO_PALIB, val) |
| Send a 32bit value to the other CPU.
|
|
#define | PA_SendFifoCmd PA_SendFifoVal |
| Send a command value to the other CPU (same as PA_SendFifoVal but for readability).
|
|
#define | PA_GetFifoMsg(msg, bytes) fifoGetDatamsg(FIFO_PALIB, bytes, (u8*) &msg) |
| Receive a PA_FifoMsg structure from the other CPU.
|
|
#define | PA_FifoRetWait() while(!fifoCheckValue32(FIFO_PALIB)) |
| Wait for the other CPU to send a return value.
|
|
#define | PA_FifoRetVal() fifoGetValue32(FIFO_PALIB) |
| Get the other CPU's return value.
|
|
#define | PA_LegacyIPCInit() |
| [DEPRECATED] Initialize the legacy IPC system.
|
|
#define | PA_LidClosed() _PA_LidDown |
| Check if the DS is closed. Returns 0 if open, 1 if closed.
|
|
#define | PA_CloseLidSound(close_sound) |
| Check if the DS is closed. If closed, it pauses the DS, and plays a sound.
|
|
#define | PA_CloseLidSound2(close_sound, open_sound) |
| Check if the DS is closed. If closed, it pauses the DS, and plays a sound. The sound system must be initialized before.
|
|
#define | PA_WaitFor(something) do{while(!(something)) PA_WaitForVBL();}while(0) |
| Wait for a specific thing to happen...
|
|
|
static u32 | PA_FifoGetRetVal () |
| Inline function to ease the getting of the return value (wait + get)
|
|
void | PA_Init () |
| Initialise the library. Should be used at the beginning of main()
|
|
void | PA_InitFifo () |
| Initialize the Fifo system. It is automatically done in PA_Init().
|
|
void | PA_Init2D () |
| Resets to 2D state after using 3D functions.
|
|
void | PA_SetVideoMode (u8 screen, u8 mode) |
| Change the video mode... Use this with caution.
|
|
void | PA_UpdateUserInfo (void) |
| Updates the user info. This is automatically done in PA_Init. You can then get any info with the following variables : PA_UserInfo.Color (favorite color), .BdayDay, .BdayMonth, .AlarmHour, .AlarmMinute, .Name, .NameLength, .Message, .MessageLength, .Language.
|
|
void | PA_UpdateRTC (void) |
| Updates the Real Time Clock, with info on the current date and hour. Automatically updated in the PA VBL... Get the info with PA_RTC.Minutes, .Hour, .Seconds, .Day, .Month, and .Year.
|
|
static void | PA_SwitchScreens () |
| Switch the bottom and top screens...
|
|
static void | PA_SetAutoCheckLid (u8 on) |
| Automatically check if the DS is closed in PA_WaitForVBL.
|
|
static void | PA_SetLedBlink (u8 blink, u8 speed) |
| Set teh DS Led blinking.
|
|
u8 | PA_CheckLid () |
| Check if the DS is closed. If closed, it pauses the DS, and returns 1.
|
|
static void | PA_WaitForVBL () |
| Wait for the VBlank to occur.
|
|
static void | PA_SetScreenLight (u8 screen, u8 light) |
| Set on or off the screen's light.
|
|
static void | PA_SetDSLBrightness (u8 level) |
| Set the DS Lite Light level...
|
|
bool | PA_Locate (char *start, char *target, bool isDir, int depth, char *result) |
| Find a directory in the file system within a given depth.
|
|
void | PA_Error (const char *text) |
| Displays an error message.
|
|
Initialise the lib, and other general functions...