CTRDG_CpuCopy*


C Specification

#include <nitro/ctrdg.h>

    BOOL CTRDG_CpuCopy8( 
        const void*     src, 
              void*     dest, 
              u32       size );

    BOOL CTRDG_CpuCopy16( 
        const void*     src, 
              void*     dest, 
              u32       size );

    BOOL CTRDG_CpuCopy32( 
        const void*     src, 
              void*     dest, 
              u32       size );

Description

These functions transfer data that is on the Game Pak using the CPU.

CTRDG_CpuCopy8 transfers data eight bits at a time.
CTRDG_CpuCopy16 transfers data 16 bits at a time.
CTRDG_CpuCopy32 transfers data 32 bits at a time.

These functions do not set the access cycle. The access cycle must be set in advance.

Arguments

src The transfer source address.
dest The transfer destination address.
size The transfer size (in bytes).

Return Values

Returns a value of TRUE if the transfer succeeds. Returns a value of FALSE when there is no Game Pak or if the transfer fails.

See Also

CTRDG_Init, CTRDG_DmaCopy*, CTRDG_Read*, CTRDG_Write*

Revision History

09/17/2004 Initial version