Skip to content

Struct SYN_SD

ClassList > SYN_SD

SD card driver handle (caller-owned, zero heap allocation). More...

  • #include <syn_sd.h>

Public Attributes

Type Name
SYN_GPIO_Pin cs_pin
bool initialized
uint32_t sector_count
uint8_t spi_bus
SYN_SD_Type type

Detailed Description

Allocate statically and pass to syn_sd_init(). Treat as opaque after init.

Public Attributes Documentation

variable cs_pin

SYN_GPIO_Pin SYN_SD::cs_pin;

Chip-select GPIO pin


variable initialized

bool SYN_SD::initialized;

true after a successful syn_sd_init()


variable sector_count

uint32_t SYN_SD::sector_count;

Total 512-byte sectors (from CSD)


variable spi_bus

uint8_t SYN_SD::spi_bus;

SPI bus index (syn_port_spi_* argument)


variable type

SYN_SD_Type SYN_SD::type;

Detected card type (SDSC or SDHC)



The documentation for this class was generated from the following file src/syntropic/drivers/syn_sd.h