2022-06-05 08:37:21 -04:00
|
|
|
/*
|
|
|
|
* SPDX-FileCopyrightText: 2017-2022 Espressif Systems (Shanghai) CO LTD
|
|
|
|
*
|
|
|
|
* SPDX-License-Identifier: Apache-2.0
|
|
|
|
*/
|
2018-07-04 19:01:03 -04:00
|
|
|
|
2019-06-19 12:07:51 -04:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include "sdmmc_cmd.h"
|
2018-09-03 11:55:22 -04:00
|
|
|
#include "driver/sdmmc_defs.h"
|
2018-07-04 19:01:03 -04:00
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
extern "C" {
|
|
|
|
#endif
|
|
|
|
|
2022-06-05 08:37:21 -04:00
|
|
|
/**
|
|
|
|
* @brief Enable/disable SD card status checking
|
|
|
|
*
|
|
|
|
* @param pdrv drive number
|
|
|
|
* @param enable mock ff_sdmmc_status function (return 0)
|
|
|
|
*/
|
|
|
|
void ff_sdmmc_set_disk_status_check(BYTE pdrv, bool enable);
|
|
|
|
|
2018-07-04 19:01:03 -04:00
|
|
|
/**
|
2019-06-19 12:07:51 -04:00
|
|
|
* Register SD/MMC diskio driver
|
2018-07-04 19:01:03 -04:00
|
|
|
*
|
|
|
|
* @param pdrv drive number
|
2019-06-19 12:07:51 -04:00
|
|
|
* @param card pointer to sdmmc_card_t structure describing a card; card should be initialized before calling f_mount.
|
2018-07-04 19:01:03 -04:00
|
|
|
*/
|
2019-06-19 12:07:51 -04:00
|
|
|
void ff_diskio_register_sdmmc(unsigned char pdrv, sdmmc_card_t* card);
|
2018-07-04 19:01:03 -04:00
|
|
|
|
2018-09-03 11:55:22 -04:00
|
|
|
/**
|
|
|
|
* @brief Get the driver number corresponding to a card
|
|
|
|
*
|
|
|
|
* @param card The card to get its driver
|
|
|
|
* @return Driver number to the card
|
|
|
|
*/
|
|
|
|
BYTE ff_diskio_get_pdrv_card(const sdmmc_card_t* card);
|
|
|
|
|
2018-07-04 19:01:03 -04:00
|
|
|
#ifdef __cplusplus
|
|
|
|
}
|
|
|
|
#endif
|