The host adapter driver provide adapter for polling/interrupt/freertos mode.
|
| static status_t | SDMMCHOST_NotSupport (void *parameter) |
| | host not support function, this function is used for host not support feature More...
|
| |
| status_t | SDMMCHOST_WaitCardDetectStatus (SDMMCHOST_TYPE *hostBase, const sdmmchost_detect_card_t *cd, bool waitCardStatus) |
| | Detect card insert, only need for SD cases. More...
|
| |
| bool | SDMMCHOST_IsCardPresent (void) |
| | check card is present or not. More...
|
| |
| status_t | SDMMCHOST_Init (SDMMCHOST_CONFIG *host, void *userData) |
| | Init host controller. More...
|
| |
| void | SDMMCHOST_Reset (SDMMCHOST_TYPE *base) |
| | reset host controller. More...
|
| |
| void | SDMMCHOST_ErrorRecovery (SDMMCHOST_TYPE *base) |
| | host controller error recovery. More...
|
| |
| void | SDMMCHOST_Deinit (void *host) |
| | Deinit host controller. More...
|
| |
| void | SDMMCHOST_PowerOffCard (SDMMCHOST_TYPE *base, const sdmmchost_pwr_card_t *pwr) |
| | host power off card function. More...
|
| |
| void | SDMMCHOST_PowerOnCard (SDMMCHOST_TYPE *base, const sdmmchost_pwr_card_t *pwr) |
| | host power on card function. More...
|
| |
| void | SDMMCHOST_Delay (uint32_t milliseconds) |
| | SDMMC host delay function. More...
|
| |
| status_t | SDMMCHOST_ReceiveTuningBlock (SDMMCHOST_TYPE *base, uint32_t tuningCmd, uint32_t *revBuf, uint32_t size) |
| | SDMMC host receive tuning block. More...
|
| |
| struct sdmmchost_detect_card_t |
| struct sdmmchost_pwr_card_t |
| struct sdmmchost_card_int_t |
| struct sdmmchost_card_switch_voltage_func_t |
| struct sdmmhostcard_usr_param_t |
| #define FSL_SDMMC_HOST_ADAPTER_VERSION (MAKE_VERSION(2U, 2U, 13U)) /*2.2.13*/ |
| Enumerator |
|---|
| kSDMMCHOST_EndianModeBig |
Big endian mode.
|
| kSDMMCHOST_EndianModeHalfWordBig |
Half word big endian mode.
|
| kSDMMCHOST_EndianModeLittle |
Little endian mode.
|
| Enumerator |
|---|
| kSDMMCHOST_DetectCardByGpioCD |
sd card detect by CD pin through GPIO
|
| kSDMMCHOST_DetectCardByHostCD |
sd card detect by CD pin through host
|
| kSDMMCHOST_DetectCardByHostDATA3 |
sd card detect by DAT3 pin through host
|
| static status_t SDMMCHOST_NotSupport |
( |
void * |
parameter | ) |
|
|
inlinestatic |
- Parameters
-
| void | parameter ,used to avoid build warning |
- Return values
-
| kStatus_Fail,host | do not suppport |
| status_t SDMMCHOST_WaitCardDetectStatus |
( |
SDMMCHOST_TYPE * |
hostBase, |
|
|
const sdmmchost_detect_card_t * |
cd, |
|
|
bool |
waitCardStatus |
|
) |
| |
- Parameters
-
| base | the pointer to host base address |
| cd | card detect configuration |
| waitCardStatus | status which user want to wait |
- Return values
-
| kStatus_Success | detect card insert |
| kStatus_Fail | card insert event fail |
| bool SDMMCHOST_IsCardPresent |
( |
void |
| ) |
|
- Return values
-
| true | card is present |
| false | card is not present |
| status_t SDMMCHOST_Init |
( |
SDMMCHOST_CONFIG * |
host, |
|
|
void * |
userData |
|
) |
| |
- Parameters
-
| host | the pointer to host structure in card structure. |
| userData | specific user data |
- Return values
-
| kStatus_Success | host init success |
| kStatus_Fail | event fail |
| void SDMMCHOST_Reset |
( |
SDMMCHOST_TYPE * |
base | ) |
|
| void SDMMCHOST_ErrorRecovery |
( |
SDMMCHOST_TYPE * |
base | ) |
|
| void SDMMCHOST_Deinit |
( |
void * |
host | ) |
|
- Parameters
-
| host | the pointer to host structure in card structure. |
- Parameters
-
| base | host base address. |
| pwr | depend on user define power configuration. |
- Parameters
-
| base | host base address. |
| pwr | depend on user define power configuration. |
| void SDMMCHOST_Delay |
( |
uint32_t |
milliseconds | ) |
|
- Parameters
-
| milliseconds | delay counter. |
| status_t SDMMCHOST_ReceiveTuningBlock |
( |
SDMMCHOST_TYPE * |
base, |
|
|
uint32_t |
tuningCmd, |
|
|
uint32_t * |
revBuf, |
|
|
uint32_t |
size |
|
) |
| |
- Parameters
-
| base | host base address. |
| tuningCmd,tuning | cmd. |
| revBuf | buffer to receive data. |
| size | data size to receive. |