libctr9
Nintendo 3DS ARM9 library
ctr_fatfs.h File Reference

Go to the source code of this file.

Functions

int ctr_fatfs_initialize (ctr_nand_interface *nand_io, ctr_nand_crypto_interface *ctr_io, ctr_nand_crypto_interface *twl_io, ctr_sd_interface *sd_io)
 Initializes the entire IO subsystem. More...
 

Function Documentation

int ctr_fatfs_initialize ( ctr_nand_interface nand_io,
ctr_nand_crypto_interface ctr_io,
ctr_nand_crypto_interface twl_io,
ctr_sd_interface sd_io 
)

Initializes the entire IO subsystem.

This is a helper function that takes in pointers to all necessary io interfaces to hook up to the fatfs layer, and initializes them and prepares fatfs for usage.

Parameters
[in,out]nand_ioNAND io interface to initialize. May be used independetly after initialization so long as it is not being simultaneously used by fatfs.
[in,out]ctr_ioCTRNAND io crypto interface to initialize. May be used independetly after initialization so long as it is not being simultaneously used by fatfs.
[in,out]twl_ioTWL io crypto interface to initialize. May be used independetly after initialization so long as it is not being simultaneously used by fatfs.
[in,out]sd_ioSD card io interface to initialize. May be used independetly after initialization so long as it is not being simultaneously used by fatfs.
Postcondition
All structures passed in are initialized and the fatfs subsystem has been prepared for usage.