head 1.1; branch 1.1.1; access ; symbols start:1.1.1.1 PAlibDoc:1.1.1; locks ; strict; comment @# @; 1.1 date 2005.11.02.08.30.34; author jandujar; state Exp; branches 1.1.1.1; next ; 1.1.1.1 date 2005.11.02.08.30.34; author jandujar; state Exp; branches ; next ; desc @@ 1.1 log @Initial revision @ text @ PA_lib: Référence du fichier PA9.h

Référence du fichier PA9.h

Contains prototypes and macros... for the arm9. Plus de détails...

Aller au code source de ce fichier.

Structures de données

struct  RTC
struct  infos

Macros

#define USE_PA_SPLASH
#define BG_GFX1   0x6000000
#define BG_GFX2   0x6200000
#define SPRITE_GFX1   0x6400000
#define SPRITE_GFX2   0x6600000
#define REG_DMA3SRC   *(volatile u32*)0x040000D4
#define REG_DMA3DST   *(volatile u32*)0x040000D8
#define REG_DMA3CNT   *(volatile u32*)0x040000DC
#define DMA_ON   0x80000000
#define DMA_NOW   0x00000000
#define DMA_16   0x00000000
#define DMA_32   0x04000000
#define DMA_16NOW   (DMA_ON | DMA_NOW | DMA_16)
#define DMA_32NOW   (DMA_ON | DMA_NOW | DMA_32)
#define DMA_Copy(source, dest, count, mode)   {REG_DMA3SRC = (u32)source; REG_DMA3DST = (u32)dest; REG_DMA3CNT = (count) | (mode);}
#define DMA_Clear(dest, count, mode)   {REG_DMA3SRC = (u32)Blank; REG_DMA3DST = (u32)dest; REG_DMA3CNT = (count) | (mode);}
#define DMA_Force(ulVal, dest, count, mode)   {REG_DMA3SRC=(u32)&ulVal; REG_DMA3DST = (u32)dest; REG_DMA3CNT = (count) |(mode) | DMA_SRC_FIX;}
#define _REG8   *(volatile u16 *)
#define _REG16   *(volatile u16 *)
#define _REG32   *(volatile u32 *)
#define SWITCH_SCREENS   (1<<15)
#define N_HBLS   263
#define SIZEOF_8BIT(x)   (sizeof(x))
#define SIZEOF_16BIT(x)   (sizeof(x)>>1)
#define SIZEOF_32BIT(x)   (sizeof(x)>>2)
#define CODE_IN_IWRAM   __attribute__ ((section (".iwram"), long_call))
#define IN_IWRAM   __attribute__ ((section (".iwram")))
#define CODE_IN_EWRAM   __attribute__ ((section (".ewram"), long_call))
#define IN_EWRAM   __attribute__ ((section (".ewram")))
#define PACKED   __attribute__ ((packed))
#define INFO_COLOR   *(u8*)0x027FFC82
#define INFO_BDAY_MONTH   *(u8*)0x027FFC83
#define INFO_BDAY_DAY   *(u8*)0x027FFC84
#define INFO_ALARM_HOUR   *(u8*)0x027FFCD2
#define INFO_ALARM_MINUTE   *(u8*)0x027FFCD3
#define INFO_NAME   *(u8*)0x027FFC86
#define INFO_NAME_LENGTH   *(u8*)0x027FFC9A
#define INFO_MESSAGE   *(u8*)0x027FFC9C
#define INFO_MESSAGE_LENGTH   *(u8*)0x027FFCD0
#define INFO_LANGUAGE   *(u8*)(0x027FFCE4)
#define PA_LidClosed()   (IPC->buttons>>7)
 Vérifie si la DS est fermée. Renvoie 0 si ouverte, 1 si fermée

Fonctions

void PA_WaitForVBL (void)
 Attendre le vbl...
void PA_jpeg_GetImageSize (char *name, int *width, int *height)
void PA_jpeg_BltImage (char *name, u16 *vram, int output_width, int output_height)
void PA_Init (void)
 Initialise la lib... Doit etre placé au début de main()
void PA_SetVideoMode (bool screen, u8 mode)
 Changer de mode video... A utiliser avec précaution
void PA_UpdateUserInfo (void)
 Met à jour les infos sur l'utilisateur... C'est fait automatiquement dans PA_Init. On peut ensuite récupérer toutes les infos avec PA_UserInfo.Color (couleur favorite), .BdayDay, .BdayMonth, .AlarmHour, .AlarmMinute, .Name, .NameLength, .Message, .MessageLength
void PA_UpdateRTC (void)
 Met à jour les infos sur l'heure et la date. C'est automatiquement mis à jour dans le VBL PA... On récupère les infos avec PA_RTC.Minutes, .Hour, .Seconds, .Day, .Month, et .Year
void PA_LoadSplash (void)
 Affiche un splash screen PlayerAdvance... C'est toujours sympa de remercier ;)
void PA_NeoSplash (void)
void PA_SwitchScreens (void)
void PA_InitCPUMeter ()
 BROKEN ----- Initialise le compteur CPU. La valeur (en ) est sauvée dans PA_CPU (et le plus gros dans PA_MaxCPU)
bool PA_CheckLid (void)
 Vérifie si la DS est fermée. Si fermée, ca met en pause la DS et renvoie 1.
void PA_Splash (void *tiles0, void *map0, void *tiles1, void *map1, s16 color0, s16 color1, s16 time)
 Fonction Splash screen ! Permet de charger son propre splash screen...
void PA_Nothing (void)

Variables

bool PA_Screen
RTC PA_RTC
const unsigned short bitmap [768]
u32 * Blank
const s16 PA_SIN [512]
infos PA_UserInfo


Description détaillée

Contains prototypes and macros... for the arm9.

Contains prototypes and macros... for the arm9


Généré le Fri Oct 28 23:18:13 2005 pour PA_lib par  doxygen 1.3.9.1
@ 1.1.1.1 log @Initial import of PalibDoc, begin on PAlib0.64b @ text @@