11 #ifndef CTR_SD_INTERFACE_H_ 12 #define CTR_SD_INTERFACE_H_ 15 #include "sdmmc/sdmmc.h" 57 int ctr_sd_interface_read(
void *io,
void *buffer,
size_t buffer_size, uint64_t position,
size_t count);
118 #endif//CTR_SD_INTERFACE_H_ io interface object for accessing the SD card.
Definition: ctr_sd_interface.h:23
uint64_t ctr_sd_interface_disk_size(void *io)
Returns the size of the underlying disk for the given io interface.
size_t ctr_sd_interface_sector_size(void *io)
Returns the size of the sectors used by the io interface, which is 512 bytes for SD cards...
int ctr_sd_interface_read_sector(void *io, void *buffer, size_t buffer_size, size_t sector, size_t count)
Reads sectors from the given io interface.
int ctr_sd_interface_initialize(ctr_sd_interface *io)
Initialize the given SD io interface object.
int ctr_sd_interface_write_sector(void *io, const void *buffer, size_t buffer_size, size_t sectorn)
Writes sectors from the given io interface.
int ctr_sd_interface_write(void *io, const void *buffer, size_t buffer_size, uint64_t position)
Writes bytes to the given io interface.
void ctr_sd_interface_destroy(ctr_sd_interface *io)
Destroys the given SD io interface object.
Virtual table for io interface dispatching.
Definition: ctr_io_interface.h:89
int ctr_sd_interface_read(void *io, void *buffer, size_t buffer_size, uint64_t position, size_t count)
Reads bytes from the given io interface.