sysmonpsv
Xilinx SDK Drivers API Documentation
xsysmonpsv_intr_example.c File Reference

Overview

This file contains a design example using the driver functions of the System Monitor driver.

The example here shows the driver/device in intr mode to check the on-chip temperature and voltages.

Note

This examples also assumes that there is a STDIO device in the system.

MODIFICATION HISTORY:
Ver   Who    Date     Changes


1.1 add 7/2/19 First release

Functions

int SysMonPsvIntrExample ()
 This function runs a test on the System Monitor device using the driver APIs. More...
 
int main (void)
 Main function that invokes the intr example in this file. More...
 

Function Documentation

int main ( void  )

Main function that invokes the intr example in this file.

Parameters
None.
Returns
  • XST_SUCCESS if the example has completed successfully.
  • XST_FAILURE if the example has failed.
Note
None.

References SysMonPsvIntrExample().

int SysMonPsvIntrExample ( )

This function runs a test on the System Monitor device using the driver APIs.

This function does the following tasks:

  • Initiate the System Monitor device driver instance
  • Enable OT interrupt
  • Setup call back for interrupts
  • Read supply configuration.
  • Read the latest on-chip temperatures and confiured supplies
Parameters
None.
Returns
  • XST_SUCCESS if the example has completed successfully.
  • XST_FAILURE if the example has failed.
Note
None

References XSysMonPsv_CfgInitialize(), XSysMonPsv_IntrClear(), XSysMonPsv_IntrEnable(), XSysMonPsv_LookupConfig(), XSYSMONPSV_PCSR_LOCK, and XSysMonPsv_WriteReg.

Referenced by main().