sdhc_state_t Struct Reference

SD Card driver context. More...

Detailed Description

SD Card driver context.

Definition at line 41 of file sdhc.h.

#include <sdhc.h>

Data Fields

Sdhc * dev
 SDHC instance

 
gpio_t cd
 Card detect pin

 
gpio_t wp
 Write Protect pin

 
mutex_t lock
 Ensure thread-safe access

 
mutex_t sync
 ISR mutex

 
uint32_t sectors
 Capacity in bytes

 
uint32_t clock
 Accepted Cloc Rate in Hz

 
uint16_t rca
 Relative Card Address

 
uint16_t error
 Last error state

 
uint8_t type
 Type of Card

 
uint8_t version
 Version of Card

 
uint8_t bus_width
 Acceptable Bus Width (1 or 4)
 
bool high_speed
 Turbo mode

 
bool need_init
 Card installed but not initialized if true.
 

The documentation for this struct was generated from the following file: