27 #if (HAL_USE_SDC == TRUE) || defined(__DOXYGEN__) 40 #if (PLATFORM_SDC_USE_SDC1 == TRUE) || defined(__DOXYGEN__) 67 #if PLATFORM_SDC_USE_SDC1 == TRUE 273 uint8_t *buf, uint32_t n) {
298 const uint8_t *buf, uint32_t n) {
bool sdc_lld_sync(SDCDriver *sdcp)
Waits for card idle condition.
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.
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.
void sdc_lld_stop_clk(SDCDriver *sdcp)
Stops the SDIO clock.
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.
void sdc_lld_start(SDCDriver *sdcp)
Configures and activates the SDC peripheral.
SDCDriver SDCD1
SDCD1 driver identifier.
void sdc_lld_init(void)
Low level SDC driver initialization.
void sdcObjectInit(SDCDriver *sdcp)
Initializes the standard part of a SDCDriver structure.
void sdc_lld_set_data_clk(SDCDriver *sdcp, sdcbusclk_t clk)
Sets the SDIO clock to data mode (25MHz or less).
void sdc_lld_send_cmd_none(SDCDriver *sdcp, uint8_t cmd, uint32_t arg)
Sends an SDIO command with no response expected.
sdcbusclk_t
Max supported clock.
bool sdc_lld_write(SDCDriver *sdcp, uint32_t startblk, const uint8_t *buf, uint32_t n)
Writes one or more blocks.
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.
Structure representing an SDC driver.
#define osalDbgAssert(c, remark)
Condition assertion.
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_stop(SDCDriver *sdcp)
Deactivates the SDC peripheral.