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 (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... | |
| uint32_t extract_csd_field | ( | const uint32_t * | raw_csd, |
| uint8_t | end_offset, | ||
| uint8_t | start_offset | ||
| ) |
Extract Fields from raw CSD data.
| [in] | raw_csd | Raw CSD data array |
| [in] | end_offset | end offset of the specific field (in terms of bit) |
| [in] | start_offset | start offset of the specific field (in terms of bit) |
| hpm_stat_t sdmmc_enable_auto_tuning | ( | sdmmc_host_t * | host | ) |
Enable Auto Tuning mode.
| [in/out] | host SD/MMC Host Context |
| hpm_stat_t sdmmc_go_idle_state | ( | sdmmc_host_t * | host, |
| uint32_t | argument | ||
| ) |
Switch device to Idle state.
| [in/out] | host SD/MMC Host Context | |
| [in] | argument | Argument for CMD0 |
| hpm_stat_t sdmmc_go_inactive_state | ( | sdmmc_host_t * | host, |
| uint16_t | relative_addr | ||
| ) |
Switch device to Inactive state.
| [in/out] | host SD/MMC Host Context | |
| [in] | relative_addr | device relative address |
| hpm_stat_t sdmmc_select_card | ( | sdmmc_host_t * | host, |
| uint16_t | relative_addr, | ||
| bool | is_selected | ||
| ) |
Select/De-select the device.
| [in/out] | host SD/MMC Host Context | |
| [in] | relative_addr | device relative address |
| [in] | is_selected | true: select, false: de-select |
| hpm_stat_t sdmmc_send_application_command | ( | sdmmc_host_t * | host, |
| uint16_t | relative_addr | ||
| ) |
Send Application Command.
| [in/out] | host SD/MMC Host Context | |
| [in] | relative_addr | device related address |
| hpm_stat_t sdmmc_set_block_count | ( | sdmmc_host_t * | host, |
| uint32_t | block_count | ||
| ) |
Set block count.
| [in/out] | host SD/MMC Host Context | |
| [in] | block_count | SD/MMC Block count |
| hpm_stat_t sdmmc_set_block_size | ( | sdmmc_host_t * | host, |
| uint32_t | block_size | ||
| ) |
Set Block size.
| [in/out] | host SD/MMC Host Context | |
| [in] | block_size | SD/MMC Block size |