VSF Documented
|
#include "hal/vsf_hal.h"
#include "hal/driver/driver.h"
#include "hal/driver/common/template/vsf_template_sdio.h"
#include "./sdio_probe.h"
Macros | |
#define | __VSF_SDIO_PROBE_CLASS_IMPLEMENT |
#define | SDIO_SEND_IF_COND_CHECK_PATTERN 0xAA |
#define | SD_ACMD41_ARG_OCR_S18R (0x01UL << 24) |
#define | SD_ACMD41_ARG_OCR_HCS (0x01UL << 30) |
#define | SD_ACMD41_RSP_OCR_S18A (0x01UL << 24) |
#define | SD_ACMD41_RSP_OCR_CCS (0x01UL << 30) |
#define | SD_ACMD41_RSP_OCR_BUSY (0x01UL << 31) |
#define | SDIO_CMD1_RSP_OCR_BUSY (0x01UL << 31) |
#define | SDIO_OCR_HVOLTAGE_MASK 0x00FF8000 |
#define | SDIO_OCR_LVOLTAGE_MASK 0x00007F80 |
#define | SDIO_OCR_DVOLTAGE_MASK (SDIO_OCR_HVOLTAGE_MASK | SDIO_OCR_LVOLTAGE_MASK) |
#define | SDIO_OCR_SECTOR_MODE 0x40000000 |
#define | SDIO_OCR_ACCESS_MODE_MASK 0x60000000 |
Typedefs | |
typedef enum vsf_sdio_probe_state_t | vsf_sdio_probe_state_t |
Functions | |
vsf_err_t | vsf_sdio_probe_start (vsf_sdio_t *sdio, vsf_sdio_probe_t *probe) |
start sdio probe, SDIO MUST be initialized by calling vsf_sdio_init first. | |
vsf_err_t | vsf_sdio_probe_irqhandler (vsf_sdio_t *sdio, vsf_sdio_probe_t *probe, vsf_sdio_irq_mask_t irq_mask, vsf_sdio_reqsts_t status, uint32_t resp[4]) |
called in sdio irqhandler while probing sdio. | |
#define __VSF_SDIO_PROBE_CLASS_IMPLEMENT |
#define SDIO_SEND_IF_COND_CHECK_PATTERN 0xAA |
#define SD_ACMD41_ARG_OCR_S18R (0x01UL << 24) |
#define SD_ACMD41_ARG_OCR_HCS (0x01UL << 30) |
#define SD_ACMD41_RSP_OCR_S18A (0x01UL << 24) |
#define SD_ACMD41_RSP_OCR_CCS (0x01UL << 30) |
#define SD_ACMD41_RSP_OCR_BUSY (0x01UL << 31) |
#define SDIO_CMD1_RSP_OCR_BUSY (0x01UL << 31) |
#define SDIO_OCR_HVOLTAGE_MASK 0x00FF8000 |
#define SDIO_OCR_LVOLTAGE_MASK 0x00007F80 |
#define SDIO_OCR_DVOLTAGE_MASK (SDIO_OCR_HVOLTAGE_MASK | SDIO_OCR_LVOLTAGE_MASK) |
#define SDIO_OCR_SECTOR_MODE 0x40000000 |
#define SDIO_OCR_ACCESS_MODE_MASK 0x60000000 |
typedef enum vsf_sdio_probe_state_t vsf_sdio_probe_state_t |
vsf_err_t vsf_sdio_probe_start | ( | vsf_sdio_t * | sdio, |
vsf_sdio_probe_t * | probe | ||
) |
start sdio probe, SDIO MUST be initialized by calling vsf_sdio_init first.
[in] | sdio_ptr | a pointer to structure vsf_sdio_t |
[in] | vsf_sdio_probe_t | a pointer to struct vsf_sdio_probe_t |
vsf_err_t vsf_sdio_probe_irqhandler | ( | vsf_sdio_t * | sdio, |
vsf_sdio_probe_t * | probe, | ||
vsf_sdio_irq_mask_t | irq_mask, | ||
vsf_sdio_reqsts_t | status, | ||
uint32_t | resp[4] | ||
) |
called in sdio irqhandler while probing sdio.
[in] | sdio_ptr | a pointer to structure vsf_sdio_t |
[in] | vsf_sdio_probe_t | a pointer to struct vsf_sdio_probe_t |
[in] | irq_mask | one or more value of enum vsf_sdio_irq_mask_t |
[in] | status | transact status. |
[in] | resp | response. |