| spdif Vitis Drivers API Documentation

- Overview
- Data Structures
- APIs
- File List

Functions
xspdif_selftest_example.c File Reference

## Overview

This file contains a example for using the SPDIF hardware device and SPDIF driver.

     MODIFICATION HISTORY:

    Ver     Who     Date            Changes

    1.0     kar     01/25/18        First release

## Functions
int | SpdifSelfTestExample (u16 DeviceId)
| This function does a minimal test on the Spdif device and driver as a design example. More...
int | main (void)
| Main function to call the Self Test example. More...

## Function Documentation

int main | ( | void |  | ) |

Main function to call the Self Test example.

Parameters

  None. |

Returns
  XST_SUCCESS if successful, XST_FAILURE if unsuccessful.

Note
  None.

References SpdifSelfTestExample().

int SpdifSelfTestExample | ( | u16 | DeviceId | ) |

This function does a minimal test on the Spdif device and driver as a design example.

Parameters

  DeviceId | is the Device ID of the Spdif Device and is the XPAR_<spdif_instance>_DEVICE_ID value from xparameters.h

Returns
  XST_SUCCESS if successful, otherwise XST_FAILURE.

Note
  None.

References XSpdif_Config::BaseAddress, XSpdif_CfgInitialize(), and XSpdif_LookupConfig().

Referenced by main().