sdps
Vitis Drivers API Documentation
xsdps_card.c File Reference

Functions

s32 XSdPs_Read (XSdPs *InstancePtr, u32 Arg, u32 BlkCnt, u8 *Buff)
 Performs SD read in polled mode. More...
 
s32 XSdPs_Write (XSdPs *InstancePtr, u32 Arg, u32 BlkCnt, const u8 *Buff)
 Performs SD write in polled mode. More...
 
s32 XSdPs_CheckTransferComplete (XSdPs *InstancePtr)
 Checks for the transfer complete. More...
 
s32 XSdPs_IdentifyCard (XSdPs *InstancePtr)
 Identifies type of card using CMD0 + CMD1 sequence. More...
 
s32 XSdPs_SdCardInitialize (XSdPs *InstancePtr)
 This function Initializes SD. More...
 
s32 XSdPs_MmcCardInitialize (XSdPs *InstancePtr)
 This function initializes MMC. More...
 
s32 XSdPs_CheckCardDetect (XSdPs *InstancePtr)
 Checks if the card is present or not. More...
 
s32 XSdPs_CardReset (XSdPs *InstancePtr)
 Sends CMD0 to reset the card. More...
 
s32 XSdPs_CardIfCond (XSdPs *InstancePtr)
 Sends command to get the card interface details. More...
 
s32 XSdPs_CardOpCond (XSdPs *InstancePtr)
 Sends command to get the card operating condition. More...
 
s32 XSdPs_GetCardId (XSdPs *InstancePtr)
 Gets the card ID. More...
 
s32 XSdPs_GetCsd (XSdPs *InstancePtr)
 Gets the CSD register from the card. More...
 
s32 XSdPs_CardSetVoltage18 (XSdPs *InstancePtr)
 Sets the card voltage to 1.8 V. More...
 
s32 XSdPs_ResetConfig (XSdPs *InstancePtr)
 Configures the initial Reset. More...
 
void XSdPs_HostConfig (XSdPs *InstancePtr)
 Configures the initial Host. More...
 
s32 XSdPs_CheckResetDone (XSdPs *InstancePtr, u8 Value)
 Checks for Reset Done bits to be cleared after a reset assert. More...
 
s32 XSdPs_SetupVoltageSwitch (XSdPs *InstancePtr)
 Sets up the voltage switch. More...
 
s32 XSdPs_CheckBusHigh (XSdPs *InstancePtr)
 Check if the CMD and DAT buses are high. More...
 
void XSdPs_Identify_UhsMode (XSdPs *InstancePtr, u8 *ReadBuff)
 API to Identify the supported UHS mode. More...
 
void XSdPs_SetTapDelay (XSdPs *InstancePtr)
 API to set Tap Delay with respect to the speed modes. More...
 
s32 XSdPs_Change_SdBusSpeed (XSdPs *InstancePtr)
 Changes the SD Bus Speed. More...
 
s32 XSdPs_Change_MmcBusSpeed (XSdPs *InstancePtr)
 Changes the eMMC bus speed. More...
 
s32 XSdPs_AutoTuning (XSdPs *InstancePtr)
 This function is used to do the Auto tuning. More...
 
void XSdPs_SetupADMA2DescTbl (XSdPs *InstancePtr, u32 BlkCnt, const u8 *Buff)
 API to setup ADMA2 descriptor table. More...
 
void XSdPs_SetupADMA2DescTbl64Bit (XSdPs *InstancePtr, u32 BlkCnt)
 API to setup ADMA2 descriptor table for 64 Bit DMA. More...
 
s32 XSdPs_DllReset (XSdPs *InstancePtr)
 API to reset the DLL. More...
 
void XSdPs_IdentifyEmmcMode (XSdPs *InstancePtr, const u8 *ExtCsd)
 Identifies the eMMC speed mode. More...
 
s32 XSdPs_CheckEmmcTiming (XSdPs *InstancePtr, u8 *ExtCsd)
 Checks the eMMC timing. More...
 
s32 XSdPs_SetClock (XSdPs *InstancePtr, u32 SelFreq)
 Sets the clock to the passed frequency. More...
 
s32 XSdPs_CheckVoltage18 (XSdPs *InstancePtr)
 Checks if the voltage is set to 1.8 V or not. More...
 
s32 XSdPs_SetupCmd (XSdPs *InstancePtr, u32 Arg, u32 BlkCnt)
 Initializes the command sequence. More...
 
s32 XSdPs_SendCmd (XSdPs *InstancePtr, u32 Cmd)
 Initiates the Cmd transfer to SD card. More...
 
s32 XSdPs_SetStartAddr (XSdPs *InstancePtr, u32 StartAddr)
 Sets the address of the first write block to be erased. More...
 
s32 XSdPs_SetEndAddr (XSdPs *InstancePtr, u32 EndAddr)
 Sets the address of the last write block to be erased. More...
 
s32 XSdPs_SendErase (XSdPs *InstancePtr)
 Sends Erase command to the device and wait for transfer complete. More...