system.h

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.


列挙型

Backlight level settings.

Note, these are only available on DS Lite.

enum DISP_BITS

LCD Status register bitdefines.

列挙型の値:
DISP_IN_HBLANK 

The display currently in a vertical blank.

DISP_YTRIGGERED 

The display currently in a horizontal blank.

DISP_VBLANK_IRQ 

Current scanline and DISP_Y match.

DISP_HBLANK_IRQ 

Interrupt on vertical blank.

DISP_YTRIGGER_IRQ 

Interrupt on horizontal blank.

enum PM_Bits

Power Management control bits.

列挙型の値:
PM_SOUND_AMP 

Power the sound hardware (needed to hear stuff in GBA mode too).

PM_SOUND_MUTE 

Mute the main speakers, headphone output will still work.

PM_BACKLIGHT_BOTTOM 

Enable the top backlight if set.

PM_BACKLIGHT_TOP 

Enable the bottom backlight if set.

PM_SYSTEM_PWR 

Turn the power *off* if set.

POWER_LCD 

Controls the power for both LCD screens.

POWER_2D_A 

Controls the power for the main 2D core.

POWER_MATRIX 

Controls the power for the 3D matrix.

POWER_3D_CORE 

Controls the power for the main 3D core.

POWER_2D_B 

Controls the power for the sub 2D core.

POWER_SWAP_LCDS 

Controls which screen should use the main core.

POWER_ALL_2D 

power just 2D hardware

POWER_ALL 

power everything

 全て クラス ファイル 関数 変数 型定義 列挙型 列挙型の値 マクロ定義
libndsに対してMon Apr 26 23:39:50 2010に生成されました。  doxygen 1.6.3