CARD Module (CARD)

Initialization

CARD_Init Initializes the CARD module.
CARD_IsAvailable Determines whether the CARD module has been initialized.

Common

CARD_IsEnabled Determines whether the Game Card is accessible.
CARD_Enable Changes the state for Game Card accessibility.
CARD_GetResultCode Gets the result of the last processed function.
CARD_GetThreadPriority Gets the priority level of the CARD asynchronous process thread.
CARD_SetThreadPriority Sets the priority level of the CARD asynchronous process thread.
CARD_GetRomHeader Gets the information registered in the ROM of the Game Card inserted in the system.
CARD_IsExecutableOnNTR Determines from the ROM header information whether the program can run in NITRO mode.
CARD_IsExecutableOnTWL Determines from the ROM header information whether the program can run in TWL mode.
CARD_GetCacheFlushThreshold Gets the threshold value for switching the method used to invalidate the cache.
CARD_SetCacheFlushThreshold Sets the threshold value for switching the method used to invalidate the cache.
CARD_GetCacheFlushFlag Gets information as to whether the cache auto-invalidation process is enabled.
CARD_SetCacheFlushFlag Switches the cache auto-invalidation process.

General Backup

CARD_LockBackup Locks the access bus of the backup device.
CARD_UnlockBackup Unlocks the access bus of the backup device.
CARD_IdentifyBackup Specifies a backup device.
CARD_GetCurrentBackupType Gets the type of the specified backup device.
CARD_GetBackupTotalSize Gets the total size of the specified backup device.
CARD_GetBackupSectorSize Gets the sector size of the specified backup device.
CARD_GetBackupPageSize Gets the page size of the specified backup device.
CARD_TryWaitBackupAsync Determines whether the asynchronous process on the backup device has completed.
CARD_WaitBackupAsync Waits until the asynchronous process on the backup device completes.
CARD_CancelBackupAsync Requests cancellation of asynchronous processing for the backup device.

Backup: EEPROM device

CARD_IsBackupEeprom Determines whether or not the specified backup device is EEPROM.
CARD_ReadEeprom Reads data from an EEPROM device.
CARD_ReadEepromAsync Reads data asynchronously from an EEPROM device.
CARD_WriteEeprom Writes data to an EEPROM device.
CARD_WriteEepromAsync Writes data asynchronously to an EEPROM device.
CARD_VerifyEeprom Compares and verifies data in an EEPROM device.
CARD_VerifyEepromAsync Compares and verifies data asynchronously in an EEPROM device.
CARD_WriteAndVerifyEeprom Writes to and verifies data in an EEPROM device.
CARD_WriteAndVerifyEepromAsync Writes to and verifies data asynchronously in an EEPROM device.

Backup: FLASH Device

CARD_IsBackupFlash Determines whether the specified backup device is FLASH.
CARD_ReadFlash Reads data from a FLASH device.
CARD_ReadFlashAsync Reads data asynchronously from a FLASH device.
CARD_WriteFlash Writes data to a FLASH device.
CARD_WriteFlashAsync Writes data asynchronously to a FLASH device.
CARD_VerifyFlash Compares and verifies data in a FLASH device.
CARD_VerifyFlashAsync Compares and verifies data asynchronously in a FLASH device.
CARD_WriteAndVerifyFlash Writes data to a FLASH device and then compares and verifies the data.
CARD_WriteAndVerifyFlashAsync Writes data to a FLASH device and then compares and verifies the data asynchronously.
CARD_EraseFlashSector Deletes data in a FLASH device at the sector level.
CARD_EraseFlashSectorAsync Asynchronously deletes data in a FLASH device at the sector level.
CARD_ProgramFlash Writes data to an erased region in a FLASH device.
CARD_ProgramFlashAsync Writes data asynchronously to an erased region in a FLASH device.
CARD_ProgramAndVerifyFlash Writes data to an erased region in a FLASH device and makes a comparison check.
CARD_ProgramAndVerifyFlashAsync Writes data asynchronously to an erased region in a FLASH device and makes a comparison check.
CARD_WriteFlashSector Writes data to a FLASH device at the sector level.
CARD_WriteFlashSectorAsync Asynchronously writes data to a FLASH device at the sector level.
CARD_WriteAndVerifyFlashSector Writes data to a FLASH device at the sector level and makes a comparison check.
CARD_WriteAndVerifyFlashSectorAsync Asynchronously writes data to a FLASH device at the sector level and makes a comparison check.

ROM Access

CARD_GetRomRegionFAT Gets FAT region information from the ROM header.
CARD_GetRomRegionFNT Gets FNT region information from the ROM header
CARD_LockRom Locks the access bus of a device that has ROM.
CARD_UnlockRom Unlocks the access bus of a device that has ROM.
CARD_ReadRom Synchronously reads data from a ROM device.
CARD_ReadRomAsync Asynchronously reads data from a ROM device.
CARD_TryWaitRomAsync Determines whether or not an asynchronous process to a ROM device has completed.
CARD_WaitRomAsync Waits until an asynchronous process to a ROM device has completed.

Removal Detection

CARD_IsPulledOut Detects the removal of the card.
CARD_SetPulledOutCallback Sets the card removal callback.
CARD_TerminateForPulledOut Stops with ARM7 when the card removal is detected.
CARD_CheckPulledOut Immediately carries out Game Card removal detection from ARM9.

Constants

CARD_ROM_PAGE_SIZE The number of bytes of a DS CARD ROM device page.
CARDBackupType The type of backup device mounted in a Game Card.
CARDResult The result of the last access process the CARD function performed.
CARD_THREAD_PRIORITY_DEFAULT The initial value for the priority level of the CARD asynchronous process thread.

Structures

CARDRomRegion Shows FNT, FAT, and OVT information based on the ROM format.
CARDRomHeader Holds information about the ROM header.

CONFIDENTIAL