spips
Vitis Drivers API Documentation
 All Data Structures Files Functions Variables Typedefs Groups Pages
Xspips_selftest_example

Functions

int SpiPsSelfTestExample (UINTPTR BaseAddress)
 Runs a selftest on the SPIPS device and XSpiPs driver as an example. More...
 
int main (void)
 Calls the SPI SelfTest example. More...
 

Variables

XSpiPs SpiPs
 The instance of the SPI device. More...
 

Function Documentation

int main ( void  )

Calls the SPI SelfTest example.

Returns
XST_SUCCESS if successful, XST_FAILURE if unsuccessful

References SpiPsSelfTestExample().

int SpiPsSelfTestExample ( UINTPTR  BaseAddress)

Runs a selftest on the SPIPS device and XSpiPs driver as an example.

The purpose of the function is to illustrate the usage of the XSpiPs driver.

Parameters
[in]BaseAddressThe base address of the device.
Returns
XST_SUCCESS if successful, XST_FAILURE if unsuccessful
Note
In XSCT/classic flow, the device configuration is looked up based on DeviceId.

References XSpiPs_Config::BaseAddress, XSpiPs_CfgInitialize(), XSpiPs_LookupConfig(), and XSpiPs_SelfTest().

Referenced by main().

Variable Documentation

XSpiPs SpiPs

The instance of the SPI device.