rfdc: xrfdc_selftest_example.c File Reference

| rfdc Xilinx SDK Drivers API Documentation

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

Functions
xrfdc_selftest_example.c File Reference

## Overview

This file contains a selftest example for using the rfdc hardware and RFSoC Data Converter driver.

This example does some writes to the hardware to do some sanity checks and does a reset to restore the original settings.

For zcu111 board users are expected to define XPS_BOARD_ZCU111 macro while compiling this example.

    MODIFICATION HISTORY:

    Ver   Who    Date     Changes

    1.0   sk     05/25/17 First release
    1.1   sk     08/09/17 Modified the example to support both Linux and
                          Baremetal.
    4.0   sd     04/28/18 Add Clock configuration support for ZCU111.
          sd     05/15/18 Updated Clock configuration for lmk.
    5.0   sk     08/03/18 For baremetal, add metal device structure for rfdc
                          device and register the device to libmetal generic bus.
          mus    08/18/18 Updated to remove xparameters.h dependency for linux
                          platform.
    7.0   cog    07/25/19 Updated example for new metal register API.

## Functions
int | main (void)
| Main function that invokes the polled example in this file. More...

## Function Documentation

int main | ( | void |  | ) |

Main function that invokes the polled example in this file.

Parameters

  None. |

Returns
  - XRFDC_SUCCESS if the example has completed successfully.
  - XRFDC_FAILURE if the example has failed.

Note
  None.