libctr9
Nintendo 3DS ARM9 library
ctr_sdmmc_implementation.h File Reference
#include "ctr_sdmmc_implementation.c"

Go to the source code of this file.

Typedefs

typedef int(* sdmmc_readsectors) (uint32_t sector_no, uint32_t numsectors, uint8_t *out)
 Pointer to an sdmmc function for reading sectors. More...
 
typedef int(* sdmmc_writesectors) (uint32_t sector_no, uint32_t numsectors, const uint8_t *in)
 Pointer to an sdmmc function for writing sectors. More...
 

Typedef Documentation

typedef int(* sdmmc_readsectors) (uint32_t sector_no, uint32_t numsectors, uint8_t *out)

Pointer to an sdmmc function for reading sectors.

Pointer to sdmmc function for reading sectors. A sector is defined by sdmmc to be 0x200 or 512 bytes.

Parameters
[in]sector_noSector to read.
[in]numsectorsThe number of sectors to read.
[out]outPointer to buffer to store read data. The buffer must be able to hold the number of sectors requested.
Returns
0 on success, anything else indicates a failure.
typedef int(* sdmmc_writesectors) (uint32_t sector_no, uint32_t numsectors, const uint8_t *in)

Pointer to an sdmmc function for writing sectors.

Pointer to sdmmc function for writing sectors. A sector is defined by sdmmc to be 0x200 or 512 bytes.

Parameters
[in]sector_noSector to write.
[in]numsectorsThe number of sectors to write.
[out]inPointer to buffer with data to write. The buffer must contain the specified number of sectors to write to prevent a buffer overflow.
Returns
0 on success, anything else indicates a failure.