tmr_inject: xtmr_inject_selftest_example.c File Reference

| tmr_inject Xilinx SDK Drivers API Documentation

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

Functions
xtmr_inject_selftest_example.c File Reference

## Overview

This file contains a design example using the TMR_Inject driver (XTMR_Inject) and hardware device.

Note

None

MODIFICATION HISTORY:

    Ver   Who  Date  Changes

    1.0   sa   04/05/17 First release

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

## Function Documentation

int main | ( | void |  | ) |

Main function to call the example.

This function is not included if the example is generated from the TestAppGen test tool.

Parameters

  None. |

Returns
  XST_SUCCESS if successful, otherwise XST_FAILURE.

Note
  None.

References TMR_InjectSelfTestExample().

int TMR_InjectSelfTestExample | ( | u16 | DeviceId | ) |

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

The purpose of this function is to illustrate how to use the XTMR_Inject component.

Parameters

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

Returns
  XST_SUCCESS if successful, otherwise XST_FAILURE.

Note
  None.

References XTMR_Inject_Initialize(), and XTMR_Inject_SelfTest().

Referenced by main().