SAMV71 Xplained Ultra Software Package 1.3

MCI Driver Functions
[MCI Driver (HAL for SD/MMC Lib)]

Collaboration diagram for MCI Driver Functions:

Functions

void MCID_Init (sMcid *pMcid, Hsmci *pMci, uint8_t bID, uint32_t dwMck, sXdmad *pXdmad, uint8_t bPolling)
void MCID_Reset (sMcid *pMcid)
void MCID_SetSlot (Hsmci *pMci, uint8_t slot)
uint32_t MCID_Lock (sMcid *pMcid, uint8_t bSlot)
uint32_t MCID_Release (sMcid *pMcid)
void MCID_Handler (sMcid *pMcid)
uint32_t MCID_SendCmd (sMcid *pMcid, void *pCmd)
uint32_t MCID_CancelCmd (sMcid *pMcid)
uint32_t MCID_IsCmdCompleted (sMcid *pMcid)
uint32_t MCID_IOCtrl (sMcid *pMcid, uint32_t bCtl, uint32_t param)
void SDD_InitializeSdmmcMode (sSdCard *pSd, void *pDrv, uint8_t bSlot)

Function Documentation

uint32_t MCID_CancelCmd ( sMcid pMcid  ) 

Cancel pending SD/MMC command.

Definition at line 779 of file mcid_dma.c.

void MCID_Handler ( sMcid pMcid  ) 

Process pending events on the given MCI driver.

Definition at line 676 of file mcid_dma.c.

Here is the call graph for this function:

void MCID_Init ( sMcid pMcid,
Hsmci pMci,
uint8_t  bID,
uint32_t  dwMck,
sXdmad pXdmad,
uint8_t  bPolling 
)

Initialize MCI driver.

Definition at line 433 of file mcid_dma.c.

Here is the call graph for this function:

uint32_t MCID_IOCtrl ( sMcid pMcid,
uint32_t  bCtl,
uint32_t  param 
)

IO control functions

Definition at line 844 of file mcid_dma.c.

Here is the call graph for this function:

uint32_t MCID_IsCmdCompleted ( sMcid pMcid  ) 

Check if the command is finished

Definition at line 825 of file mcid_dma.c.

Here is the call graph for this function:

uint32_t MCID_Lock ( sMcid pMcid,
uint8_t  bSlot 
)

Lock the MCI driver for slot N access

Definition at line 480 of file mcid_dma.c.

uint32_t MCID_Release ( sMcid pMcid  ) 

Release the driver.

Definition at line 503 of file mcid_dma.c.

void MCID_Reset ( sMcid pMcid  ) 

Reset MCID and disable HW

Definition at line 796 of file mcid_dma.c.

Here is the call graph for this function:

uint32_t MCID_SendCmd ( sMcid pMcid,
void *  pCommand 
)

SD/MMC command.

Definition at line 517 of file mcid_dma.c.

Here is the call graph for this function:

void MCID_SetSlot ( Hsmci pMci,
uint8_t  slot 
)

Select MCI slot.

Definition at line 424 of file mcid_dma.c.

Here is the call graph for this function:

void SDD_InitializeSdmmcMode ( sSdCard pSd,
void *  pDrv,
uint8_t  bSlot 
)

Initialize the SD/MMC card driver structure for SD/MMC bus mode

Note:
defined in SD/MMC bus mode low level (Here uses MCI interface)

Definition at line 901 of file mcid_dma.c.

Here is the call graph for this function:

 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Defines