Zephyr Project API 4.2.99
A Scalable Open Source RTOS
|
Go to the source code of this file.
Functions | |
void | stm32_sdmmc_get_card_cid (const struct device *dev, uint32_t cid[4]) |
Get the CID (Card Identification) information from the SD/MMC card. | |
Get the CID (Card Identification) information from the SD/MMC card.
This function copies the Card Identification Data (CID) from the internal HAL SD/MMC struct populated during device initialization. It does not check the current presence or status of the card. If the card was removed after initialization (or initialization failed), the returned CID may be stale or all zeroes.
It is the caller's responsibility to verify that the card is present and initialized (e.g., by calling disk_access_status) before invoking this function.
dev | Pointer to the device structure representing the SD/MMC card. |
cid | Pointer to an array where the CID data will be stored. |