#include "ctr_io_implementation.c"
Go to the source code of this file.
typedef int(* ctr_io_implementation_read_sector_f) (void *io, void *buffer, size_t buffer_size, size_t sector, size_t count) |
Pointer to an io interface function for reading sectors.
- Parameters
-
[out] | buffer | Pointer to the buffer. |
[in] | buffer_size | The size of the buffer in bytes. |
[in] | sector | Sector position in the io interface to read from. |
[in] | count | The number of sectors to read. |
[in] | read | Pointer to sdmmc function to read sectors. |
- Returns
- 0 upon success, anything else means an error.
typedef int(* ctr_io_implementation_write_sector_f) (void *io, const void *buffer, size_t buffer_size, size_t sector) |
Pointer to an io interface function for writing to sectors.
- Parameters
-
[in] | buffer | Pointer to the buffer. |
[in] | buffer_size | The size of the buffer, and the number of bytes to write. If the number is not a multiple of the sector size, this function will only write all the full sectors it can, ignoring the end of the buffer that doesn't fit a sector. |
[in] | sector | Sector Position in the io interface to write to. |
[in] | write | Pointer to sdmmc function to write sectors. |
- Returns
- 0 upon success, anything else means an error.