28#if (HAL_USE_SDC == TRUE) || defined(__DOXYGEN__) 
   47#if !defined(PLATFORM_SDC_USE_SDC1) || defined(__DOXYGEN__) 
   48#define PLATFORM_SDC_USE_SDC1                  FALSE 
   90#define _sdc_driver_methods                                                 \ 
   91  _mmcsd_block_device_methods 
 
  142#if (PLATFORM_SDC_USE_SDC1 == TRUE) && !defined(__DOXYGEN__) 
  164                            uint8_t cmd, uint32_t argument);
 
  166                    uint8_t *buf, uint32_t n);
 
  168                     const uint8_t *buf, uint32_t n);
 
#define _mmcsd_block_device_data
MMCSDBlockDevice specific data.
 
#define MMCSD_BLOCK_SIZE
Fixed block size for MMC/SD block devices.
 
bool sdc_lld_is_write_protected(SDCDriver *sdcp)
 
void sdc_lld_set_data_clk(SDCDriver *sdcp, sdcbusclk_t clk)
Sets the SDIO clock to data mode (25MHz or less).
 
bool sdc_lld_sync(SDCDriver *sdcp)
Waits for card idle condition.
 
void sdc_lld_send_cmd_none(SDCDriver *sdcp, uint8_t cmd, uint32_t arg)
Sends an SDIO command with no response expected.
 
void sdc_lld_stop_clk(SDCDriver *sdcp)
Stops the SDIO clock.
 
sdcbusmode_t
Type of SDIO bus mode.
 
bool sdc_lld_read(SDCDriver *sdcp, uint32_t startblk, uint8_t *buf, uint32_t n)
Reads one or more blocks.
 
void sdc_lld_stop(SDCDriver *sdcp)
Deactivates the SDC peripheral.
 
void sdc_lld_start(SDCDriver *sdcp)
Configures and activates the SDC peripheral.
 
bool sdc_lld_read_special(SDCDriver *sdcp, uint8_t *buf, size_t bytes, uint8_t cmd, uint32_t argument)
 
SDCDriver SDCD1
SDCD1 driver identifier.
 
bool sdc_lld_write(SDCDriver *sdcp, uint32_t startblk, const uint8_t *buf, uint32_t n)
Writes one or more blocks.
 
uint32_t sdcmode_t
Type of card flags.
 
bool sdc_lld_send_cmd_long_crc(SDCDriver *sdcp, uint8_t cmd, uint32_t arg, uint32_t *resp)
Sends an SDIO command with a long response expected and CRC.
 
bool sdc_lld_send_cmd_short_crc(SDCDriver *sdcp, uint8_t cmd, uint32_t arg, uint32_t *resp)
Sends an SDIO command with a short response expected and CRC.
 
sdcbusclk_t
Max supported clock.
 
void sdc_lld_start_clk(SDCDriver *sdcp)
Starts the SDIO clock and sets it to init mode (400kHz or less).
 
void sdc_lld_set_bus_mode(SDCDriver *sdcp, sdcbusmode_t mode)
Switches the bus to 4 bits mode.
 
void sdc_lld_init(void)
Low level SDC driver initialization.
 
bool sdc_lld_send_cmd_short(SDCDriver *sdcp, uint8_t cmd, uint32_t arg, uint32_t *resp)
Sends an SDIO command with a short response expected.
 
bool sdc_lld_is_card_inserted(SDCDriver *sdcp)
 
#define _sdc_driver_methods
SDCDriver specific methods.
 
uint32_t sdcflags_t
SDC Driver condition flags type.
 
Driver configuration structure.
 
sdcbusmode_t bus_width
Bus width.
 
Structure representing an SDC driver.
 
sdcmode_t cardmode
Various flags regarding the mounted card.
 
_mmcsd_block_device_data const SDCConfig * config
Current configuration data.
 
uint8_t buf[MMCSD_BLOCK_SIZE]
Buffer for internal operations.
 
const struct SDCDriverVMT * vmt
Virtual Methods Table.
 
sdcflags_t errors
Errors flags.
 
SDCDriver virtual methods table.