Game Pak (CTRDG) API function list


Initialization

CTRDG_Init Initializes the Game Pak library.

Removal Detection

CTRDG_IsExisting Checks whether a Game Pak is inserted.
CTRDG_IsPulledOut Detects a Game Pak removal.
CTRDG_SetPulledOutCallback Sets the Game Pak removal callback.
CTRDG_TerminateForPulledOut Stops the ARM7 processor when a Game Pak removal is detected.
CTRDG_IsAgbCartridgePulledOut Detects AGB cartridge removal.
CTRDG_IsOptionCartridgePulledOut Detects optional cartridge removal.

Game Pak Classification

CTRDG_IsAgbCartridge Returns a BOOLEAN value to indicate if an AGB Game Pak is present.
CTRDG_IsOptionCartridge Returns a BOOLEAN value to indicate if an Option Pak with peripherals is installed.
CTRDG_IsBitID Returns whether the peripheral device identified by the bit ID is mounted in the cartridge.
CTRDG_IsNumberID Returns whether the peripheral device identified by the number ID is mounted in the cartridge.

AGB Cartridge Information

CTRDG_GetAgbMakerCode Returns the manufacturer code of AGB cartridge.
CTRDG_GetAgbGameCode Returns the game code (initial code) of AGB cartridge.

Data Transfer

CTRDG_DmaCopy* Transfers data using DMA.
CTRDG_CpuCopy* Transfers data using the CPU.
CTRDG_Read* Reads data from the Game Pak area.
CTRDG_Write* Writes data to the Game Pak area.