CTRDG_Read

# CTRDG_ReadAgbFlashAsync

## C Specification

      #include <nitro/ctrdg.h>

      void CTRDG_ReadAgbFlashAsync(u16 sec_num, u32 offset, u8* dst, u32 size, CTRDG_TASK_FUNC callback);

## Arguments

sec_num | The destination flash sector number.
offset | The offset within the sector in bytes.
dst | The address of the work area to store data that was read.
size | The size of data read in bytes.
callback | The callback function called when read processing ends.

## Return Values

None.

## Description

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.

Note that the AGB backup device cannot be accessed normally with version IS-NITRO-DEBUGGER 1.66 or earlier.

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

## See Also

`CTRDG_ReadAgbFlash
`

## Revision History

05/25/2006 Added a description that the AGB backup device cannot be accessed normally with version IS-NITRO-DEBUGGER 1.66 or earlier.
04/07/2006 Initial version.

CONFIDENTIAL