sdps
Vitis Drivers API Documentation
xsdps_options.c File Reference

Functions

s32 XSdPs_Change_ClkFreq (XSdPs *InstancePtr, u32 SelFreq)
 API to change clock freq to given value. More...
 
s32 XSdPs_SetBlkSize (XSdPs *InstancePtr, u16 BlkSize)
 Update Block size for read/write operations. More...
 
s32 XSdPs_Get_BusWidth (XSdPs *InstancePtr, u8 *ReadBuff)
 API to get bus width support by card. More...
 
s32 XSdPs_Change_BusWidth (XSdPs *InstancePtr)
 API to set bus width to 4-bit in card and host. More...
 
s32 XSdPs_Get_BusSpeed (XSdPs *InstancePtr, u8 *ReadBuff)
 API to get bus speed supported by card. More...
 
s32 XSdPs_Get_Status (XSdPs *InstancePtr, u8 *SdStatReg)
 API to get SD card status information. More...
 
s32 XSdPs_Change_BusSpeed (XSdPs *InstancePtr)
 API to set high speed in card and host. More...
 
s32 XSdPs_Get_Mmc_ExtCsd (XSdPs *InstancePtr, u8 *ReadBuff)
 API to get EXT_CSD register of eMMC. More...
 
s32 XSdPs_Set_Mmc_ExtCsd (XSdPs *InstancePtr, u32 Arg)
 API to write EXT_CSD register of eMMC. More...
 
s32 XSdPs_Pullup (XSdPs *InstancePtr)
 API to send pullup command to card before using DAT line 3(using 4-bit bus) More...
 
s32 XSdPs_Select_Card (XSdPs *InstancePtr)
 Selects card and sets default block size. More...
 
s32 XSdPs_StartReadTransfer (XSdPs *InstancePtr, u32 Arg, u32 BlkCnt, u8 *Buff)
 This function performs SD read in polled mode. More...
 
s32 XSdPs_StartWriteTransfer (XSdPs *InstancePtr, u32 Arg, u32 BlkCnt, u8 *Buff)
 This function start SD write transfer. More...
 
s32 XSdPs_CheckReadTransfer (XSdPs *InstancePtr)
 This function is used to check if the transfer is completed successfully. More...
 
s32 XSdPs_CheckWriteTransfer (XSdPs *InstancePtr)
 This function is used to check for the write transfer completed. More...