| tmr_inject Vitis Drivers API Documentation

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

Functions
xtmr_inject_low_level_example.c File Reference

## Overview

This file contains a design example using the low-level driver functions and macros of the TMRInject driver (XTMRInject).

Note

It is assumed that the design is Triple Modular Redundant, such that injection of a fault will not prevent the software from continuing to run.

MODIFICATION HISTORY:

    Ver   Who  Date  Changes

    1.0   sa   04/05/17 First release
    1.6   asa  07/31/23 Update the macro TMRINJECT_BASEADDR to correct define
                        from xparameters.h. Previously it was defined as
                        XPAR_TMRINJECT_0_BASEADDR.
    1.7   adk  04/04/25 Ported example to the SDT flow.

## Functions
int | TMRInjectLowLevelExample (u32 TMRInjectBaseAddress)
| This function does a minimal test on the TMRInject device using the low-level driver macros and functions. More...
int | main (void)
| Main function to call the example. More...

## Function Documentation

int main | ( | void |  | ) |

Main function to call the example.

Parameters

  None. |

Returns
  XST_SUCCESS if successful, XST_FAILURE if unsuccessful.

Note
  None.

References TMRInjectLowLevelExample().

int TMRInjectLowLevelExample | ( | u32 | TMRInjectBaseAddress | ) |

This function does a minimal test on the TMRInject device using the low-level driver macros and functions.

Parameters

  TMRInjectBaseAddress | is the base address of the TMRInject device and is the XPAR_<TMRINJECT_instance>_BASEADDR value from xparameters.h.

Returns
  XST_SUCCESS if successful, XST_FAILURE if unsuccessful.

Note
  None.

Referenced by main().