|
Zephyr Project API 3.7.0
A Scalable Open Source RTOS
|
Public API for SD subsystem. More...
Go to the source code of this file.
Data Structures | |
| struct | sdio_func |
| SDIO function definition. More... | |
| struct | sd_card |
| SD card structure. More... | |
Enumerations | |
| enum | card_status { CARD_UNINITIALIZED = 0 , CARD_ERROR = 1 , CARD_INITIALIZED = 2 } |
| card status. More... | |
| enum | card_type { CARD_SDMMC = 0 , CARD_SDIO = 1 , CARD_COMBO = 2 , CARD_MMC = 3 } |
| card type. More... | |
Functions | |
| int | sd_init (const struct device *sdhc_dev, struct sd_card *card) |
| Initialize an SD device. | |
| bool | sd_is_card_present (const struct device *sdhc_dev) |
| checks to see if card is present in the SD slot | |
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 |