57bool read(uint32_t lba, uint8_t *dst);
67typedef void (*
BlockFn)(
const uint8_t *block,
void *ctx);
91bool stream(uint32_t lba, uint32_t n, uint8_t *buf0, uint8_t *buf1,
BlockFn fn,
void *ctx);
The SD card's SPI-mode block driver (CHSd).
Definition SdSpi.h:34
bool init()
Wakes the card and identifies it (SD v1, SDSC v2, SDHC/SDXC).
bool read(uint32_t lba, uint8_t *dst)
Reads one 512-byte block (CMD17), polled at 12 MHz.
bool stream(uint32_t lba, uint32_t n, uint8_t *buf0, uint8_t *buf1, BlockFn fn, void *ctx)
Reads n consecutive blocks with one multi-block read (CMD18), handing each to fn while the next one a...
void(* BlockFn)(const uint8_t *block, void *ctx)
What stream() calls with each block, in order.
Definition SdSpi.h:67