LCOV - code coverage report
Current view: top level - zephyr/drivers/disk - sdmmc_stm32.h Coverage Total Hit
Test: new.info Lines: 50.0 % 2 1
Test Date: 2025-09-05 16:43:28

            Line data    Source code
       1            0 : /*
       2              :  * Copyright (c) 2025 The Zephyr Contributors.
       3              :  *
       4              :  * SPDX-License-Identifier: Apache-2.0
       5              :  */
       6              : 
       7              : #ifndef ZEPHYR_INCLUDE_DRIVERS_DISK_SDMMC_STM32_H_
       8              : #define ZEPHYR_INCLUDE_DRIVERS_DISK_SDMMC_STM32_H_
       9              : 
      10              : #include <zephyr/device.h>
      11              : #include <stdint.h>
      12              : 
      13              : /**
      14              :  * @brief Get the CID (Card Identification) information from the SD/MMC card.
      15              :  *
      16              :  * This function copies the Card Identification Data (CID) from the internal
      17              :  * HAL SD/MMC struct populated during device initialization. It does not check
      18              :  * the current presence or status of the card. If the card was removed after
      19              :  * initialization (or initialization failed), the returned CID may be stale or
      20              :  * all zeroes.
      21              :  *
      22              :  * It is the caller's responsibility to verify that the card is present and
      23              :  * initialized (e.g., by calling @ref disk_access_status) before invoking this
      24              :  * function.
      25              :  *
      26              :  * @param dev Pointer to the device structure representing the SD/MMC card.
      27              :  * @param cid Pointer to an array where the CID data will be stored.
      28              :  */
      29            1 : void stm32_sdmmc_get_card_cid(const struct device *dev, uint32_t cid[4]);
      30              : 
      31              : #endif /* ZEPHYR_INCLUDE_DRIVERS_DISK_SDMMC_STM32_H_ */
        

Generated by: LCOV version 2.0-1