NDS hardware definitions. [詳細]
#include "ndstypes.h"
構成 | |
struct | tPERSONAL_DATA |
User's DS settings. [詳細] | |
struct | __argv |
argv structure [詳細] | |
struct | __bootstub |
struct | RTCtime |
マクロ定義 | |
#define | REG_DISPSTAT (*(vu16*)0x04000004) |
LCD status register. | |
#define | REG_VCOUNT (*(vu16*)0x4000006) |
Current display scanline. | |
#define | HALT_CR (*(vu16*)0x04000300) |
Halt control register. | |
#define | REG_POWERCNT *(vu16*)0x4000304 |
Power control register. | |
#define | PM_ARM9_DIRECT BIT(16) |
#define | PersonalData ((PERSONAL_DATA*)0x2FFFC80) |
Default location for the user's personal data (see PERSONAL_DATA). | |
#define | ARGV_MAGIC 0x5f617267 |
#define | __system_argv ((struct __argv *)0x02FFFE70) |
Default location for the libnds argv structure. | |
#define | BOOTSIG 0x62757473746F6F62ULL |
型定義 | |
typedef struct tPERSONAL_DATA | PERSONAL_DATA |
列挙型 | |
enum | DISP_BITS { DISP_IN_VBLANK = BIT(0), DISP_IN_HBLANK = BIT(1), DISP_YTRIGGERED = BIT(2), DISP_VBLANK_IRQ = BIT(3), DISP_HBLANK_IRQ = BIT(4), DISP_YTRIGGER_IRQ = BIT(5) } |
LCD Status register bitdefines. [詳細] | |
enum | PM_Bits { PM_SOUND_AMP = BIT(0), PM_SOUND_MUTE = BIT(1), PM_BACKLIGHT_BOTTOM = BIT(2), PM_BACKLIGHT_TOP = BIT(3), PM_SYSTEM_PWR = BIT(6), POWER_LCD = PM_ARM9_DIRECT | BIT(0), POWER_2D_A = PM_ARM9_DIRECT | BIT(1), POWER_MATRIX = PM_ARM9_DIRECT | BIT(2), POWER_3D_CORE = PM_ARM9_DIRECT | BIT(3), POWER_2D_B = PM_ARM9_DIRECT | BIT(9), POWER_SWAP_LCDS = PM_ARM9_DIRECT | BIT(15), POWER_ALL_2D = PM_ARM9_DIRECT | POWER_LCD | POWER_2D_A | POWER_2D_B, POWER_ALL = PM_ARM9_DIRECT | POWER_ALL_2D | POWER_3D_CORE | POWER_MATRIX } |
Power Management control bits. [詳細] | |
enum | BACKLIGHT_LEVELS { BACKLIGHT_LOW, BACKLIGHT_MED, BACKLIGHT_HIGH, BACKLIGHT_MAX } |
Backlight level settings. [詳細] | |
関数 | |
void | systemSleep (void) |
NDS hardware definitions.
These definitions are usually only touched during the initialization of the program.
#define HALT_CR (*(vu16*)0x04000300) |
Halt control register.
Writing 0x40 to HALT_CR activates GBA mode. HALT_CR can only be accessed via the BIOS.
#define REG_POWERCNT *(vu16*)0x4000304 |
Power control register.
This register controls what hardware should be turned on or off.
enum BACKLIGHT_LEVELS |
Backlight level settings.
Note, these are only available on DS Lite.
enum DISP_BITS |
LCD Status register bitdefines.
enum PM_Bits |
Power Management control bits.