| 
    Zephyr Project API
    3.3.0
    
   A Scalable Open Source RTOS 
   | 
 
Public API for SD subsystem. More...
Go to the source code of this file.
Data Structures | |
| struct | sd_card | 
| SD card structure.  More... | |
Enumerations | |
| enum | card_status { CARD_UNINITIALIZED = 0 , CARD_ERROR = 1 , CARD_INITIALIZED = 2 } | 
| card status. Used interally by subsystem.  More... | |
| enum | card_type { CARD_SDMMC = 0 , CARD_SDIO = 1 , CARD_COMBO = 2 , CARD_MMC = 3 } | 
| card type. Used interally by subsystem.  More... | |
Functions | |
| int | sd_init (const struct device *sdhc_dev, struct sd_card *card) | 
| Initialize an SD device.  More... | |
| bool | sd_is_card_present (const struct device *sdhc_dev) | 
| checks to see if card is present in the SD slot  More... | |
Public API for SD subsystem.
| enum card_status | 
| enum card_type | 
Initialize an SD device.
Initializes an SD device to use with the subsystem. After this call, only the SD card structure is required to access the card.
| sdhc_dev | SD host controller device for this card | 
| card | SD card structure for this card | 
| 0 | card was initialized | 
| -ETIMEDOUT | card initialization timed out | 
| -EBUSY | card is busy | 
| -EIO | IO error while starting card |