|
| static uint32_t | sd_be2le (uint32_t be) |
| |
| static void | sd_convert_data_endian (uint32_t *word, uint32_t word_count) |
| |
| static hpm_stat_t | sd_send_card_status (sd_card_t *card) |
| |
| static hpm_stat_t | sd_send_rca (sd_card_t *card) |
| |
| static hpm_stat_t | sd_send_csd (sd_card_t *card) |
| |
| static hpm_stat_t | sd_switch_function (sd_card_t *card, uint32_t mode, uint32_t group, uint32_t number) |
| |
| static void | sd_decode_scr (sd_card_t *card, const uint32_t *raw_scr) |
| |
| static hpm_stat_t | sd_send_scr (sd_card_t *card) |
| |
| static hpm_stat_t | sd_app_cmd_send_cond_op (const sd_card_t *card, sd_ocr_t ocr) |
| |
| static hpm_stat_t | sd_send_if_cond (const sd_card_t *card) |
| |
| static hpm_stat_t | sd_probe_bus_voltage (sd_card_t *card) |
| |
| static hpm_stat_t | sd_switch_voltage (const sd_card_t *card) |
| |
| static void | sd_decode_csd (sd_card_t *card, const uint32_t *raw_csd) |
| |
| static void | sd_decode_status (sd_card_t *card, uint32_t *raw_status) |
| |
| static hpm_stat_t | sd_set_bus_width (const sd_card_t *card, sdmmc_buswidth_t buswidth) |
| |
| static hpm_stat_t | sd_set_bus_timing (sd_card_t *card, sdmmc_speed_mode_t timing_mode) |
| |
| static hpm_stat_t | sd_check_card_parameters (const sd_card_t *card) |
| |
| static hpm_stat_t | sd_app_cmd_set_write_block_erase_count (const sd_card_t *card, uint32_t block_count) |
| |
| static hpm_stat_t | sd_error_recovery (const sd_card_t *card, hpm_stat_t last_error) |
| |
| static hpm_stat_t | sd_send_cmd (const sd_card_t *card, const sdmmchost_cmd_t *cmd) |
| |
| static hpm_stat_t | sd_transfer (const sd_card_t *card, const sdmmchost_xfer_t *content) |
| |
| static hpm_stat_t | sd_all_send_cid (sd_card_t *card) |
| |
| void | sd_card_deinit (sd_card_t *card) |
| | De-Initialize SD card. More...
|
| |
| hpm_stat_t | sd_host_init (sd_card_t *card) |
| | Initialize SD Host. More...
|
| |
| hpm_stat_t | sd_init (sd_card_t *card) |
| | Initialize SD device. More...
|
| |
| void | sd_deinit (const sd_card_t *card) |
| | De-Initialize SD device. More...
|
| |
| hpm_stat_t | sd_card_init (sd_card_t *card) |
| | Initialize SD card. More...
|
| |
| bool | sd_is_card_present (const sd_card_t *card) |
| | Check whether the SD card is present. More...
|
| |
| hpm_stat_t | sd_select_card (const sd_card_t *card, bool is_selected) |
| | Select/Deselect SD card. More...
|
| |
| hpm_stat_t | sd_read_status (sd_card_t *card) |
| | Read SD card status. More...
|
| |
| hpm_stat_t | sd_read_blocks (sd_card_t *card, uint8_t *buffer, uint32_t start_block, uint32_t block_count) |
| | Read data from specified SD block. More...
|
| |
| hpm_stat_t | sd_write_blocks (sd_card_t *card, const uint8_t *buffer, uint32_t start_block, uint32_t block_count) |
| | Write data to specified SD block. More...
|
| |
| static uint32_t | sd_calculate_erase_timeout (const sd_card_t *card, uint32_t start_block, uint32_t block_count) |
| | Calculate SD erase timeout value Refer to SD_Specification_Part1_Physical_Layer_Specification_Version4.20.pdf, section 4.14 for more details. More...
|
| |
| hpm_stat_t | sd_erase_blocks (sd_card_t *card, uint32_t start_block, uint32_t block_count) |
| | Erase specified SD ranges. More...
|
| |
| hpm_stat_t | sd_set_driver_strength (sd_card_t *card, sd_drive_strength_t driver_strength) |
| | Set the driver strength for SD card. More...
|
| |
| hpm_stat_t | sd_set_max_current (sd_card_t *card, sd_max_current_t max_current) |
| | Set the maximum current for SD card. More...
|
| |
| hpm_stat_t | sd_polling_card_status_busy (sd_card_t *card, uint32_t timeout_ms) |
| | Polling SD card status busy. More...
|
| |