ufspsxc
Vitis Drivers API Documentation
xufspsxc_setluncfg_example.c File Reference

Overview

This example is used to set the device configuration and test read and write transfers on UFS interface.

Modify the offset and Size macros to test different UFS memory offset and size.

 MODIFICATION HISTORY:
 Ver    Who     Date     Changes


1.0 sk 01/16/24 First release 1.1 sk 01/13/25 Enable the LU before configuring the Boot LUN ID.

 

Functions

int UfsPsxcRawTest (void)
 This function performs the UFS Raw Read/ Write Test. More...
 
int main (void)
 Main function to call the UFS example. More...
 

Function Documentation

int main ( void  )

Main function to call the UFS example.

Returns
XST_SUCCESS if successful, otherwise XST_FAILURE.
Note
None

References UfsPsxcRawTest().

int UfsPsxcRawTest ( void  )

This function performs the UFS Raw Read/ Write Test.

Parameters
None
Returns
XST_SUCCESS if successful, otherwise XST_FAILURE.
Note
None

References XUfsPsxc_CfgInitialize(), XUfsPsxc_Initialize(), XUfsPsxc_LookupConfig(), XUfsPsxc_ReadPolled(), XUfsPsxc_SwitchBootLUN(), and XUfsPsxc_WritePolled().

Referenced by main().