CTRDG_VerifyAgbFlashAsync

C Specification

#include <nitro/ctrdg.h>
void CTRDG_VerifyAgbFlashAsync(u16 sec_num, u8* src, u32 size, CTRDG_TASK_FUNC callback);
  

Arguments

sec_num Represents the target flash sector number
src Represents the source write address
size Represents the verify size in bytes
callback Represents the callback function called after verify processing ends

Return Values

None.

Description

This function asynchronously verifies data of the size in size beginning from the address given by src against the data in sec_num.
You can find out whether the verify process succeeded by accessing the result member of the CTRDGTaskInfo structure used as an argument to the callback function that returns after this routine is called.
This function returns 0 if the verify process succeeded, non-zero if the process failed, and the error address on the device side if the verify process resulted in an error.

The access cycle setting is created in the function and does not need to be set beforehand.

Note: The cartridge bus is locked for a set period by this function.

In addition, the AGB backup device cannot be accessed normally by the IS-NITRO-DEBUGGER.
However, be sure to check operations using an actual DS handheld unit since normal access is possible with actual DS units.
(This will be fixed in a future version of IS-NITRO-DEBUGGER.)

/*  callback  function  */
typedef u32 (*CTRDG_TASK_FUNC) (struct CTRDGiTaskInfo_tag *);

See Also

CTRDG_VerifyAgbFlash, CTRDG_WriteAndVerifyAgbFlash, CTRDG_WriteAndVerifyAgbFlashAsync

Revision History

04/07/2006 Initial version.

CONFIDENTIAL