libnds
Functions
arm9/card.h File Reference

Slot-1 and Slot-2 ARM7 read functions. More...

#include <stdbool.h>
#include <stddef.h>

Functions

bool cardReadArm7 (void *dest, size_t offset, size_t size, uint32_t flags)
 Function that asks the ARM7 to read from the slot-1 using card commands. More...
 

Detailed Description

Slot-1 and Slot-2 ARM7 read functions.

Function Documentation

◆ cardReadArm7()

bool cardReadArm7 ( void *  dest,
size_t  offset,
size_t  size,
uint32_t  flags 
)

Function that asks the ARM7 to read from the slot-1 using card commands.

Parameters
destDestination buffer.
offsetNDS ROM offset to read.
sizeSize in bytes to read.
flagsThe read flags.
Returns
On error it returns true. On success, it returns false.