
#include <nitro/ctrdg.h>
void CTRDG_VerifyAgbFlashAsync(u16 sec_num, u8* src, u32 size, CTRDG_TASK_FUNC callback);
| sec_num | Destination flash sector number. |
| src | Source address. |
| size | Verify size in bytes. |
| callback | Callback function called when verify processing ends. |
None.
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.
It returns zero 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 in advance.
Note: The cartridge bus is locked for a set period by this function.
Note that the AGB backup device cannot be accessed normally with IS-NITRO-DEBUGGER version 1.66 or earlier.
/* callback function */ typedef u32 (*CTRDG_TASK_FUNC) (struct CTRDGiTaskInfo_tag *);
CTRDG_VerifyAgbFlash
CTRDG_WriteAndVerifyAgbFlash
CTRDG_WriteAndVerifyAgbFlashAsync
2006/05/25 Added a description that the AGB backup device cannot be accessed normally with IS-NITRO-DEBUGGER version 1.66 or earlier.
2006/04/07 Initial version.
CONFIDENTIAL