# CARD Module (CARD)

### Initialization

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

### Common

CARD_IsEnabled | Checks the state to see whether access to NITRO-CARD is permitted.
CARD_Enable | Changes the state, enabling or disabling access to NITRO-CARD.
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.

### 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 | 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.
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.

### Backup FRAM Device

CARD_IsBackupFram | Determines whether the specified backup device is FRAM.
CARD_ReadFram | Reads data from an FRAM device.
CARD_ReadFramAsync | Asynchronously reads data from the FRAM device.
CARD_WriteFram | Writes data to the FRAM device.
CARD_WriteFramAsync | Writes data asynchronously to an FRAM device.
CARD_VerifyFram | Compares and verifies data in an FRAM device.
CARD_VerifyFramAsync | Asynchronously compares and verifies data in an FRAM device.
CARD_WriteAndVerifyFram | Writes to, compares, and verifies data in an FRAM device.
CARD_WriteAndVerifyFramAsync | Writes data to an FRAM device and then compares and verifies the data asynchronously.

### 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_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 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.

### Structure

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

CONFIDENTIAL