VSF Documented
|
#include "hal/driver/driver.h"
Macros | |
#define | VSF_SDIO_CFG_FUNCTION_RENAME DISABLED |
Functions | |
vsf_err_t | vsf_sdio_init (vsf_sdio_t *sdio_ptr, vsf_sdio_cfg_t *cfg_ptr) |
initialize a sdio instance. | |
void | vsf_sdio_fini (vsf_sdio_t *sdio_ptr) |
finalize a sdio instance. | |
void | vsf_sdio_irq_enable (vsf_sdio_t *sdio_ptr, vsf_sdio_irq_mask_t irq_mask) |
enable interrupt masks of sdio instance. | |
void | vsf_sdio_irq_disable (vsf_sdio_t *sdio_ptr, vsf_sdio_irq_mask_t irq_mask) |
disable interrupt masks of sdio instance. | |
vsf_sdio_status_t | vsf_sdio_status (vsf_sdio_t *sdio_ptr) |
get the status of sdio instance. | |
vsf_sdio_capability_t | vsf_sdio_capability (vsf_sdio_t *sdio_ptr) |
get the capability of sdio instance. | |
vsf_err_t | vsf_sdio_set_clock (vsf_sdio_t *sdio_ptr, uint32_t clock_hz, bool is_ddr) |
set the clock of sdio instance. | |
vsf_err_t | vsf_sdio_set_bus_width (vsf_sdio_t *sdio_ptr, uint8_t bus_width) |
set the bus width of sdio instance. | |
vsf_err_t | vsf_sdio_host_request (vsf_sdio_t *sdio_ptr, vsf_sdio_req_t *req) |
request sdio operation in host mode. | |
#define VSF_SDIO_CFG_FUNCTION_RENAME DISABLED |
vsf_err_t vsf_sdio_init | ( | vsf_sdio_t * | sdio_ptr, |
vsf_sdio_cfg_t * | cfg_ptr | ||
) |
initialize a sdio instance.
[in] | sdio_ptr | a pointer to structure vsf_sdio_t |
[in] | cfg_ptr | a pointer to structure vsf_sdio_cfg_t |
void vsf_sdio_fini | ( | vsf_sdio_t * | sdio_ptr | ) |
void vsf_sdio_irq_enable | ( | vsf_sdio_t * | sdio_ptr, |
vsf_sdio_irq_mask_t | irq_mask | ||
) |
enable interrupt masks of sdio instance.
[in] | sdio_ptr | a pointer to structure vsf_sdio_t |
[in] | irq_mask | one or more value of enum vsf_sdio_irq_mask_t |
void vsf_sdio_irq_disable | ( | vsf_sdio_t * | sdio_ptr, |
vsf_sdio_irq_mask_t | irq_mask | ||
) |
disable interrupt masks of sdio instance.
[in] | sdio_ptr | a pointer to structure vsf_sdio_t |
[in] | irq_mask | one or more value of enum vsf_sdio_irq_mask_t, vsf_sdio_irq_mask_t |
vsf_sdio_status_t vsf_sdio_status | ( | vsf_sdio_t * | sdio_ptr | ) |
get the status of sdio instance.
[in] | sdio_ptr | a pointer to structure vsf_sdio_t |
vsf_sdio_capability_t vsf_sdio_capability | ( | vsf_sdio_t * | sdio_ptr | ) |
get the capability of sdio instance.
[in] | sdio_ptr | a pointer to structure vsf_sdio_t |
vsf_err_t vsf_sdio_set_clock | ( | vsf_sdio_t * | sdio_ptr, |
uint32_t | clock_hz, | ||
bool | is_ddr | ||
) |
set the clock of sdio instance.
[in] | sdio_ptr | a pointer to structure vsf_sdio_t |
[in] | clock_hz | clock in Hz |
[in] | is_ddr | is DDR mode, true means DDR mode while false means SDR mode |
vsf_err_t vsf_sdio_set_bus_width | ( | vsf_sdio_t * | sdio_ptr, |
uint8_t | bus_width | ||
) |
set the bus width of sdio instance.
[in] | sdio_ptr | a pointer to structure vsf_sdio_t |
[in] | bus_width | bus width in 1, 4, 8 |
vsf_err_t vsf_sdio_host_request | ( | vsf_sdio_t * | sdio_ptr, |
vsf_sdio_req_t * | req | ||
) |
request sdio operation in host mode.
[in] | sdio_ptr | a pointer to structure vsf_sdio_t |
[in] | req | a pointer to sdio rqeust structure |