sdps
Xilinx SDK Drivers API Documentation
xsdps.h File Reference

Data Structures

struct  XSdPs_Config
 This typedef contains configuration information for the device. More...
 
struct  XSdPs
 The XSdPs driver instance data. More...
 

Macros

#define XSDPS_CT_ERROR   0x2U
 Command timeout flag. More...
 
#define MAX_TUNING_COUNT   40U
 Maximum Tuning count. More...
 

Functions

XSdPs_ConfigXSdPs_LookupConfig (u16 DeviceId)
 Looks up the device configuration based on the unique device ID. More...
 
s32 XSdPs_CfgInitialize (XSdPs *InstancePtr, XSdPs_Config *ConfigPtr, u32 EffectiveAddr)
 Initializes a specific XSdPs instance such that the driver is ready to use. More...
 
s32 XSdPs_SdCardInitialize (XSdPs *InstancePtr)
 SD initialization is done in this function. More...
 
s32 XSdPs_ReadPolled (XSdPs *InstancePtr, u32 Arg, u32 BlkCnt, u8 *Buff)
 This function performs SD read in polled mode. More...
 
s32 XSdPs_WritePolled (XSdPs *InstancePtr, u32 Arg, u32 BlkCnt, const u8 *Buff)
 This function performs SD write in polled mode. More...
 
s32 XSdPs_SetBlkSize (XSdPs *InstancePtr, u16 BlkSize)
 Update Block size for read/write operations. More...
 
s32 XSdPs_Select_Card (XSdPs *InstancePtr)
 Selects card and sets default block size. More...
 
s32 XSdPs_Change_ClkFreq (XSdPs *InstancePtr, u32 SelFreq)
 API to change clock freq to given value. More...
 
s32 XSdPs_Change_BusWidth (XSdPs *InstancePtr)
 API to set bus width to 4-bit in card and host. More...
 
s32 XSdPs_Change_BusSpeed (XSdPs *InstancePtr)
 API to set high speed in card and host. More...
 
s32 XSdPs_Get_BusWidth (XSdPs *InstancePtr, u8 *SCR)
 API to get bus width support by card. More...
 
s32 XSdPs_Get_BusSpeed (XSdPs *InstancePtr, u8 *ReadBuff)
 API to get bus speed supported by card. 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_MmcCardInitialize (XSdPs *InstancePtr)
 Mmc initialization is done in this function. More...
 
s32 XSdPs_CardInitialize (XSdPs *InstancePtr)
 Initialize Card with Identification mode sequence. 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...