Struct 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¶
Chip-select GPIO pin
variable initialized¶
true after a successful syn_sd_init()
variable sector_count¶
Total 512-byte sectors (from CSD)
variable spi_bus¶
SPI bus index (syn_port_spi_* argument)
variable type¶
Detected card type (SDSC or SDHC)
The documentation for this class was generated from the following file src/syntropic/drivers/syn_sd.h