qspips: xqspips_selftest_example.c File Reference

| qspips Xilinx SDK 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.

## 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.

Parameters

  None |

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().