CARD Module (CARD) API Function List

Initialization

CARD_Init Initializes a module.
CARD_IsAvailable Determines whether or not a module is initialized.

Common

CARD_GetResultCode Obtains the result of the last processed function.
CARD_GetThreadPriority Obtains the priority level of the CARD asynchronous process thread.
CARD_SetThreadPriority Sets the priority level of the CARD asynchronous process thread.
CARD_GetRomHeader Obtains the ROM header information on the DS CARD that is actually inserted.

Backup: General

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 Obtains the type of the specified backup device.
CARD_GetBackupTotalSize Obtains the total size of the specified backup device.
CARD_GetBackupSectorSize Obtains the sector size of the specified backup device.
CARD_GetBackupPageSize Obtains 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.

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 in a FLASH device.
CARD_WriteAndVerifyFlash Writes data to a FLASH device and then compares and verifies the data.
CARD_WriteAndVerifyFlashAsync Writes data asynchronously to a FLASH device and then compares and verifies the data.

ROM Access

CARD_GetRomRegionFAT Obtains FAT region information from the ROM header.
CARD_GetRomRegionFNT Obtains 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_ReadRomID Gets the DS CARD ID from a DS CARD.
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.

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 DS 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 the NitroROM format based on FNT and FAT information.