Lines Matching full:card

24  * @brief card status. Used internally by subsystem.
27 CARD_UNINITIALIZED = 0, /*!< card has not been initialized */
28 CARD_ERROR = 1, /*!< card state is error */
29 CARD_INITIALIZED = 2, /*!< card is in valid state */
33 * @brief card type. Used internally by subsystem.
36 CARD_SDMMC = 0, /*!< SD memory card */
37 CARD_SDIO = 1, /*!< SD I/O card */
38 CARD_COMBO = 2, /*!< SD memory and I/O card */
39 CARD_MMC = 3, /*!< MMC memory card */
50 struct sd_card *card; /*!< Card this function is present on */ member
57 * @brief SD card structure
64 const struct device *sdhc; /*!< SD host controller for card */
66 enum sd_voltage card_voltage; /*!< Card signal voltage */
67 struct k_mutex lock; /*!< card mutex */
69 uint32_t ocr; /*!< Raw card OCR content */
72 uint16_t relative_addr; /*!< Card relative address */
73 uint32_t block_count; /*!< Number of blocks in SD card */
76 uint8_t card_speed; /*!< Card timing mode */
77 enum card_status status; /*!< Card status */
78 enum card_type type; /*!< Card type */
79 uint16_t flags; /*!< Card flags */
82 struct sdio_func func0; /*!< Function 0 common card data */
90 __aligned(MAX(4, CONFIG_SDHC_BUFFER_ALIGNMENT)); /* Card internal buffer */
97 * only the SD card structure is required to access the card.
98 * @param sdhc_dev SD host controller device for this card
99 * @param card SD card structure for this card
100 * @retval 0 card was initialized
101 * @retval -ETIMEDOUT: card initialization timed out
102 * @retval -EBUSY: card is busy
103 * @retval -EIO: IO error while starting card
105 int sd_init(const struct device *sdhc_dev, struct sd_card *card);
108 * @brief checks to see if card is present in the SD slot
110 * @param sdhc_dev SD host controller to check for card presence on
111 * @retval true card is present
112 * @retval false card is not present