#include <nitro/ctrdg.h>
void CTRDG_ReadAgbFlashAsync(u16 sec_num, u32 offset, u8* dst, u32 size, CTRDG_TASK_FUNC callback);
| sec_num | Represents the target flash sector number |
| offset | Represents the offset within the sector in bytes |
| dst | Represents the address of the work area to store data that was read |
| size | Represents the size of data read in bytes |
| callback | Represents the callback function called after read processing ends |
None.
This function reads data of the size given by size asynchronously to the address given by dst from the address starting at offset inside sec_num.
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 *);
04/07/2006 Initial version.
CONFIDENTIAL