| qspips Vitis Drivers API Documentation

- Overview
- Data Structures
- APIs
- File List
- Examples

Functions
xqspips_selftest_example.c File Reference

## Overview

This file contains an example for using the QSPI Hardware, it does a simple hardware connection check.

Note

None

    MODIFICATION HISTORY:

    Ver   Who    Date     Changes

    1.00  drg/jz 01/25/10 First release.
    3.11  akm    07/10/23 Add support for system device-tree flow for example.

## Functions
int | QspiPsSelfTestExample (u16 DeviceId)
| This function does a selftest on the QSPI device and XQspiPs driver as an example. More...
int | main (void)
| Main function to call the Qspi Selftest example. More...

## Function Documentation

int main | ( | void |  | ) |

Main function to call the Qspi Selftest example.

Returns
  XST_SUCCESS if successful, XST_FAILURE if unsuccessful

Note
  None

References QspiPsSelfTestExample().

int QspiPsSelfTestExample | ( | u16 | DeviceId | ) |

This function does a selftest on the QSPI device and XQspiPs driver as an example.

The purpose of this function is to illustrate the usage of the XQspiPs driver.

Parameters

  DeviceId | is the XPAR_<QSPIPS_instance>_DEVICE_ID value from xparameters.h

Returns
  XST_SUCCESS if successful, XST_FAILURE if unsuccessful

Note
  None

References XQspiPs_Config::BaseAddress, XQspiPs_CfgInitialize(), XQspiPs_LookupConfig(), and XQspiPs_SelfTest().

Referenced by main().