sysmonpsu
Xilinx SDK Drivers API Documentation
xsysmonpsu_polled_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 polled 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.0 kvn 12/15/15 First release ms 04/05/17 Modified Comment lines in functions to recognize it as documentation block for doxygen generation. 2.3 ms 12/12/17 Added peripheral test support. mn 03/08/18 Update code to run at higher frequency and remove sleep

Functions

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

Function Documentation

◆ main()

int main ( void  )

Main function that invokes the polled 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 SysMonPsuPolledPrintfExample().

◆ SysMonPsuPolledPrintfExample()

int SysMonPsuPolledPrintfExample ( u16  SysMonDeviceId)

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
  • Run self-test on the device
  • Setup the sequence registers to continuously monitor on-chip temperature, VCCINT and VCCAUX
  • Setup configuration registers to start the sequence
  • Read the latest on-chip temperature, VCCINT and VCCAUX
Parameters
SysMonDeviceIdis the XPAR_<SYSMON_instance>_DEVICE_ID value from xparameters.h.
Returns
  • XST_SUCCESS if the example has completed successfully.
  • XST_FAILURE if the example has failed.
Note
None

Referenced by main().