HPM SDK
HPMicro Software Development Kit
hpm_sdmmc_common.c File Reference
#include "hpm_sdmmc_common.h"
#include "hpm_sdmmc_card.h"
#include <string.h>

Functions

hpm_stat_t sdmmc_go_idle_state (sdmmc_host_t *host, uint32_t argument)
 Switch device to Idle state. More...
 
hpm_stat_t sdmmc_go_inactive_state (sdmmc_host_t *host, uint16_t relative_addr)
 Switch device to Inactive state. More...
 
hpm_stat_t sdmmc_select_card (sdmmc_host_t *host, uint16_t relative_addr, bool is_selected)
 Select/De-select the device. More...
 
hpm_stat_t sdmmc_send_application_command (sdmmc_host_t *host, uint16_t relative_addr)
 Send Application Command. More...
 
hpm_stat_t sdmmc_set_block_count (sdmmc_host_t *host, uint32_t block_count)
 Set block count. More...
 
hpm_stat_t sdmmc_set_block_size (sdmmc_host_t *host, uint32_t block_size)
 Set Block size. More...
 
hpm_stat_t sdmmc_enable_auto_tuning (const sdmmc_host_t *host)
 Enable Auto Tuning mode. More...
 
uint32_t extract_csd_field (const uint32_t *raw_csd, uint8_t end_offset, uint8_t start_offset)
 Extract Fields from raw CSD data. More...