embeddedsw/XilinxProcessorIPLib/drivers/sysmon/doc/html/api/xsysmon_8c.html
Jagannadha Sutradharudu Teki 2c8f92039d embeddesw: Add initial code support
Added initial support Xilinx Embedded Software.

Signed-off-by: Jagannadha Sutradharudu Teki <jaganna@xilinx.com>
2014-06-24 16:45:01 +05:30

1811 lines
96 KiB
HTML
Executable file

<html>
<head>
<meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1">
<title>
xsysmon.c File Reference
</title>
<link href="$DriverApiDocsCssPath" rel="stylesheet" type="text/css">
</head>
<h3 class="PageHeader">Xilinx Processor IP Library</h3>
<hl>Software Drivers</hl>
<hr class="whs1">
<!-- Generated by Doxygen 1.4.5 -->
<div class="tabs">
<ul>
<li><a href="index.html"><span>Main&nbsp;Page</span></a></li>
<li><a href="annotated.html"><span>Classes</span></a></li>
<li id="current"><a href="files.html"><span>Files</span></a></li>
</ul></div>
<div class="tabs">
<ul>
<li><a href="files.html"><span>File&nbsp;List</span></a></li>
<li><a href="globals.html"><span>File&nbsp;Members</span></a></li>
</ul></div>
<h1>xsysmon.c File Reference</h1><hr><a name="_details"></a><h2>Detailed Description</h2>
This file contains the driver API functions that can be used to access the System Monitor/ADC device.<p>
Refer to the xsysmon.h header file for more information about this driver.<p>
<dl compact><dt><b>Note:</b></dt><dd>None.</dd></dl>
<pre></pre><p>
<pre> MODIFICATION HISTORY:</pre><p>
<pre> Ver Who Date Changes
----- ----- -------- -----------------------------------------------------
1.00a xd/sv 05/22/07 First release
2.00a sv 07/07/08 Modified the ADC data functions to return 16 bits of
data.
3.00a sdm 09/02/09 Added APIs for V6 SysMon.
4.00a ktn 10/22/09 Updated the file to use the HAL processor APIs/macros.
The macros have been renamed to remove _m from the name
of the macro.
5.00a sdm 06/15/11 Added support for XADC (7 Series Families).
5.01a bss 02/28/12 Added support for Zynq.
5.02a bss 11/23/12 Added XSysMon_EnableTempUpdate,
XSysMon_DisableTempUpdate and XSysMon_SetTempWaitCycles
APIs (CR #679872)
5.03a bss 04/25/13 Modified XSysMon_SetSeqChEnables,
XSysMon_SetSeqAvgEnables, XSysMon_SetSeqInputMode
and XSysMon_SetSeqAcqTime APIs to check for Safe Mode
instead of Single Channel mode. CR #703729
</pre>
<p>
<code>#include &quot;xsysmon.h&quot;</code><br>
<table border="0" cellpadding="0" cellspacing="0">
<tr><td></td></tr>
<tr><td colspan="2"><br><h2>Functions</h2></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">int&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="xsysmon_8c.html#838d4abbaf39d8e890fd8413ca31b88f">XSysMon_CfgInitialize</a> (<a class="el" href="struct_x_sys_mon.html">XSysMon</a> *InstancePtr, <a class="el" href="struct_x_sys_mon___config.html">XSysMon_Config</a> *ConfigPtr, u32 EffectiveAddr)</td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="xsysmon_8c.html#96154fe72db73dbbcb2e5f3f52ce62a6">XSysMon_Reset</a> (<a class="el" href="struct_x_sys_mon.html">XSysMon</a> *InstancePtr)</td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">u32&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="xsysmon_8c.html#7caea2afd654f9fa384572e4bdd13474">XSysMon_GetStatus</a> (<a class="el" href="struct_x_sys_mon.html">XSysMon</a> *InstancePtr)</td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">u32&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="xsysmon_8c.html#0651f6fd486eaf24859fdf52e6206301">XSysMon_GetAlarmOutputStatus</a> (<a class="el" href="struct_x_sys_mon.html">XSysMon</a> *InstancePtr)</td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="xsysmon_8c.html#cfd5924a26dc5657bc390bb910c2f9ab">XSysMon_StartAdcConversion</a> (<a class="el" href="struct_x_sys_mon.html">XSysMon</a> *InstancePtr)</td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="xsysmon_8c.html#c89dda54886b37d473b4c15b33368c72">XSysMon_ResetAdc</a> (<a class="el" href="struct_x_sys_mon.html">XSysMon</a> *InstancePtr)</td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">u16&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="xsysmon_8c.html#2677727676ec06ca20546dc604a67452">XSysMon_GetAdcData</a> (<a class="el" href="struct_x_sys_mon.html">XSysMon</a> *InstancePtr, u8 Channel)</td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">u16&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="xsysmon_8c.html#8f0fa71a714ee041e1a7e803d7e53cfa">XSysMon_GetCalibCoefficient</a> (<a class="el" href="struct_x_sys_mon.html">XSysMon</a> *InstancePtr, u8 CoeffType)</td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">u16&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="xsysmon_8c.html#82f04e04d1155d091b26ebc72344eb2c">XSysMon_GetMinMaxMeasurement</a> (<a class="el" href="struct_x_sys_mon.html">XSysMon</a> *InstancePtr, u8 MeasurementType)</td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="xsysmon_8c.html#a6548645b49baf8057d24672a9b4f2e6">XSysMon_SetAvg</a> (<a class="el" href="struct_x_sys_mon.html">XSysMon</a> *InstancePtr, u8 Average)</td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">u8&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="xsysmon_8c.html#fe7a647c4837615c384725fe7a7f742a">XSysMon_GetAvg</a> (<a class="el" href="struct_x_sys_mon.html">XSysMon</a> *InstancePtr)</td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">int&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="xsysmon_8c.html#e956027fbeb83489f93ccbb5317c2690">XSysMon_SetSingleChParams</a> (<a class="el" href="struct_x_sys_mon.html">XSysMon</a> *InstancePtr, u8 Channel, int IncreaseAcqCycles, int IsEventMode, int IsDifferentialMode)</td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="xsysmon_8c.html#ad57c0bcfa85ac008e6de9e4a0b1786e">XSysMon_SetAlarmEnables</a> (<a class="el" href="struct_x_sys_mon.html">XSysMon</a> *InstancePtr, u16 AlmEnableMask)</td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">u16&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="xsysmon_8c.html#a956591bd6e58972354a29e7b58162bc">XSysMon_GetAlarmEnables</a> (<a class="el" href="struct_x_sys_mon.html">XSysMon</a> *InstancePtr)</td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="xsysmon_8c.html#35e0479a5ea24e54e658ce11dede8409">XSysMon_SetCalibEnables</a> (<a class="el" href="struct_x_sys_mon.html">XSysMon</a> *InstancePtr, u16 Calibration)</td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">u16&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="xsysmon_8c.html#6556544c9fd945d2e4d4e728314c1129">XSysMon_GetCalibEnables</a> (<a class="el" href="struct_x_sys_mon.html">XSysMon</a> *InstancePtr)</td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="xsysmon_8c.html#e4016b742ac11f588115e75c8f61e30c">XSysMon_SetSequencerMode</a> (<a class="el" href="struct_x_sys_mon.html">XSysMon</a> *InstancePtr, u8 SequencerMode)</td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">u8&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="xsysmon_8c.html#b42ec58d5df29b4e7a15e427e72cb0d7">XSysMon_GetSequencerMode</a> (<a class="el" href="struct_x_sys_mon.html">XSysMon</a> *InstancePtr)</td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="xsysmon_8c.html#4a1c0383c4df43a19c0e4db01dd4cdcf">XSysMon_SetSequencerEvent</a> (<a class="el" href="struct_x_sys_mon.html">XSysMon</a> *InstancePtr, int IsEventMode)</td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="xsysmon_8c.html#c27729402f0503568d3cafb09ae143eb">XSysMon_SetExtenalMux</a> (<a class="el" href="struct_x_sys_mon.html">XSysMon</a> *InstancePtr, u8 Channel)</td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="xsysmon_8c.html#2778590242be8eff2cb0e75d518801ee">XSysMon_SetAdcClkDivisor</a> (<a class="el" href="struct_x_sys_mon.html">XSysMon</a> *InstancePtr, u8 Divisor)</td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">u8&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="xsysmon_8c.html#248fd0a5b5e075bfcc9764bc1e328349">XSysMon_GetAdcClkDivisor</a> (<a class="el" href="struct_x_sys_mon.html">XSysMon</a> *InstancePtr)</td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">int&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="xsysmon_8c.html#eda4ba1cac4dce8f3f36f1c80e355c7f">XSysMon_SetSeqChEnables</a> (<a class="el" href="struct_x_sys_mon.html">XSysMon</a> *InstancePtr, u32 ChEnableMask)</td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">u32&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="xsysmon_8c.html#b4893c6216bf007efb0cca436da0f691">XSysMon_GetSeqChEnables</a> (<a class="el" href="struct_x_sys_mon.html">XSysMon</a> *InstancePtr)</td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">int&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="xsysmon_8c.html#337472cb2cf0b03d61b4468d79b8f78a">XSysMon_SetSeqAvgEnables</a> (<a class="el" href="struct_x_sys_mon.html">XSysMon</a> *InstancePtr, u32 AvgEnableChMask)</td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">u32&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="xsysmon_8c.html#8245b00bdacc70a3dc71bcce4b2cb65d">XSysMon_GetSeqAvgEnables</a> (<a class="el" href="struct_x_sys_mon.html">XSysMon</a> *InstancePtr)</td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">int&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="xsysmon_8c.html#233e637b3091576705486d4a54e13742">XSysMon_SetSeqInputMode</a> (<a class="el" href="struct_x_sys_mon.html">XSysMon</a> *InstancePtr, u32 InputModeChMask)</td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">u32&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="xsysmon_8c.html#094f8ffa221967080c7ebb5beaf77eea">XSysMon_GetSeqInputMode</a> (<a class="el" href="struct_x_sys_mon.html">XSysMon</a> *InstancePtr)</td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">int&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="xsysmon_8c.html#732fa860ee6d005fe2fe9027602e2cd0">XSysMon_SetSeqAcqTime</a> (<a class="el" href="struct_x_sys_mon.html">XSysMon</a> *InstancePtr, u32 AcqCyclesChMask)</td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">u32&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="xsysmon_8c.html#713d3c6992912fc14544dc0d937f9b4b">XSysMon_GetSeqAcqTime</a> (<a class="el" href="struct_x_sys_mon.html">XSysMon</a> *InstancePtr)</td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="xsysmon_8c.html#4dcca19ce190753765061d94a343cc99">XSysMon_SetAlarmThreshold</a> (<a class="el" href="struct_x_sys_mon.html">XSysMon</a> *InstancePtr, u8 AlarmThrReg, u16 Value)</td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">u16&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="xsysmon_8c.html#0dad3f3c5eabe79b563a91f7cedb3105">XSysMon_GetAlarmThreshold</a> (<a class="el" href="struct_x_sys_mon.html">XSysMon</a> *InstancePtr, u8 AlarmThrReg)</td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="xsysmon_8c.html#624d5e3f2c19c450eeca0f8c2bf022a7">XSysMon_SetOverTemp</a> (<a class="el" href="struct_x_sys_mon.html">XSysMon</a> *InstancePtr, u16 Value)</td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">u16&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="xsysmon_8c.html#888fcb85d96983889c1469f98adb2460">XSysMon_GetOverTemp</a> (<a class="el" href="struct_x_sys_mon.html">XSysMon</a> *InstancePtr)</td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="xsysmon_8c.html#c81e2b730dae480a135473d019a3f865">XSysMon_EnableUserOverTemp</a> (<a class="el" href="struct_x_sys_mon.html">XSysMon</a> *InstancePtr)</td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="xsysmon_8c.html#8e642a4c0e595876680c082ed04fb0c7">XSysMon_DisableUserOverTemp</a> (<a class="el" href="struct_x_sys_mon.html">XSysMon</a> *InstancePtr)</td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="xsysmon_8c.html#98e86cbe6fb63d81fde3709a647eecfc">XSysMon_EnableTempUpdate</a> (<a class="el" href="struct_x_sys_mon.html">XSysMon</a> *InstancePtr)</td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="xsysmon_8c.html#474d728558895a4e1b195a1446a2c159">XSysMon_DisableTempUpdate</a> (<a class="el" href="struct_x_sys_mon.html">XSysMon</a> *InstancePtr)</td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="xsysmon_8c.html#4161a8a44ec568b383ddd237e3b78ef0">XSysMon_SetTempWaitCycles</a> (<a class="el" href="struct_x_sys_mon.html">XSysMon</a> *InstancePtr, u16 WaitCycles)</td></tr>
</table>
<hr><h2>Function Documentation</h2>
<a class="anchor" name="838d4abbaf39d8e890fd8413ca31b88f"></a><!-- doxytag: member="xsysmon.c::XSysMon_CfgInitialize" ref="838d4abbaf39d8e890fd8413ca31b88f" args="(XSysMon *InstancePtr, XSysMon_Config *ConfigPtr, u32 EffectiveAddr)" --><p>
<table class="mdTable" cellpadding="2" cellspacing="0">
<tr>
<td class="mdRow">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td class="md" nowrap valign="top">int XSysMon_CfgInitialize </td>
<td class="md" valign="top">(&nbsp;</td>
<td class="md" nowrap valign="top"><a class="el" href="struct_x_sys_mon.html">XSysMon</a> *&nbsp;</td>
<td class="mdname" nowrap> <em>InstancePtr</em>, </td>
</tr>
<tr>
<td class="md" nowrap align="right"></td>
<td class="md"></td>
<td class="md" nowrap><a class="el" href="struct_x_sys_mon___config.html">XSysMon_Config</a> *&nbsp;</td>
<td class="mdname" nowrap> <em>ConfigPtr</em>, </td>
</tr>
<tr>
<td class="md" nowrap align="right"></td>
<td class="md"></td>
<td class="md" nowrap>u32&nbsp;</td>
<td class="mdname" nowrap> <em>EffectiveAddr</em></td>
</tr>
<tr>
<td class="md"></td>
<td class="md">)&nbsp;</td>
<td class="md" colspan="2"></td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing="5" cellpadding="0" border="0">
<tr>
<td>
&nbsp;
</td>
<td>
<p>
This function initializes a specific <a class="el" href="struct_x_sys_mon.html">XSysMon</a> device/instance. This function must be called prior to using the System Monitor/ADC device.<p>
<dl compact><dt><b>Parameters:</b></dt><dd>
<table border="0" cellspacing="2" cellpadding="0">
<tr><td valign="top"></td><td valign="top"><em>InstancePtr</em>&nbsp;</td><td>is a pointer to the <a class="el" href="struct_x_sys_mon.html">XSysMon</a> instance. </td></tr>
<tr><td valign="top"></td><td valign="top"><em>ConfigPtr</em>&nbsp;</td><td>points to the <a class="el" href="struct_x_sys_mon.html">XSysMon</a> device configuration structure. </td></tr>
<tr><td valign="top"></td><td valign="top"><em>EffectiveAddr</em>&nbsp;</td><td>is the device base address in the virtual memory address space. If the address translation is not used then the physical address is passed. Unexpected errors may occur if the address mapping is changed after this function is invoked.</td></tr>
</table>
</dl>
<dl compact><dt><b>Returns:</b></dt><dd><ul>
<li>XST_SUCCESS if successful.</li></ul>
</dd></dl>
<dl compact><dt><b>Note:</b></dt><dd>The user needs to first call the <a class="el" href="xsysmon__sinit_8c.html#60e87be31c6bad8c4fce37f406b4e3b8">XSysMon_LookupConfig()</a> API which returns the Configuration structure pointer which is passed as a parameter to the <a class="el" href="xsysmon_8c.html#838d4abbaf39d8e890fd8413ca31b88f">XSysMon_CfgInitialize()</a> API. </dd></dl>
</td>
</tr>
</table>
<a class="anchor" name="474d728558895a4e1b195a1446a2c159"></a><!-- doxytag: member="xsysmon.c::XSysMon_DisableTempUpdate" ref="474d728558895a4e1b195a1446a2c159" args="(XSysMon *InstancePtr)" --><p>
<table class="mdTable" cellpadding="2" cellspacing="0">
<tr>
<td class="mdRow">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td class="md" nowrap valign="top">void XSysMon_DisableTempUpdate </td>
<td class="md" valign="top">(&nbsp;</td>
<td class="md" nowrap valign="top"><a class="el" href="struct_x_sys_mon.html">XSysMon</a> *&nbsp;</td>
<td class="mdname1" valign="top" nowrap> <em>InstancePtr</em> </td>
<td class="md" valign="top">&nbsp;)&nbsp;</td>
<td class="md" nowrap></td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing="5" cellpadding="0" border="0">
<tr>
<td>
&nbsp;
</td>
<td>
<p>
This function disables the Temperature updation logic for TEMP_OUT port<p>
<dl compact><dt><b>Parameters:</b></dt><dd>
<table border="0" cellspacing="2" cellpadding="0">
<tr><td valign="top"></td><td valign="top"><em>InstancePtr</em>&nbsp;</td><td>is a pointer to the <a class="el" href="struct_x_sys_mon.html">XSysMon</a> instance.</td></tr>
</table>
</dl>
<dl compact><dt><b>Returns:</b></dt><dd>None.</dd></dl>
<dl compact><dt><b>Note:</b></dt><dd>None </dd></dl>
</td>
</tr>
</table>
<a class="anchor" name="8e642a4c0e595876680c082ed04fb0c7"></a><!-- doxytag: member="xsysmon.c::XSysMon_DisableUserOverTemp" ref="8e642a4c0e595876680c082ed04fb0c7" args="(XSysMon *InstancePtr)" --><p>
<table class="mdTable" cellpadding="2" cellspacing="0">
<tr>
<td class="mdRow">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td class="md" nowrap valign="top">void XSysMon_DisableUserOverTemp </td>
<td class="md" valign="top">(&nbsp;</td>
<td class="md" nowrap valign="top"><a class="el" href="struct_x_sys_mon.html">XSysMon</a> *&nbsp;</td>
<td class="mdname1" valign="top" nowrap> <em>InstancePtr</em> </td>
<td class="md" valign="top">&nbsp;)&nbsp;</td>
<td class="md" nowrap></td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing="5" cellpadding="0" border="0">
<tr>
<td>
&nbsp;
</td>
<td>
<p>
This function disables programming of the powerdown temperature for the OverTemp signal in the OT Powerdown register.<p>
<dl compact><dt><b>Parameters:</b></dt><dd>
<table border="0" cellspacing="2" cellpadding="0">
<tr><td valign="top"></td><td valign="top"><em>InstancePtr</em>&nbsp;</td><td>is a pointer to the <a class="el" href="struct_x_sys_mon.html">XSysMon</a> instance.</td></tr>
</table>
</dl>
<dl compact><dt><b>Returns:</b></dt><dd>None.</dd></dl>
<dl compact><dt><b>Note:</b></dt><dd>This API should be used only with V6 SysMon/7 Series and Zynq XADC since the upper threshold of OverTemp is programmable in only V6 SysMon/7 Series and Zynq XADC. </dd></dl>
</td>
</tr>
</table>
<a class="anchor" name="98e86cbe6fb63d81fde3709a647eecfc"></a><!-- doxytag: member="xsysmon.c::XSysMon_EnableTempUpdate" ref="98e86cbe6fb63d81fde3709a647eecfc" args="(XSysMon *InstancePtr)" --><p>
<table class="mdTable" cellpadding="2" cellspacing="0">
<tr>
<td class="mdRow">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td class="md" nowrap valign="top">void XSysMon_EnableTempUpdate </td>
<td class="md" valign="top">(&nbsp;</td>
<td class="md" nowrap valign="top"><a class="el" href="struct_x_sys_mon.html">XSysMon</a> *&nbsp;</td>
<td class="mdname1" valign="top" nowrap> <em>InstancePtr</em> </td>
<td class="md" valign="top">&nbsp;)&nbsp;</td>
<td class="md" nowrap></td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing="5" cellpadding="0" border="0">
<tr>
<td>
&nbsp;
</td>
<td>
<p>
This function enables the Temperature updation logic so that temperature can be sent over TEMP_OUT port.<p>
<dl compact><dt><b>Parameters:</b></dt><dd>
<table border="0" cellspacing="2" cellpadding="0">
<tr><td valign="top"></td><td valign="top"><em>InstancePtr</em>&nbsp;</td><td>is a pointer to the <a class="el" href="struct_x_sys_mon.html">XSysMon</a> instance.</td></tr>
</table>
</dl>
<dl compact><dt><b>Returns:</b></dt><dd>None.</dd></dl>
<dl compact><dt><b>Note:</b></dt><dd>None </dd></dl>
</td>
</tr>
</table>
<a class="anchor" name="c81e2b730dae480a135473d019a3f865"></a><!-- doxytag: member="xsysmon.c::XSysMon_EnableUserOverTemp" ref="c81e2b730dae480a135473d019a3f865" args="(XSysMon *InstancePtr)" --><p>
<table class="mdTable" cellpadding="2" cellspacing="0">
<tr>
<td class="mdRow">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td class="md" nowrap valign="top">void XSysMon_EnableUserOverTemp </td>
<td class="md" valign="top">(&nbsp;</td>
<td class="md" nowrap valign="top"><a class="el" href="struct_x_sys_mon.html">XSysMon</a> *&nbsp;</td>
<td class="mdname1" valign="top" nowrap> <em>InstancePtr</em> </td>
<td class="md" valign="top">&nbsp;)&nbsp;</td>
<td class="md" nowrap></td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing="5" cellpadding="0" border="0">
<tr>
<td>
&nbsp;
</td>
<td>
<p>
This function enables programming of the powerdown temperature for the OverTemp signal in the OT Powerdown register.<p>
<dl compact><dt><b>Parameters:</b></dt><dd>
<table border="0" cellspacing="2" cellpadding="0">
<tr><td valign="top"></td><td valign="top"><em>InstancePtr</em>&nbsp;</td><td>is a pointer to the <a class="el" href="struct_x_sys_mon.html">XSysMon</a> instance.</td></tr>
</table>
</dl>
<dl compact><dt><b>Returns:</b></dt><dd>None.</dd></dl>
<dl compact><dt><b>Note:</b></dt><dd>This API should be used only with V6/7 Series since the upper threshold of OverTemp is programmable in only V6 SysMon/7 Series and Zynq XADC. </dd></dl>
</td>
</tr>
</table>
<a class="anchor" name="248fd0a5b5e075bfcc9764bc1e328349"></a><!-- doxytag: member="xsysmon.c::XSysMon_GetAdcClkDivisor" ref="248fd0a5b5e075bfcc9764bc1e328349" args="(XSysMon *InstancePtr)" --><p>
<table class="mdTable" cellpadding="2" cellspacing="0">
<tr>
<td class="mdRow">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td class="md" nowrap valign="top">u8 XSysMon_GetAdcClkDivisor </td>
<td class="md" valign="top">(&nbsp;</td>
<td class="md" nowrap valign="top"><a class="el" href="struct_x_sys_mon.html">XSysMon</a> *&nbsp;</td>
<td class="mdname1" valign="top" nowrap> <em>InstancePtr</em> </td>
<td class="md" valign="top">&nbsp;)&nbsp;</td>
<td class="md" nowrap></td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing="5" cellpadding="0" border="0">
<tr>
<td>
&nbsp;
</td>
<td>
<p>
The function gets the ADCCLK divisor from the Configuration Register 2.<p>
<dl compact><dt><b>Parameters:</b></dt><dd>
<table border="0" cellspacing="2" cellpadding="0">
<tr><td valign="top"></td><td valign="top"><em>InstancePtr</em>&nbsp;</td><td>is a pointer to the <a class="el" href="struct_x_sys_mon.html">XSysMon</a> instance.</td></tr>
</table>
</dl>
<dl compact><dt><b>Returns:</b></dt><dd>The divisor read from the Configuration Register 2.</dd></dl>
<dl compact><dt><b>Note:</b></dt><dd>The ADCCLK is an internal clock used by the ADC and is synchronized to the DCLK clock. The ADCCLK is equal to DCLK divided by the user selection in the Configuration Register 2. </dd></dl>
</td>
</tr>
</table>
<a class="anchor" name="2677727676ec06ca20546dc604a67452"></a><!-- doxytag: member="xsysmon.c::XSysMon_GetAdcData" ref="2677727676ec06ca20546dc604a67452" args="(XSysMon *InstancePtr, u8 Channel)" --><p>
<table class="mdTable" cellpadding="2" cellspacing="0">
<tr>
<td class="mdRow">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td class="md" nowrap valign="top">u16 XSysMon_GetAdcData </td>
<td class="md" valign="top">(&nbsp;</td>
<td class="md" nowrap valign="top"><a class="el" href="struct_x_sys_mon.html">XSysMon</a> *&nbsp;</td>
<td class="mdname" nowrap> <em>InstancePtr</em>, </td>
</tr>
<tr>
<td class="md" nowrap align="right"></td>
<td class="md"></td>
<td class="md" nowrap>u8&nbsp;</td>
<td class="mdname" nowrap> <em>Channel</em></td>
</tr>
<tr>
<td class="md"></td>
<td class="md">)&nbsp;</td>
<td class="md" colspan="2"></td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing="5" cellpadding="0" border="0">
<tr>
<td>
&nbsp;
</td>
<td>
<p>
Get the ADC converted data for the specified channel.<p>
<dl compact><dt><b>Parameters:</b></dt><dd>
<table border="0" cellspacing="2" cellpadding="0">
<tr><td valign="top"></td><td valign="top"><em>InstancePtr</em>&nbsp;</td><td>is a pointer to the <a class="el" href="struct_x_sys_mon.html">XSysMon</a> instance. </td></tr>
<tr><td valign="top"></td><td valign="top"><em>Channel</em>&nbsp;</td><td>is the channel number. Use the XSM_CH_* defined in the file xsysmon.h. The valid channels are 0 to 5 and 16 to 31 for all the device families. Channel 6 is valid for 7 Series and Zynq. Channel 13, 14, 15 are valid for Zynq. </td></tr>
</table>
</dl>
<dl compact><dt><b>Returns:</b></dt><dd>A 16-bit value representing the ADC converted data for the specified channel. The System Monitor/ADC device guarantees a 10 bit resolution for the ADC converted data and data is the 10 MSB bits of the 16 data read from the device.</dd></dl>
<dl compact><dt><b>Note:</b></dt><dd>The channels 7,8,9 are used for calibration of the device and hence there is no associated data with this channel. Please make sure that the proper channel number is passed. </dd></dl>
</td>
</tr>
</table>
<a class="anchor" name="a956591bd6e58972354a29e7b58162bc"></a><!-- doxytag: member="xsysmon.c::XSysMon_GetAlarmEnables" ref="a956591bd6e58972354a29e7b58162bc" args="(XSysMon *InstancePtr)" --><p>
<table class="mdTable" cellpadding="2" cellspacing="0">
<tr>
<td class="mdRow">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td class="md" nowrap valign="top">u16 XSysMon_GetAlarmEnables </td>
<td class="md" valign="top">(&nbsp;</td>
<td class="md" nowrap valign="top"><a class="el" href="struct_x_sys_mon.html">XSysMon</a> *&nbsp;</td>
<td class="mdname1" valign="top" nowrap> <em>InstancePtr</em> </td>
<td class="md" valign="top">&nbsp;)&nbsp;</td>
<td class="md" nowrap></td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing="5" cellpadding="0" border="0">
<tr>
<td>
&nbsp;
</td>
<td>
<p>
This function gets the status of the alarm output enables in the Configuration Register 1.<p>
<dl compact><dt><b>Parameters:</b></dt><dd>
<table border="0" cellspacing="2" cellpadding="0">
<tr><td valign="top"></td><td valign="top"><em>InstancePtr</em>&nbsp;</td><td>is a pointer to the <a class="el" href="struct_x_sys_mon.html">XSysMon</a> instance.</td></tr>
</table>
</dl>
<dl compact><dt><b>Returns:</b></dt><dd>This is the bit-mask of the enabled alarm outputs in the Configuration Register 1. Use the masks XSM_CFR1_ALM*_* and XSM_CFR1_OT_MASK defined in <a class="el" href="xsysmon__hw_8h.html">xsysmon_hw.h</a> to interpret the returned value. Bit positions of 1 indicate that the alarm output is enabled. Bit positions of 0 indicate that the alarm output is disabled.</dd></dl>
<dl compact><dt><b>Note:</b></dt><dd>The implementation of the alarm enables in the Configuration register 1 is such that alarms for the bit positions of 1 will be disabled and alarms for bit positions of 0 will be enabled. The enabled alarm outputs returned by this function is the negated value of the the data read from the Configuration Register 1. </dd></dl>
</td>
</tr>
</table>
<a class="anchor" name="0651f6fd486eaf24859fdf52e6206301"></a><!-- doxytag: member="xsysmon.c::XSysMon_GetAlarmOutputStatus" ref="0651f6fd486eaf24859fdf52e6206301" args="(XSysMon *InstancePtr)" --><p>
<table class="mdTable" cellpadding="2" cellspacing="0">
<tr>
<td class="mdRow">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td class="md" nowrap valign="top">u32 XSysMon_GetAlarmOutputStatus </td>
<td class="md" valign="top">(&nbsp;</td>
<td class="md" nowrap valign="top"><a class="el" href="struct_x_sys_mon.html">XSysMon</a> *&nbsp;</td>
<td class="mdname1" valign="top" nowrap> <em>InstancePtr</em> </td>
<td class="md" valign="top">&nbsp;)&nbsp;</td>
<td class="md" nowrap></td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing="5" cellpadding="0" border="0">
<tr>
<td>
&nbsp;
</td>
<td>
<p>
This function reads the contents of Alarm Output Register.<p>
<dl compact><dt><b>Parameters:</b></dt><dd>
<table border="0" cellspacing="2" cellpadding="0">
<tr><td valign="top"></td><td valign="top"><em>InstancePtr</em>&nbsp;</td><td>is a pointer to the <a class="el" href="struct_x_sys_mon.html">XSysMon</a> instance.</td></tr>
</table>
</dl>
<dl compact><dt><b>Returns:</b></dt><dd>A 32-bit value read from the Alarm Output Register. Use the XSM_AOR_*_MASK constants defined in <a class="el" href="xsysmon__hw_8h.html">xsysmon_hw.h</a> to interpret the value.</dd></dl>
<dl compact><dt><b>Note:</b></dt><dd>None. </dd></dl>
</td>
</tr>
</table>
<a class="anchor" name="0dad3f3c5eabe79b563a91f7cedb3105"></a><!-- doxytag: member="xsysmon.c::XSysMon_GetAlarmThreshold" ref="0dad3f3c5eabe79b563a91f7cedb3105" args="(XSysMon *InstancePtr, u8 AlarmThrReg)" --><p>
<table class="mdTable" cellpadding="2" cellspacing="0">
<tr>
<td class="mdRow">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td class="md" nowrap valign="top">u16 XSysMon_GetAlarmThreshold </td>
<td class="md" valign="top">(&nbsp;</td>
<td class="md" nowrap valign="top"><a class="el" href="struct_x_sys_mon.html">XSysMon</a> *&nbsp;</td>
<td class="mdname" nowrap> <em>InstancePtr</em>, </td>
</tr>
<tr>
<td class="md" nowrap align="right"></td>
<td class="md"></td>
<td class="md" nowrap>u8&nbsp;</td>
<td class="mdname" nowrap> <em>AlarmThrReg</em></td>
</tr>
<tr>
<td class="md"></td>
<td class="md">)&nbsp;</td>
<td class="md" colspan="2"></td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing="5" cellpadding="0" border="0">
<tr>
<td>
&nbsp;
</td>
<td>
<p>
This function returns the contents of the specified Alarm Threshold Register.<p>
<dl compact><dt><b>Parameters:</b></dt><dd>
<table border="0" cellspacing="2" cellpadding="0">
<tr><td valign="top"></td><td valign="top"><em>InstancePtr</em>&nbsp;</td><td>is a pointer to the <a class="el" href="struct_x_sys_mon.html">XSysMon</a> instance. </td></tr>
<tr><td valign="top"></td><td valign="top"><em>AlarmThrReg</em>&nbsp;</td><td>is the index of an Alarm Threshold Register to be read. Use XSM_ATR_* constants defined in xsysmon.h to specify the index.</td></tr>
</table>
</dl>
<dl compact><dt><b>Returns:</b></dt><dd>A 16-bit value representing the contents of the selected Alarm Threshold Register.</dd></dl>
<dl compact><dt><b>Note:</b></dt><dd>Over Temperature upper threshold is programmable only in V6 and 7 Series XADC BRAM high and low voltage threshold registers are available only in 7 Series and Zynq XADC. All the remaining Alarm Threshold registers specified by the constants XSM_ATR_*, are available in all the families of the Sysmon. </dd></dl>
</td>
</tr>
</table>
<a class="anchor" name="fe7a647c4837615c384725fe7a7f742a"></a><!-- doxytag: member="xsysmon.c::XSysMon_GetAvg" ref="fe7a647c4837615c384725fe7a7f742a" args="(XSysMon *InstancePtr)" --><p>
<table class="mdTable" cellpadding="2" cellspacing="0">
<tr>
<td class="mdRow">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td class="md" nowrap valign="top">u8 XSysMon_GetAvg </td>
<td class="md" valign="top">(&nbsp;</td>
<td class="md" nowrap valign="top"><a class="el" href="struct_x_sys_mon.html">XSysMon</a> *&nbsp;</td>
<td class="mdname1" valign="top" nowrap> <em>InstancePtr</em> </td>
<td class="md" valign="top">&nbsp;)&nbsp;</td>
<td class="md" nowrap></td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing="5" cellpadding="0" border="0">
<tr>
<td>
&nbsp;
</td>
<td>
<p>
This function returns the number of samples of averaging configured for all the channels in the Configuration Register 0.<p>
<dl compact><dt><b>Parameters:</b></dt><dd>
<table border="0" cellspacing="2" cellpadding="0">
<tr><td valign="top"></td><td valign="top"><em>InstancePtr</em>&nbsp;</td><td>is a pointer to the <a class="el" href="struct_x_sys_mon.html">XSysMon</a> instance.</td></tr>
</table>
</dl>
<dl compact><dt><b>Returns:</b></dt><dd>The averaging read from the Configuration Register 0 is returned. Use the XSM_AVG_* bit definitions defined in xsysmon.h file to interpret the returned value :<ul>
<li>XSM_AVG_0_SAMPLES means no averaging</li><li>XSM_AVG_16_SAMPLES means 16 samples of averaging</li><li>XSM_AVG_64_SAMPLES means 64 samples of averaging</li><li>XSM_AVG_256_SAMPLES means 256 samples of averaging</li></ul>
</dd></dl>
<dl compact><dt><b>Note:</b></dt><dd>None. </dd></dl>
</td>
</tr>
</table>
<a class="anchor" name="8f0fa71a714ee041e1a7e803d7e53cfa"></a><!-- doxytag: member="xsysmon.c::XSysMon_GetCalibCoefficient" ref="8f0fa71a714ee041e1a7e803d7e53cfa" args="(XSysMon *InstancePtr, u8 CoeffType)" --><p>
<table class="mdTable" cellpadding="2" cellspacing="0">
<tr>
<td class="mdRow">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td class="md" nowrap valign="top">u16 XSysMon_GetCalibCoefficient </td>
<td class="md" valign="top">(&nbsp;</td>
<td class="md" nowrap valign="top"><a class="el" href="struct_x_sys_mon.html">XSysMon</a> *&nbsp;</td>
<td class="mdname" nowrap> <em>InstancePtr</em>, </td>
</tr>
<tr>
<td class="md" nowrap align="right"></td>
<td class="md"></td>
<td class="md" nowrap>u8&nbsp;</td>
<td class="mdname" nowrap> <em>CoeffType</em></td>
</tr>
<tr>
<td class="md"></td>
<td class="md">)&nbsp;</td>
<td class="md" colspan="2"></td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing="5" cellpadding="0" border="0">
<tr>
<td>
&nbsp;
</td>
<td>
<p>
This function gets the calibration coefficient data for the specified parameter.<p>
<dl compact><dt><b>Parameters:</b></dt><dd>
<table border="0" cellspacing="2" cellpadding="0">
<tr><td valign="top"></td><td valign="top"><em>InstancePtr</em>&nbsp;</td><td>is a pointer to the <a class="el" href="struct_x_sys_mon.html">XSysMon</a> instance. </td></tr>
<tr><td valign="top"></td><td valign="top"><em>CoeffType</em>&nbsp;</td><td>specifies the calibration coefficient to be read. Use XSM_CALIB_* constants defined in xsysmon.h to specify the calibration coefficient to be read.</td></tr>
</table>
</dl>
<dl compact><dt><b>Returns:</b></dt><dd>A 16-bit value representing the calibration coefficient. The System Monitor/ADC device guarantees a 10 bit resolution for the ADC converted data and data is the 10 MSB bits of the 16 data read from the device.</dd></dl>
<dl compact><dt><b>Note:</b></dt><dd>None. </dd></dl>
</td>
</tr>
</table>
<a class="anchor" name="6556544c9fd945d2e4d4e728314c1129"></a><!-- doxytag: member="xsysmon.c::XSysMon_GetCalibEnables" ref="6556544c9fd945d2e4d4e728314c1129" args="(XSysMon *InstancePtr)" --><p>
<table class="mdTable" cellpadding="2" cellspacing="0">
<tr>
<td class="mdRow">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td class="md" nowrap valign="top">u16 XSysMon_GetCalibEnables </td>
<td class="md" valign="top">(&nbsp;</td>
<td class="md" nowrap valign="top"><a class="el" href="struct_x_sys_mon.html">XSysMon</a> *&nbsp;</td>
<td class="mdname1" valign="top" nowrap> <em>InstancePtr</em> </td>
<td class="md" valign="top">&nbsp;)&nbsp;</td>
<td class="md" nowrap></td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing="5" cellpadding="0" border="0">
<tr>
<td>
&nbsp;
</td>
<td>
<p>
This function reads the value of the calibration enables from the Configuration Register 1.<p>
<dl compact><dt><b>Parameters:</b></dt><dd>
<table border="0" cellspacing="2" cellpadding="0">
<tr><td valign="top"></td><td valign="top"><em>InstancePtr</em>&nbsp;</td><td>is a pointer to the <a class="el" href="struct_x_sys_mon.html">XSysMon</a> instance.</td></tr>
</table>
</dl>
<dl compact><dt><b>Returns:</b></dt><dd>The value of the calibration enables in the Configuration Register 1 :<ul>
<li>XSM_CFR1_CAL_ADC_OFFSET_MASK : ADC offset correction</li><li>XSM_CFR1_CAL_ADC_GAIN_OFFSET_MASK : ADC gain and offset correction</li><li>XSM_CFR1_CAL_PS_OFFSET_MASK : Power Supply sensor offset correction</li><li>XSM_CFR1_CAL_PS_GAIN_OFFSET_MASK : Power Supply sensor gain and offset correction</li><li>XSM_CFR1_CAL_DISABLE_MASK : No Calibration</li></ul>
</dd></dl>
<dl compact><dt><b>Note:</b></dt><dd>None. </dd></dl>
</td>
</tr>
</table>
<a class="anchor" name="82f04e04d1155d091b26ebc72344eb2c"></a><!-- doxytag: member="xsysmon.c::XSysMon_GetMinMaxMeasurement" ref="82f04e04d1155d091b26ebc72344eb2c" args="(XSysMon *InstancePtr, u8 MeasurementType)" --><p>
<table class="mdTable" cellpadding="2" cellspacing="0">
<tr>
<td class="mdRow">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td class="md" nowrap valign="top">u16 XSysMon_GetMinMaxMeasurement </td>
<td class="md" valign="top">(&nbsp;</td>
<td class="md" nowrap valign="top"><a class="el" href="struct_x_sys_mon.html">XSysMon</a> *&nbsp;</td>
<td class="mdname" nowrap> <em>InstancePtr</em>, </td>
</tr>
<tr>
<td class="md" nowrap align="right"></td>
<td class="md"></td>
<td class="md" nowrap>u8&nbsp;</td>
<td class="mdname" nowrap> <em>MeasurementType</em></td>
</tr>
<tr>
<td class="md"></td>
<td class="md">)&nbsp;</td>
<td class="md" colspan="2"></td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing="5" cellpadding="0" border="0">
<tr>
<td>
&nbsp;
</td>
<td>
<p>
This function reads the Minimum/Maximum measurement for one of the following parameters :<ul>
<li>Minimum Temperature (XSM_MIN_TEMP)</li><li>Minimum VCCINT (XSM_MIN_VCCINT)</li><li>Minimum VCCAUX (XSM_MIN_VCCAUX)</li><li>Maximum Temperature (XSM_MAX_TEMP)</li><li>Maximum VCCINT (XSM_MAX_VCCINT)</li><li>Maximum VCCAUX (XSM_MAX_VCCAUX)</li><li>Maximum VCCBRAM (XSM_MAX_VCCBRAM) - 7 series and Zynq only</li><li>Minimum VCCBRAM (XSM_MIN_VCCBRAM) - 7 series and Zynq only</li><li>Maximum VCCPINT (XSM_MAX_VCCPINT) - Zynq only</li><li>Maximum VCCPAUX (XSM_MAX_VCCPAUX) - Zynq only</li><li>Maximum VCCPDRO (XSM_MAX_VCCPDRO) - Zynq only</li><li>Minimum VCCPINT (XSM_MIN_VCCPINT) - Zynq only</li><li>Minimum VCCPAUX (XSM_MIN_VCCPAUX) - Zynq only</li><li>Minimum VCCPDRO (XSM_MIN_VCCPDRO) - Zynq only</li></ul>
<p>
<dl compact><dt><b>Parameters:</b></dt><dd>
<table border="0" cellspacing="2" cellpadding="0">
<tr><td valign="top"></td><td valign="top"><em>InstancePtr</em>&nbsp;</td><td>is a pointer to the <a class="el" href="struct_x_sys_mon.html">XSysMon</a> instance. </td></tr>
<tr><td valign="top"></td><td valign="top"><em>MeasurementType</em>&nbsp;</td><td>specifies the parameter for which the Minimum/Maximum measurement has to be read. Use XSM_MAX_* and XSM_MIN_* constants defined in xsysmon.h to specify the data to be read.</td></tr>
</table>
</dl>
<dl compact><dt><b>Returns:</b></dt><dd>A 16-bit value representing the maximum/minimum measurement for specified parameter. The System Monitor/ADC device guarantees a 10 bit resolution for the ADC converted data and data is the 10 MSB bits of 16 bit data read from the device.</dd></dl>
<dl compact><dt><b>Note:</b></dt><dd>BRAM VCC is available only in 7 Series and Zynq XADC. </dd></dl>
</td>
</tr>
</table>
<a class="anchor" name="888fcb85d96983889c1469f98adb2460"></a><!-- doxytag: member="xsysmon.c::XSysMon_GetOverTemp" ref="888fcb85d96983889c1469f98adb2460" args="(XSysMon *InstancePtr)" --><p>
<table class="mdTable" cellpadding="2" cellspacing="0">
<tr>
<td class="mdRow">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td class="md" nowrap valign="top">u16 XSysMon_GetOverTemp </td>
<td class="md" valign="top">(&nbsp;</td>
<td class="md" nowrap valign="top"><a class="el" href="struct_x_sys_mon.html">XSysMon</a> *&nbsp;</td>
<td class="mdname1" valign="top" nowrap> <em>InstancePtr</em> </td>
<td class="md" valign="top">&nbsp;)&nbsp;</td>
<td class="md" nowrap></td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing="5" cellpadding="0" border="0">
<tr>
<td>
&nbsp;
</td>
<td>
<p>
This function returns the powerdown temperature of the OverTemp signal in the OT Powerdown register.<p>
<dl compact><dt><b>Parameters:</b></dt><dd>
<table border="0" cellspacing="2" cellpadding="0">
<tr><td valign="top"></td><td valign="top"><em>InstancePtr</em>&nbsp;</td><td>is a pointer to the <a class="el" href="struct_x_sys_mon.html">XSysMon</a> instance.</td></tr>
</table>
</dl>
<dl compact><dt><b>Returns:</b></dt><dd>A 12-bit OT Upper Alarm Register powerdown value.</dd></dl>
<dl compact><dt><b>Note:</b></dt><dd>This API has been deprecated. Use <a class="el" href="xsysmon_8c.html#0dad3f3c5eabe79b563a91f7cedb3105">XSysMon_GetAlarmThreshold()</a>, instead. This API should be used only with V6/7 Series since the upper threshold of OverTemp is programmable in only V6 SysMon/7 Series and Zynq XADC. </dd></dl>
</td>
</tr>
</table>
<a class="anchor" name="713d3c6992912fc14544dc0d937f9b4b"></a><!-- doxytag: member="xsysmon.c::XSysMon_GetSeqAcqTime" ref="713d3c6992912fc14544dc0d937f9b4b" args="(XSysMon *InstancePtr)" --><p>
<table class="mdTable" cellpadding="2" cellspacing="0">
<tr>
<td class="mdRow">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td class="md" nowrap valign="top">u32 XSysMon_GetSeqAcqTime </td>
<td class="md" valign="top">(&nbsp;</td>
<td class="md" nowrap valign="top"><a class="el" href="struct_x_sys_mon.html">XSysMon</a> *&nbsp;</td>
<td class="mdname1" valign="top" nowrap> <em>InstancePtr</em> </td>
<td class="md" valign="top">&nbsp;)&nbsp;</td>
<td class="md" nowrap></td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing="5" cellpadding="0" border="0">
<tr>
<td>
&nbsp;
</td>
<td>
<p>
This function gets the status of acquisition from the ADC Channel Acquisition Time Sequencer Registers.<p>
<dl compact><dt><b>Parameters:</b></dt><dd>
<table border="0" cellspacing="2" cellpadding="0">
<tr><td valign="top"></td><td valign="top"><em>InstancePtr</em>&nbsp;</td><td>is a pointer to the <a class="el" href="struct_x_sys_mon.html">XSysMon</a> instance.</td></tr>
</table>
</dl>
<dl compact><dt><b>Returns:</b></dt><dd>The acquisition time for all the channels. Use XSM_SEQ_CH__* defined in <a class="el" href="xsysmon__hw_8h.html">xsysmon_hw.h</a> to interpret the Channel numbers. Bit masks of 1 are the channels for which acquisition cycles are extended and bit mask of 0 are the channels for which acquisition cycles are not extended.</dd></dl>
<dl compact><dt><b>Note:</b></dt><dd>None. </dd></dl>
</td>
</tr>
</table>
<a class="anchor" name="8245b00bdacc70a3dc71bcce4b2cb65d"></a><!-- doxytag: member="xsysmon.c::XSysMon_GetSeqAvgEnables" ref="8245b00bdacc70a3dc71bcce4b2cb65d" args="(XSysMon *InstancePtr)" --><p>
<table class="mdTable" cellpadding="2" cellspacing="0">
<tr>
<td class="mdRow">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td class="md" nowrap valign="top">u32 XSysMon_GetSeqAvgEnables </td>
<td class="md" valign="top">(&nbsp;</td>
<td class="md" nowrap valign="top"><a class="el" href="struct_x_sys_mon.html">XSysMon</a> *&nbsp;</td>
<td class="mdname1" valign="top" nowrap> <em>InstancePtr</em> </td>
<td class="md" valign="top">&nbsp;)&nbsp;</td>
<td class="md" nowrap></td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing="5" cellpadding="0" border="0">
<tr>
<td>
&nbsp;
</td>
<td>
<p>
This function returns the channels for which the averaging has been enabled in the ADC Channel Averaging Enables Sequencer Registers.<p>
<dl compact><dt><b>Parameters:</b></dt><dd>
<table border="0" cellspacing="2" cellpadding="0">
<tr><td valign="top"></td><td valign="top"><em>InstancePtr</em>&nbsp;</td><td>is a pointer to the <a class="el" href="struct_x_sys_mon.html">XSysMon</a> instance.</td></tr>
</table>
</dl>
<dl compact><dt><b>Returns:</b></dt><dd>The status of averaging (enabled/disabled) for all the channels. Use XSM_SEQ_CH__* defined in <a class="el" href="xsysmon__hw_8h.html">xsysmon_hw.h</a> to interpret the Channel numbers. Bit masks of 1 are the channels for which averaging is enabled and bit mask of 0 are the channels for averaging is disabled.</dd></dl>
<dl compact><dt><b>Note:</b></dt><dd>None. </dd></dl>
</td>
</tr>
</table>
<a class="anchor" name="b4893c6216bf007efb0cca436da0f691"></a><!-- doxytag: member="xsysmon.c::XSysMon_GetSeqChEnables" ref="b4893c6216bf007efb0cca436da0f691" args="(XSysMon *InstancePtr)" --><p>
<table class="mdTable" cellpadding="2" cellspacing="0">
<tr>
<td class="mdRow">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td class="md" nowrap valign="top">u32 XSysMon_GetSeqChEnables </td>
<td class="md" valign="top">(&nbsp;</td>
<td class="md" nowrap valign="top"><a class="el" href="struct_x_sys_mon.html">XSysMon</a> *&nbsp;</td>
<td class="mdname1" valign="top" nowrap> <em>InstancePtr</em> </td>
<td class="md" valign="top">&nbsp;)&nbsp;</td>
<td class="md" nowrap></td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing="5" cellpadding="0" border="0">
<tr>
<td>
&nbsp;
</td>
<td>
<p>
This function gets the channel enable bits status from the ADC Channel Selection Sequencer Registers.<p>
<dl compact><dt><b>Parameters:</b></dt><dd>
<table border="0" cellspacing="2" cellpadding="0">
<tr><td valign="top"></td><td valign="top"><em>InstancePtr</em>&nbsp;</td><td>is a pointer to the <a class="el" href="struct_x_sys_mon.html">XSysMon</a> instance.</td></tr>
</table>
</dl>
<dl compact><dt><b>Returns:</b></dt><dd>Gets the channel enable bits. Use XSM_SEQ_CH_* defined in <a class="el" href="xsysmon__hw_8h.html">xsysmon_hw.h</a> to interpret the Channel numbers. Bit masks of 1 are the channels that are enabled and bit mask of 0 are the channels that are disabled.<p>
None.</dd></dl>
<dl compact><dt><b>Note:</b></dt><dd>None. </dd></dl>
</td>
</tr>
</table>
<a class="anchor" name="094f8ffa221967080c7ebb5beaf77eea"></a><!-- doxytag: member="xsysmon.c::XSysMon_GetSeqInputMode" ref="094f8ffa221967080c7ebb5beaf77eea" args="(XSysMon *InstancePtr)" --><p>
<table class="mdTable" cellpadding="2" cellspacing="0">
<tr>
<td class="mdRow">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td class="md" nowrap valign="top">u32 XSysMon_GetSeqInputMode </td>
<td class="md" valign="top">(&nbsp;</td>
<td class="md" nowrap valign="top"><a class="el" href="struct_x_sys_mon.html">XSysMon</a> *&nbsp;</td>
<td class="mdname1" valign="top" nowrap> <em>InstancePtr</em> </td>
<td class="md" valign="top">&nbsp;)&nbsp;</td>
<td class="md" nowrap></td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing="5" cellpadding="0" border="0">
<tr>
<td>
&nbsp;
</td>
<td>
<p>
This function gets the Analog input mode for all the channels from the ADC Channel Analog-Input Mode Sequencer Registers.<p>
<dl compact><dt><b>Parameters:</b></dt><dd>
<table border="0" cellspacing="2" cellpadding="0">
<tr><td valign="top"></td><td valign="top"><em>InstancePtr</em>&nbsp;</td><td>is a pointer to the <a class="el" href="struct_x_sys_mon.html">XSysMon</a> instance.</td></tr>
</table>
</dl>
<dl compact><dt><b>Returns:</b></dt><dd>The input mode for all the channels. Use XSM_SEQ_CH_* defined in <a class="el" href="xsysmon__hw_8h.html">xsysmon_hw.h</a> to interpret the Channel numbers. Bit masks of 1 are the channels for which input mode is differential and bit mask of 0 are the channels for which input mode is unipolar.</dd></dl>
<dl compact><dt><b>Note:</b></dt><dd>None. </dd></dl>
</td>
</tr>
</table>
<a class="anchor" name="b42ec58d5df29b4e7a15e427e72cb0d7"></a><!-- doxytag: member="xsysmon.c::XSysMon_GetSequencerMode" ref="b42ec58d5df29b4e7a15e427e72cb0d7" args="(XSysMon *InstancePtr)" --><p>
<table class="mdTable" cellpadding="2" cellspacing="0">
<tr>
<td class="mdRow">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td class="md" nowrap valign="top">u8 XSysMon_GetSequencerMode </td>
<td class="md" valign="top">(&nbsp;</td>
<td class="md" nowrap valign="top"><a class="el" href="struct_x_sys_mon.html">XSysMon</a> *&nbsp;</td>
<td class="mdname1" valign="top" nowrap> <em>InstancePtr</em> </td>
<td class="md" valign="top">&nbsp;)&nbsp;</td>
<td class="md" nowrap></td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing="5" cellpadding="0" border="0">
<tr>
<td>
&nbsp;
</td>
<td>
<p>
This function gets the channel sequencer mode from the Configuration Register 1.<p>
<dl compact><dt><b>Parameters:</b></dt><dd>
<table border="0" cellspacing="2" cellpadding="0">
<tr><td valign="top"></td><td valign="top"><em>InstancePtr</em>&nbsp;</td><td>is a pointer to the <a class="el" href="struct_x_sys_mon.html">XSysMon</a> instance.</td></tr>
</table>
</dl>
<dl compact><dt><b>Returns:</b></dt><dd>The channel sequencer mode :<ul>
<li>XSM_SEQ_MODE_SAFE : Default safe mode</li><li>XSM_SEQ_MODE_ONEPASS : One pass through sequence</li><li>XSM_SEQ_MODE_CONTINPASS : Continuous channel sequencing</li><li>XSM_SEQ_MODE_SINGCHAN : Single channel/Sequencer off</li><li>XSM_SEQ_MODE_SIMUL : Simulataneous sampling mode</li><li>XSM_SEQ_MODE_INDEPENDENT : Independent mode</li></ul>
</dd></dl>
<dl compact><dt><b>Note:</b></dt><dd>None. </dd></dl>
</td>
</tr>
</table>
<a class="anchor" name="7caea2afd654f9fa384572e4bdd13474"></a><!-- doxytag: member="xsysmon.c::XSysMon_GetStatus" ref="7caea2afd654f9fa384572e4bdd13474" args="(XSysMon *InstancePtr)" --><p>
<table class="mdTable" cellpadding="2" cellspacing="0">
<tr>
<td class="mdRow">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td class="md" nowrap valign="top">u32 XSysMon_GetStatus </td>
<td class="md" valign="top">(&nbsp;</td>
<td class="md" nowrap valign="top"><a class="el" href="struct_x_sys_mon.html">XSysMon</a> *&nbsp;</td>
<td class="mdname1" valign="top" nowrap> <em>InstancePtr</em> </td>
<td class="md" valign="top">&nbsp;)&nbsp;</td>
<td class="md" nowrap></td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing="5" cellpadding="0" border="0">
<tr>
<td>
&nbsp;
</td>
<td>
<p>
The functions reads the contents of the Status Register.<p>
<dl compact><dt><b>Parameters:</b></dt><dd>
<table border="0" cellspacing="2" cellpadding="0">
<tr><td valign="top"></td><td valign="top"><em>InstancePtr</em>&nbsp;</td><td>is a pointer to the <a class="el" href="struct_x_sys_mon.html">XSysMon</a> instance.</td></tr>
</table>
</dl>
<dl compact><dt><b>Returns:</b></dt><dd>A 32-bit value representing the contents of the Status Register. Use the XSM_SR_*_MASK constants defined in <a class="el" href="xsysmon__hw_8h.html">xsysmon_hw.h</a> to interpret the returned value.</dd></dl>
<dl compact><dt><b>Note:</b></dt><dd>None. </dd></dl>
</td>
</tr>
</table>
<a class="anchor" name="96154fe72db73dbbcb2e5f3f52ce62a6"></a><!-- doxytag: member="xsysmon.c::XSysMon_Reset" ref="96154fe72db73dbbcb2e5f3f52ce62a6" args="(XSysMon *InstancePtr)" --><p>
<table class="mdTable" cellpadding="2" cellspacing="0">
<tr>
<td class="mdRow">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td class="md" nowrap valign="top">void XSysMon_Reset </td>
<td class="md" valign="top">(&nbsp;</td>
<td class="md" nowrap valign="top"><a class="el" href="struct_x_sys_mon.html">XSysMon</a> *&nbsp;</td>
<td class="mdname1" valign="top" nowrap> <em>InstancePtr</em> </td>
<td class="md" valign="top">&nbsp;)&nbsp;</td>
<td class="md" nowrap></td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing="5" cellpadding="0" border="0">
<tr>
<td>
&nbsp;
</td>
<td>
<p>
This function forces the software reset of the complete SystemMonitor/ADC Hard Macro and the SYSMON ADC Core Logic.<p>
<dl compact><dt><b>Parameters:</b></dt><dd>
<table border="0" cellspacing="2" cellpadding="0">
<tr><td valign="top"></td><td valign="top"><em>InstancePtr</em>&nbsp;</td><td>is a pointer to the <a class="el" href="struct_x_sys_mon.html">XSysMon</a> instance.</td></tr>
</table>
</dl>
<dl compact><dt><b>Returns:</b></dt><dd>None.</dd></dl>
<dl compact><dt><b>Note:</b></dt><dd>The Control registers in the SystemMonitor/ADC Hard Macro are not affected by this reset, only the Status registers are reset. Refer to the device data sheet for the device status and register values after the reset. Use the <a class="el" href="xsysmon_8c.html#c89dda54886b37d473b4c15b33368c72">XSysMon_ResetAdc()</a> to reset only the SystemMonitor/ADC Hard Macro. </dd></dl>
</td>
</tr>
</table>
<a class="anchor" name="c89dda54886b37d473b4c15b33368c72"></a><!-- doxytag: member="xsysmon.c::XSysMon_ResetAdc" ref="c89dda54886b37d473b4c15b33368c72" args="(XSysMon *InstancePtr)" --><p>
<table class="mdTable" cellpadding="2" cellspacing="0">
<tr>
<td class="mdRow">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td class="md" nowrap valign="top">void XSysMon_ResetAdc </td>
<td class="md" valign="top">(&nbsp;</td>
<td class="md" nowrap valign="top"><a class="el" href="struct_x_sys_mon.html">XSysMon</a> *&nbsp;</td>
<td class="mdname1" valign="top" nowrap> <em>InstancePtr</em> </td>
<td class="md" valign="top">&nbsp;)&nbsp;</td>
<td class="md" nowrap></td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing="5" cellpadding="0" border="0">
<tr>
<td>
&nbsp;
</td>
<td>
<p>
This function resets the SystemMonitor/ADC Hard Macro in the device.<p>
<dl compact><dt><b>Parameters:</b></dt><dd>
<table border="0" cellspacing="2" cellpadding="0">
<tr><td valign="top"></td><td valign="top"><em>InstancePtr</em>&nbsp;</td><td>is a pointer to the <a class="el" href="struct_x_sys_mon.html">XSysMon</a> instance.</td></tr>
</table>
</dl>
<dl compact><dt><b>Returns:</b></dt><dd>None.</dd></dl>
<dl compact><dt><b>Note:</b></dt><dd>The Control registers in the SystemMonitor/ADC Hard Macro are not affected by this reset, only the Status registers are reset. This reset causes the ADC to begin with a new conversion. Refer to the device data sheet for the device status and register values after the reset. Use the <a class="el" href="xsysmon_8c.html#96154fe72db73dbbcb2e5f3f52ce62a6">XSysMon_Reset()</a> API to reset both the SystemMonitor/ADC Hard Macro and the SYSMON ADC Core Logic. </dd></dl>
</td>
</tr>
</table>
<a class="anchor" name="2778590242be8eff2cb0e75d518801ee"></a><!-- doxytag: member="xsysmon.c::XSysMon_SetAdcClkDivisor" ref="2778590242be8eff2cb0e75d518801ee" args="(XSysMon *InstancePtr, u8 Divisor)" --><p>
<table class="mdTable" cellpadding="2" cellspacing="0">
<tr>
<td class="mdRow">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td class="md" nowrap valign="top">void XSysMon_SetAdcClkDivisor </td>
<td class="md" valign="top">(&nbsp;</td>
<td class="md" nowrap valign="top"><a class="el" href="struct_x_sys_mon.html">XSysMon</a> *&nbsp;</td>
<td class="mdname" nowrap> <em>InstancePtr</em>, </td>
</tr>
<tr>
<td class="md" nowrap align="right"></td>
<td class="md"></td>
<td class="md" nowrap>u8&nbsp;</td>
<td class="mdname" nowrap> <em>Divisor</em></td>
</tr>
<tr>
<td class="md"></td>
<td class="md">)&nbsp;</td>
<td class="md" colspan="2"></td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing="5" cellpadding="0" border="0">
<tr>
<td>
&nbsp;
</td>
<td>
<p>
The function sets the frequency of the ADCCLK by configuring the DCLK to ADCCLK ratio in the Configuration Register #2.<p>
<dl compact><dt><b>Parameters:</b></dt><dd>
<table border="0" cellspacing="2" cellpadding="0">
<tr><td valign="top"></td><td valign="top"><em>InstancePtr</em>&nbsp;</td><td>is a pointer to the <a class="el" href="struct_x_sys_mon.html">XSysMon</a> instance. </td></tr>
<tr><td valign="top"></td><td valign="top"><em>Divisor</em>&nbsp;</td><td>is clock divisor used to derive ADCCLK from DCLK. Valid values of the divisor are<ul>
<li>8 to 255 for V5 SysMon.</li><li>0 to 255 for V6/7 Series and Zynq XADC. Values 0, 1, 2 are all mapped to 2. Refer to the device specification for more details.</li></ul>
</td></tr>
</table>
</dl>
<dl compact><dt><b>Returns:</b></dt><dd>None.</dd></dl>
<dl compact><dt><b>Note:</b></dt><dd>- The ADCCLK is an internal clock used by the ADC and is synchronized to the DCLK clock. The ADCCLK is equal to DCLK divided by the user selection in the Configuration Register 2.<ul>
<li>There is no Assert on the minimum value of the Divisor. Users must take care such that the minimum value of Divisor used is 8, in case of V5 SysMon. </li></ul>
</dd></dl>
</td>
</tr>
</table>
<a class="anchor" name="ad57c0bcfa85ac008e6de9e4a0b1786e"></a><!-- doxytag: member="xsysmon.c::XSysMon_SetAlarmEnables" ref="ad57c0bcfa85ac008e6de9e4a0b1786e" args="(XSysMon *InstancePtr, u16 AlmEnableMask)" --><p>
<table class="mdTable" cellpadding="2" cellspacing="0">
<tr>
<td class="mdRow">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td class="md" nowrap valign="top">void XSysMon_SetAlarmEnables </td>
<td class="md" valign="top">(&nbsp;</td>
<td class="md" nowrap valign="top"><a class="el" href="struct_x_sys_mon.html">XSysMon</a> *&nbsp;</td>
<td class="mdname" nowrap> <em>InstancePtr</em>, </td>
</tr>
<tr>
<td class="md" nowrap align="right"></td>
<td class="md"></td>
<td class="md" nowrap>u16&nbsp;</td>
<td class="mdname" nowrap> <em>AlmEnableMask</em></td>
</tr>
<tr>
<td class="md"></td>
<td class="md">)&nbsp;</td>
<td class="md" colspan="2"></td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing="5" cellpadding="0" border="0">
<tr>
<td>
&nbsp;
</td>
<td>
<p>
This function enables the alarm outputs for the specified alarms in the Configuration Register 1 :<p>
<ul>
<li>OT for Over Temperature (XSM_CFR1_OT_MASK)</li><li>ALM0 for On board Temperature (XSM_CFR1_ALM_TEMP_MASK)</li><li>ALM1 for VCCINT (XSM_CFR1_ALM_VCCINT_MASK)</li><li>ALM2 for VCCAUX (XSM_CFR1_ALM_VCCAUX_MASK)</li><li>ALM3 for VBRAM (XSM_CFR1_ALM_VBRAM_MASK)for 7 Series and Zynq</li><li>ALM4 for VCCPINT (XSM_CFR1_ALM_VCCPINT_MASK) for Zynq</li><li>ALM5 for VCCPAUX (XSM_CFR1_ALM_VCCPAUX_MASK) for Zynq</li><li>ALM6 for VCCPDRO (XSM_CFR1_ALM_VCCPDRO_MASK) for Zynq</li></ul>
<p>
<dl compact><dt><b>Parameters:</b></dt><dd>
<table border="0" cellspacing="2" cellpadding="0">
<tr><td valign="top"></td><td valign="top"><em>InstancePtr</em>&nbsp;</td><td>is a pointer to the <a class="el" href="struct_x_sys_mon.html">XSysMon</a> instance. </td></tr>
<tr><td valign="top"></td><td valign="top"><em>AlmEnableMask</em>&nbsp;</td><td>is the bit-mask of the alarm outputs to be enabled in the Configuration Register 1. Bit positions of 1 will be enabled. Bit positions of 0 will be disabled. This mask is formed by OR'ing XSM_CFR1_ALM_*_MASK and XSM_CFR1_OT_MASK masks defined in <a class="el" href="xsysmon__hw_8h.html">xsysmon_hw.h</a>.</td></tr>
</table>
</dl>
<dl compact><dt><b>Returns:</b></dt><dd>None.</dd></dl>
<dl compact><dt><b>Note:</b></dt><dd>The implementation of the alarm enables in the Configuration register 1 is such that the alarms for bit positions of 1 will be disabled and alarms for bit positions of 0 will be enabled. The alarm outputs specified by the AlmEnableMask are negated before writing to the Configuration Register 1. </dd></dl>
</td>
</tr>
</table>
<a class="anchor" name="4dcca19ce190753765061d94a343cc99"></a><!-- doxytag: member="xsysmon.c::XSysMon_SetAlarmThreshold" ref="4dcca19ce190753765061d94a343cc99" args="(XSysMon *InstancePtr, u8 AlarmThrReg, u16 Value)" --><p>
<table class="mdTable" cellpadding="2" cellspacing="0">
<tr>
<td class="mdRow">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td class="md" nowrap valign="top">void XSysMon_SetAlarmThreshold </td>
<td class="md" valign="top">(&nbsp;</td>
<td class="md" nowrap valign="top"><a class="el" href="struct_x_sys_mon.html">XSysMon</a> *&nbsp;</td>
<td class="mdname" nowrap> <em>InstancePtr</em>, </td>
</tr>
<tr>
<td class="md" nowrap align="right"></td>
<td class="md"></td>
<td class="md" nowrap>u8&nbsp;</td>
<td class="mdname" nowrap> <em>AlarmThrReg</em>, </td>
</tr>
<tr>
<td class="md" nowrap align="right"></td>
<td class="md"></td>
<td class="md" nowrap>u16&nbsp;</td>
<td class="mdname" nowrap> <em>Value</em></td>
</tr>
<tr>
<td class="md"></td>
<td class="md">)&nbsp;</td>
<td class="md" colspan="2"></td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing="5" cellpadding="0" border="0">
<tr>
<td>
&nbsp;
</td>
<td>
<p>
This functions sets the contents of the given Alarm Threshold Register.<p>
<dl compact><dt><b>Parameters:</b></dt><dd>
<table border="0" cellspacing="2" cellpadding="0">
<tr><td valign="top"></td><td valign="top"><em>InstancePtr</em>&nbsp;</td><td>is a pointer to the <a class="el" href="struct_x_sys_mon.html">XSysMon</a> instance. </td></tr>
<tr><td valign="top"></td><td valign="top"><em>AlarmThrReg</em>&nbsp;</td><td>is the index of an Alarm Threshold Register to be set. Use XSM_ATR_* constants defined in xsysmon.h to specify the index. </td></tr>
<tr><td valign="top"></td><td valign="top"><em>Value</em>&nbsp;</td><td>is the 16-bit threshold value to write into the register.</td></tr>
</table>
</dl>
<dl compact><dt><b>Returns:</b></dt><dd>None.</dd></dl>
<dl compact><dt><b>Note:</b></dt><dd>Over Temperature upper threshold is programmable only in V6 and 7 Series/Zynq XADC. BRAM high and low voltage threshold registers are available only in 7 Series XADC. All the remaining Alarm Threshold registers specified by the constants XSM_ATR_*, are available in all the families of the Sysmon. </dd></dl>
</td>
</tr>
</table>
<a class="anchor" name="a6548645b49baf8057d24672a9b4f2e6"></a><!-- doxytag: member="xsysmon.c::XSysMon_SetAvg" ref="a6548645b49baf8057d24672a9b4f2e6" args="(XSysMon *InstancePtr, u8 Average)" --><p>
<table class="mdTable" cellpadding="2" cellspacing="0">
<tr>
<td class="mdRow">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td class="md" nowrap valign="top">void XSysMon_SetAvg </td>
<td class="md" valign="top">(&nbsp;</td>
<td class="md" nowrap valign="top"><a class="el" href="struct_x_sys_mon.html">XSysMon</a> *&nbsp;</td>
<td class="mdname" nowrap> <em>InstancePtr</em>, </td>
</tr>
<tr>
<td class="md" nowrap align="right"></td>
<td class="md"></td>
<td class="md" nowrap>u8&nbsp;</td>
<td class="mdname" nowrap> <em>Average</em></td>
</tr>
<tr>
<td class="md"></td>
<td class="md">)&nbsp;</td>
<td class="md" colspan="2"></td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing="5" cellpadding="0" border="0">
<tr>
<td>
&nbsp;
</td>
<td>
<p>
This function sets the number of samples of averaging that is to be done for all the channels in both the single channel mode and sequence mode of operations.<p>
<dl compact><dt><b>Parameters:</b></dt><dd>
<table border="0" cellspacing="2" cellpadding="0">
<tr><td valign="top"></td><td valign="top"><em>InstancePtr</em>&nbsp;</td><td>is a pointer to the <a class="el" href="struct_x_sys_mon.html">XSysMon</a> instance. </td></tr>
<tr><td valign="top"></td><td valign="top"><em>Average</em>&nbsp;</td><td>is the number of samples of averaging programmed to the Configuration Register 0. Use the XSM_AVG_* definitions defined in xsysmon.h file :<ul>
<li>XSM_AVG_0_SAMPLES for no averaging</li><li>XSM_AVG_16_SAMPLES for 16 samples of averaging</li><li>XSM_AVG_64_SAMPLES for 64 samples of averaging</li><li>XSM_AVG_256_SAMPLES for 256 samples of averaging</li></ul>
</td></tr>
</table>
</dl>
<dl compact><dt><b>Returns:</b></dt><dd>None.</dd></dl>
<dl compact><dt><b>Note:</b></dt><dd>None. </dd></dl>
</td>
</tr>
</table>
<a class="anchor" name="35e0479a5ea24e54e658ce11dede8409"></a><!-- doxytag: member="xsysmon.c::XSysMon_SetCalibEnables" ref="35e0479a5ea24e54e658ce11dede8409" args="(XSysMon *InstancePtr, u16 Calibration)" --><p>
<table class="mdTable" cellpadding="2" cellspacing="0">
<tr>
<td class="mdRow">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td class="md" nowrap valign="top">void XSysMon_SetCalibEnables </td>
<td class="md" valign="top">(&nbsp;</td>
<td class="md" nowrap valign="top"><a class="el" href="struct_x_sys_mon.html">XSysMon</a> *&nbsp;</td>
<td class="mdname" nowrap> <em>InstancePtr</em>, </td>
</tr>
<tr>
<td class="md" nowrap align="right"></td>
<td class="md"></td>
<td class="md" nowrap>u16&nbsp;</td>
<td class="mdname" nowrap> <em>Calibration</em></td>
</tr>
<tr>
<td class="md"></td>
<td class="md">)&nbsp;</td>
<td class="md" colspan="2"></td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing="5" cellpadding="0" border="0">
<tr>
<td>
&nbsp;
</td>
<td>
<p>
This function enables the specified calibration in the Configuration Register 1 :<p>
<ul>
<li>XSM_CFR1_CAL_ADC_OFFSET_MASK : Calibration 0 -ADC offset correction</li><li>XSM_CFR1_CAL_ADC_GAIN_OFFSET_MASK : Calibration 1 -ADC gain and offset correction</li><li>XSM_CFR1_CAL_PS_OFFSET_MASK : Calibration 2 -Power Supply sensor offset correction</li><li>XSM_CFR1_CAL_PS_GAIN_OFFSET_MASK : Calibration 3 -Power Supply sensor gain and offset correction</li><li>XSM_CFR1_CAL_DISABLE_MASK : No Calibration</li></ul>
<p>
<dl compact><dt><b>Parameters:</b></dt><dd>
<table border="0" cellspacing="2" cellpadding="0">
<tr><td valign="top"></td><td valign="top"><em>InstancePtr</em>&nbsp;</td><td>is a pointer to the <a class="el" href="struct_x_sys_mon.html">XSysMon</a> instance. </td></tr>
<tr><td valign="top"></td><td valign="top"><em>Calibration</em>&nbsp;</td><td>is the Calibration to be applied. Use XSM_CFR1_CAL*_* bits defined in <a class="el" href="xsysmon__hw_8h.html">xsysmon_hw.h</a>. Multiple calibrations can be enabled at a time by oring the XSM_CFR1_CAL_ADC_* and XSM_CFR1_CAL_PS_* bits. Calibration can be disabled by specifying XSM_CFR1_CAL_DISABLE_MASK;</td></tr>
</table>
</dl>
<dl compact><dt><b>Returns:</b></dt><dd>None.</dd></dl>
<dl compact><dt><b>Note:</b></dt><dd>None. </dd></dl>
</td>
</tr>
</table>
<a class="anchor" name="c27729402f0503568d3cafb09ae143eb"></a><!-- doxytag: member="xsysmon.c::XSysMon_SetExtenalMux" ref="c27729402f0503568d3cafb09ae143eb" args="(XSysMon *InstancePtr, u8 Channel)" --><p>
<table class="mdTable" cellpadding="2" cellspacing="0">
<tr>
<td class="mdRow">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td class="md" nowrap valign="top">void XSysMon_SetExtenalMux </td>
<td class="md" valign="top">(&nbsp;</td>
<td class="md" nowrap valign="top"><a class="el" href="struct_x_sys_mon.html">XSysMon</a> *&nbsp;</td>
<td class="mdname" nowrap> <em>InstancePtr</em>, </td>
</tr>
<tr>
<td class="md" nowrap align="right"></td>
<td class="md"></td>
<td class="md" nowrap>u8&nbsp;</td>
<td class="mdname" nowrap> <em>Channel</em></td>
</tr>
<tr>
<td class="md"></td>
<td class="md">)&nbsp;</td>
<td class="md" colspan="2"></td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing="5" cellpadding="0" border="0">
<tr>
<td>
&nbsp;
</td>
<td>
<p>
The function enables the external mux and connects a channel to the mux.<p>
<dl compact><dt><b>Parameters:</b></dt><dd>
<table border="0" cellspacing="2" cellpadding="0">
<tr><td valign="top"></td><td valign="top"><em>InstancePtr</em>&nbsp;</td><td>is a pointer to the <a class="el" href="struct_x_sys_mon.html">XSysMon</a> instance. </td></tr>
<tr><td valign="top"></td><td valign="top"><em>Channel</em>&nbsp;</td><td>is the channel number used to connect to the external Mux. The valid channels are 0 to 6, 8, and 16 to 31.</td></tr>
</table>
</dl>
<dl compact><dt><b>Returns:</b></dt><dd><ul>
<li>XST_SUCCESS if the given values were written successfully to the Configuration Register 0.</li><li>XST_FAILURE if the channel sequencer is enabled or the input parameters are not valid for the selected channel.</li></ul>
</dd></dl>
<dl compact><dt><b>Note:</b></dt><dd>The External Mux is only available in 7 Series and Zynq XADC. This API should be used only with 7 Series and Zynq XADC. </dd></dl>
</td>
</tr>
</table>
<a class="anchor" name="624d5e3f2c19c450eeca0f8c2bf022a7"></a><!-- doxytag: member="xsysmon.c::XSysMon_SetOverTemp" ref="624d5e3f2c19c450eeca0f8c2bf022a7" args="(XSysMon *InstancePtr, u16 Value)" --><p>
<table class="mdTable" cellpadding="2" cellspacing="0">
<tr>
<td class="mdRow">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td class="md" nowrap valign="top">void XSysMon_SetOverTemp </td>
<td class="md" valign="top">(&nbsp;</td>
<td class="md" nowrap valign="top"><a class="el" href="struct_x_sys_mon.html">XSysMon</a> *&nbsp;</td>
<td class="mdname" nowrap> <em>InstancePtr</em>, </td>
</tr>
<tr>
<td class="md" nowrap align="right"></td>
<td class="md"></td>
<td class="md" nowrap>u16&nbsp;</td>
<td class="mdname" nowrap> <em>Value</em></td>
</tr>
<tr>
<td class="md"></td>
<td class="md">)&nbsp;</td>
<td class="md" colspan="2"></td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing="5" cellpadding="0" border="0">
<tr>
<td>
&nbsp;
</td>
<td>
<p>
This function sets the powerdown temperature for the OverTemp signal in the OT Powerdown register.<p>
<dl compact><dt><b>Parameters:</b></dt><dd>
<table border="0" cellspacing="2" cellpadding="0">
<tr><td valign="top"></td><td valign="top"><em>InstancePtr</em>&nbsp;</td><td>is a pointer to the <a class="el" href="struct_x_sys_mon.html">XSysMon</a> instance. </td></tr>
<tr><td valign="top"></td><td valign="top"><em>Value</em>&nbsp;</td><td>is the 16-bit OT Upper Alarm Register powerdown value. Valid values are 0 to 0x0FFF.</td></tr>
</table>
</dl>
<dl compact><dt><b>Returns:</b></dt><dd>None.</dd></dl>
<dl compact><dt><b>Note:</b></dt><dd>This API has been deprecated. Use <a class="el" href="xsysmon_8c.html#4dcca19ce190753765061d94a343cc99">XSysMon_SetAlarmThreshold()</a>, instead. This API should be used only with V6/7 Series since the upper threshold of OverTemp is programmable in in only V6 SysMon/7 Series and Zynq XADC. </dd></dl>
</td>
</tr>
</table>
<a class="anchor" name="732fa860ee6d005fe2fe9027602e2cd0"></a><!-- doxytag: member="xsysmon.c::XSysMon_SetSeqAcqTime" ref="732fa860ee6d005fe2fe9027602e2cd0" args="(XSysMon *InstancePtr, u32 AcqCyclesChMask)" --><p>
<table class="mdTable" cellpadding="2" cellspacing="0">
<tr>
<td class="mdRow">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td class="md" nowrap valign="top">int XSysMon_SetSeqAcqTime </td>
<td class="md" valign="top">(&nbsp;</td>
<td class="md" nowrap valign="top"><a class="el" href="struct_x_sys_mon.html">XSysMon</a> *&nbsp;</td>
<td class="mdname" nowrap> <em>InstancePtr</em>, </td>
</tr>
<tr>
<td class="md" nowrap align="right"></td>
<td class="md"></td>
<td class="md" nowrap>u32&nbsp;</td>
<td class="mdname" nowrap> <em>AcqCyclesChMask</em></td>
</tr>
<tr>
<td class="md"></td>
<td class="md">)&nbsp;</td>
<td class="md" colspan="2"></td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing="5" cellpadding="0" border="0">
<tr>
<td>
&nbsp;
</td>
<td>
<p>
This function sets the number of Acquisition cycles in the ADC Channel Acquisition Time Sequencer Registers. The sequencer must be in the Safe Mode before writing to these registers.<p>
<dl compact><dt><b>Parameters:</b></dt><dd>
<table border="0" cellspacing="2" cellpadding="0">
<tr><td valign="top"></td><td valign="top"><em>InstancePtr</em>&nbsp;</td><td>is a pointer to the <a class="el" href="struct_x_sys_mon.html">XSysMon</a> instance. </td></tr>
<tr><td valign="top"></td><td valign="top"><em>AcqCyclesChMask</em>&nbsp;</td><td>is the bit mask of all the channels for which the number of acquisition cycles is to be extended. Use XSM_SEQ_CH__* defined in <a class="el" href="xsysmon__hw_8h.html">xsysmon_hw.h</a> to specify the Channel numbers. Acquisition cycles will be extended to 10 ADCCLK cycles for bit masks of 1 and will be the default 4 ADCCLK cycles for bit masks of 0. The AcqCyclesChMask is a 32 bit mask that is written to the two 16 bit ADC Channel Acquisition Time Sequencer Registers.</td></tr>
</table>
</dl>
<dl compact><dt><b>Returns:</b></dt><dd><ul>
<li>XST_SUCCESS if the given values were written successfully to the Channel Sequencer Registers.</li><li>XST_FAILURE if the channel sequencer is enabled.</li></ul>
</dd></dl>
<dl compact><dt><b>Note:</b></dt><dd>None. </dd></dl>
</td>
</tr>
</table>
<a class="anchor" name="337472cb2cf0b03d61b4468d79b8f78a"></a><!-- doxytag: member="xsysmon.c::XSysMon_SetSeqAvgEnables" ref="337472cb2cf0b03d61b4468d79b8f78a" args="(XSysMon *InstancePtr, u32 AvgEnableChMask)" --><p>
<table class="mdTable" cellpadding="2" cellspacing="0">
<tr>
<td class="mdRow">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td class="md" nowrap valign="top">int XSysMon_SetSeqAvgEnables </td>
<td class="md" valign="top">(&nbsp;</td>
<td class="md" nowrap valign="top"><a class="el" href="struct_x_sys_mon.html">XSysMon</a> *&nbsp;</td>
<td class="mdname" nowrap> <em>InstancePtr</em>, </td>
</tr>
<tr>
<td class="md" nowrap align="right"></td>
<td class="md"></td>
<td class="md" nowrap>u32&nbsp;</td>
<td class="mdname" nowrap> <em>AvgEnableChMask</em></td>
</tr>
<tr>
<td class="md"></td>
<td class="md">)&nbsp;</td>
<td class="md" colspan="2"></td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing="5" cellpadding="0" border="0">
<tr>
<td>
&nbsp;
</td>
<td>
<p>
This function enables the averaging for the specified channels in the ADC Channel Averaging Enable Sequencer Registers. The sequencer must be in the Safe Mode before writing to these registers.<p>
<dl compact><dt><b>Parameters:</b></dt><dd>
<table border="0" cellspacing="2" cellpadding="0">
<tr><td valign="top"></td><td valign="top"><em>InstancePtr</em>&nbsp;</td><td>is a pointer to the <a class="el" href="struct_x_sys_mon.html">XSysMon</a> instance. </td></tr>
<tr><td valign="top"></td><td valign="top"><em>AvgEnableChMask</em>&nbsp;</td><td>is the bit mask of all the channels for which averaging is to be enabled. Use XSM_SEQ_CH__* defined in <a class="el" href="xsysmon__hw_8h.html">xsysmon_hw.h</a> to specify the Channel numbers. Averaging will be enabled for bit masks of 1 and disabled for bit mask of 0. The AvgEnableChMask is a 32 bit mask that is written to the two 16 bit ADC Channel Averaging Enable Sequencer Registers.</td></tr>
</table>
</dl>
<dl compact><dt><b>Returns:</b></dt><dd><ul>
<li>XST_SUCCESS if the given values were written successfully to the ADC Channel Averaging Enables Sequencer Registers.</li><li>XST_FAILURE if the channel sequencer is enabled.</li></ul>
</dd></dl>
<dl compact><dt><b>Note:</b></dt><dd>None. </dd></dl>
</td>
</tr>
</table>
<a class="anchor" name="eda4ba1cac4dce8f3f36f1c80e355c7f"></a><!-- doxytag: member="xsysmon.c::XSysMon_SetSeqChEnables" ref="eda4ba1cac4dce8f3f36f1c80e355c7f" args="(XSysMon *InstancePtr, u32 ChEnableMask)" --><p>
<table class="mdTable" cellpadding="2" cellspacing="0">
<tr>
<td class="mdRow">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td class="md" nowrap valign="top">int XSysMon_SetSeqChEnables </td>
<td class="md" valign="top">(&nbsp;</td>
<td class="md" nowrap valign="top"><a class="el" href="struct_x_sys_mon.html">XSysMon</a> *&nbsp;</td>
<td class="mdname" nowrap> <em>InstancePtr</em>, </td>
</tr>
<tr>
<td class="md" nowrap align="right"></td>
<td class="md"></td>
<td class="md" nowrap>u32&nbsp;</td>
<td class="mdname" nowrap> <em>ChEnableMask</em></td>
</tr>
<tr>
<td class="md"></td>
<td class="md">)&nbsp;</td>
<td class="md" colspan="2"></td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing="5" cellpadding="0" border="0">
<tr>
<td>
&nbsp;
</td>
<td>
<p>
This function enables the specified channels in the ADC Channel Selection Sequencer Registers. The sequencer must be in the Safe Mode before writing to these registers.<p>
<dl compact><dt><b>Parameters:</b></dt><dd>
<table border="0" cellspacing="2" cellpadding="0">
<tr><td valign="top"></td><td valign="top"><em>InstancePtr</em>&nbsp;</td><td>is a pointer to the <a class="el" href="struct_x_sys_mon.html">XSysMon</a> instance. </td></tr>
<tr><td valign="top"></td><td valign="top"><em>ChEnableMask</em>&nbsp;</td><td>is the bit mask of all the channels to be enabled. Use XSM_SEQ_CH_* defined in <a class="el" href="xsysmon__hw_8h.html">xsysmon_hw.h</a> to specify the Channel numbers. Bit masks of 1 will be enabled and bit mask of 0 will be disabled. The ChEnableMask is a 32 bit mask that is written to the two 16 bit ADC Channel Selection Sequencer Registers.</td></tr>
</table>
</dl>
<dl compact><dt><b>Returns:</b></dt><dd><ul>
<li>XST_SUCCESS if the given values were written successfully to the ADC Channel Selection Sequencer Registers.</li><li>XST_FAILURE if the channel sequencer is enabled.</li></ul>
</dd></dl>
<dl compact><dt><b>Note:</b></dt><dd>None. </dd></dl>
</td>
</tr>
</table>
<a class="anchor" name="233e637b3091576705486d4a54e13742"></a><!-- doxytag: member="xsysmon.c::XSysMon_SetSeqInputMode" ref="233e637b3091576705486d4a54e13742" args="(XSysMon *InstancePtr, u32 InputModeChMask)" --><p>
<table class="mdTable" cellpadding="2" cellspacing="0">
<tr>
<td class="mdRow">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td class="md" nowrap valign="top">int XSysMon_SetSeqInputMode </td>
<td class="md" valign="top">(&nbsp;</td>
<td class="md" nowrap valign="top"><a class="el" href="struct_x_sys_mon.html">XSysMon</a> *&nbsp;</td>
<td class="mdname" nowrap> <em>InstancePtr</em>, </td>
</tr>
<tr>
<td class="md" nowrap align="right"></td>
<td class="md"></td>
<td class="md" nowrap>u32&nbsp;</td>
<td class="mdname" nowrap> <em>InputModeChMask</em></td>
</tr>
<tr>
<td class="md"></td>
<td class="md">)&nbsp;</td>
<td class="md" colspan="2"></td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing="5" cellpadding="0" border="0">
<tr>
<td>
&nbsp;
</td>
<td>
<p>
This function sets the Analog input mode for the specified channels in the ADC Channel Analog-Input Mode Sequencer Registers. The sequencer must be in the Safe Mode before writing to these registers.<p>
<dl compact><dt><b>Parameters:</b></dt><dd>
<table border="0" cellspacing="2" cellpadding="0">
<tr><td valign="top"></td><td valign="top"><em>InstancePtr</em>&nbsp;</td><td>is a pointer to the <a class="el" href="struct_x_sys_mon.html">XSysMon</a> instance. </td></tr>
<tr><td valign="top"></td><td valign="top"><em>InputModeChMask</em>&nbsp;</td><td>is the bit mask of all the channels for which the input mode is differential mode. Use XSM_SEQ_CH__* defined in <a class="el" href="xsysmon__hw_8h.html">xsysmon_hw.h</a> to specify the channel numbers. Differential input mode will be set for bit masks of 1 and unipolar input mode for bit masks of 0. The InputModeChMask is a 32 bit mask that is written to the two 16 bit ADC Channel Analog-Input Mode Sequencer Registers.</td></tr>
</table>
</dl>
<dl compact><dt><b>Returns:</b></dt><dd><ul>
<li>XST_SUCCESS if the given values were written successfully to the ADC Channel Analog-Input Mode Sequencer Registers.</li><li>XST_FAILURE if the channel sequencer is enabled.</li></ul>
</dd></dl>
<dl compact><dt><b>Note:</b></dt><dd>None. </dd></dl>
</td>
</tr>
</table>
<a class="anchor" name="4a1c0383c4df43a19c0e4db01dd4cdcf"></a><!-- doxytag: member="xsysmon.c::XSysMon_SetSequencerEvent" ref="4a1c0383c4df43a19c0e4db01dd4cdcf" args="(XSysMon *InstancePtr, int IsEventMode)" --><p>
<table class="mdTable" cellpadding="2" cellspacing="0">
<tr>
<td class="mdRow">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td class="md" nowrap valign="top">void XSysMon_SetSequencerEvent </td>
<td class="md" valign="top">(&nbsp;</td>
<td class="md" nowrap valign="top"><a class="el" href="struct_x_sys_mon.html">XSysMon</a> *&nbsp;</td>
<td class="mdname" nowrap> <em>InstancePtr</em>, </td>
</tr>
<tr>
<td class="md" nowrap align="right"></td>
<td class="md"></td>
<td class="md" nowrap>int&nbsp;</td>
<td class="mdname" nowrap> <em>IsEventMode</em></td>
</tr>
<tr>
<td class="md"></td>
<td class="md">)&nbsp;</td>
<td class="md" colspan="2"></td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing="5" cellpadding="0" border="0">
<tr>
<td>
&nbsp;
</td>
<td>
<p>
The function enables the Event mode or Continuous mode in the sequencer mode.<p>
<dl compact><dt><b>Parameters:</b></dt><dd>
<table border="0" cellspacing="2" cellpadding="0">
<tr><td valign="top"></td><td valign="top"><em>InstancePtr</em>&nbsp;</td><td>is a pointer to the <a class="el" href="struct_x_sys_mon.html">XSysMon</a> instance. </td></tr>
<tr><td valign="top"></td><td valign="top"><em>IsEventMode</em>&nbsp;</td><td>is a boolean parameter that specifies continuous sampling (specify FALSE) or event driven sampling mode (specify TRUE) for the given channel.</td></tr>
</table>
</dl>
<dl compact><dt><b>Returns:</b></dt><dd>None.</dd></dl>
<dl compact><dt><b>Note:</b></dt><dd>The Event mode is only available in 7 Series XADC and Zynq. This API should be used only with 7 Series XADC and Zynq . </dd></dl>
</td>
</tr>
</table>
<a class="anchor" name="e4016b742ac11f588115e75c8f61e30c"></a><!-- doxytag: member="xsysmon.c::XSysMon_SetSequencerMode" ref="e4016b742ac11f588115e75c8f61e30c" args="(XSysMon *InstancePtr, u8 SequencerMode)" --><p>
<table class="mdTable" cellpadding="2" cellspacing="0">
<tr>
<td class="mdRow">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td class="md" nowrap valign="top">void XSysMon_SetSequencerMode </td>
<td class="md" valign="top">(&nbsp;</td>
<td class="md" nowrap valign="top"><a class="el" href="struct_x_sys_mon.html">XSysMon</a> *&nbsp;</td>
<td class="mdname" nowrap> <em>InstancePtr</em>, </td>
</tr>
<tr>
<td class="md" nowrap align="right"></td>
<td class="md"></td>
<td class="md" nowrap>u8&nbsp;</td>
<td class="mdname" nowrap> <em>SequencerMode</em></td>
</tr>
<tr>
<td class="md"></td>
<td class="md">)&nbsp;</td>
<td class="md" colspan="2"></td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing="5" cellpadding="0" border="0">
<tr>
<td>
&nbsp;
</td>
<td>
<p>
This function sets the specified Channel Sequencer Mode in the Configuration Register 1 :<ul>
<li>Default safe mode (XSM_SEQ_MODE_SAFE)</li><li>One pass through sequence (XSM_SEQ_MODE_ONEPASS)</li><li>Continuous channel sequencing (XSM_SEQ_MODE_CONTINPASS)</li><li>Single Channel/Sequencer off (XSM_SEQ_MODE_SINGCHAN)</li><li>Simulataneous sampling mode (XSM_SEQ_MODE_SIMUL)</li><li>Independent mode (XSM_SEQ_MODE_INDEPENDENT)</li></ul>
<p>
<dl compact><dt><b>Parameters:</b></dt><dd>
<table border="0" cellspacing="2" cellpadding="0">
<tr><td valign="top"></td><td valign="top"><em>InstancePtr</em>&nbsp;</td><td>is a pointer to the <a class="el" href="struct_x_sys_mon.html">XSysMon</a> instance. </td></tr>
<tr><td valign="top"></td><td valign="top"><em>SequencerMode</em>&nbsp;</td><td>is the sequencer mode to be set. Use XSM_SEQ_MODE_* bits defined in xsysmon.h.</td></tr>
</table>
</dl>
<dl compact><dt><b>Returns:</b></dt><dd>None.</dd></dl>
<dl compact><dt><b>Note:</b></dt><dd>Only one of the modes can be enabled at a time. </dd></dl>
</td>
</tr>
</table>
<a class="anchor" name="e956027fbeb83489f93ccbb5317c2690"></a><!-- doxytag: member="xsysmon.c::XSysMon_SetSingleChParams" ref="e956027fbeb83489f93ccbb5317c2690" args="(XSysMon *InstancePtr, u8 Channel, int IncreaseAcqCycles, int IsEventMode, int IsDifferentialMode)" --><p>
<table class="mdTable" cellpadding="2" cellspacing="0">
<tr>
<td class="mdRow">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td class="md" nowrap valign="top">int XSysMon_SetSingleChParams </td>
<td class="md" valign="top">(&nbsp;</td>
<td class="md" nowrap valign="top"><a class="el" href="struct_x_sys_mon.html">XSysMon</a> *&nbsp;</td>
<td class="mdname" nowrap> <em>InstancePtr</em>, </td>
</tr>
<tr>
<td class="md" nowrap align="right"></td>
<td class="md"></td>
<td class="md" nowrap>u8&nbsp;</td>
<td class="mdname" nowrap> <em>Channel</em>, </td>
</tr>
<tr>
<td class="md" nowrap align="right"></td>
<td class="md"></td>
<td class="md" nowrap>int&nbsp;</td>
<td class="mdname" nowrap> <em>IncreaseAcqCycles</em>, </td>
</tr>
<tr>
<td class="md" nowrap align="right"></td>
<td class="md"></td>
<td class="md" nowrap>int&nbsp;</td>
<td class="mdname" nowrap> <em>IsEventMode</em>, </td>
</tr>
<tr>
<td class="md" nowrap align="right"></td>
<td class="md"></td>
<td class="md" nowrap>int&nbsp;</td>
<td class="mdname" nowrap> <em>IsDifferentialMode</em></td>
</tr>
<tr>
<td class="md"></td>
<td class="md">)&nbsp;</td>
<td class="md" colspan="2"></td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing="5" cellpadding="0" border="0">
<tr>
<td>
&nbsp;
</td>
<td>
<p>
The function sets the given parameters in the Configuration Register 0 in the single channel mode.<p>
<dl compact><dt><b>Parameters:</b></dt><dd>
<table border="0" cellspacing="2" cellpadding="0">
<tr><td valign="top"></td><td valign="top"><em>InstancePtr</em>&nbsp;</td><td>is a pointer to the <a class="el" href="struct_x_sys_mon.html">XSysMon</a> instance. </td></tr>
<tr><td valign="top"></td><td valign="top"><em>Channel</em>&nbsp;</td><td>is the channel number for which averaging is to be set. The valid channels are 0 to 5, 8, and 16 to 31. Channel 6 is valid for 7 series and Zynq XADC. </td></tr>
<tr><td valign="top"></td><td valign="top"><em>IncreaseAcqCycles</em>&nbsp;</td><td>is a boolean parameter which specifies whether the Acquisition time for the external channels has to be increased to 10 ADCCLK cycles (specify TRUE) or remain at the default 4 ADCCLK cycles (specify FALSE). This parameter is only valid for the external channels. </td></tr>
<tr><td valign="top"></td><td valign="top"><em>IsEventMode</em>&nbsp;</td><td>is a boolean parameter that specifies continuous sampling (specify FALSE) or event driven sampling mode (specify TRUE) for the given channel. </td></tr>
<tr><td valign="top"></td><td valign="top"><em>IsDifferentialMode</em>&nbsp;</td><td>is a boolean parameter which specifies unipolar(specify FALSE) or differential mode (specify TRUE) for the analog inputs. The input mode is only valid for the external channels. </td></tr>
</table>
</dl>
<dl compact><dt><b>Returns:</b></dt><dd><ul>
<li>XST_SUCCESS if the given values were written successfully to the Configuration Register 0.</li><li>XST_FAILURE if the channel sequencer is enabled or the input parameters are not valid for the selected channel.</li></ul>
</dd></dl>
<dl compact><dt><b>Note:</b></dt><dd><ul>
<li>The number of samples for the averaging for all the channels is set by using the function XSysMon_SetAvg.</li><li>The calibration of the device is done by doing a ADC conversion on the calibration channel(channel 8). The input parameters IncreaseAcqCycles, IsDifferentialMode and IsEventMode are not valid for this channel. </li></ul>
</dd></dl>
</td>
</tr>
</table>
<a class="anchor" name="4161a8a44ec568b383ddd237e3b78ef0"></a><!-- doxytag: member="xsysmon.c::XSysMon_SetTempWaitCycles" ref="4161a8a44ec568b383ddd237e3b78ef0" args="(XSysMon *InstancePtr, u16 WaitCycles)" --><p>
<table class="mdTable" cellpadding="2" cellspacing="0">
<tr>
<td class="mdRow">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td class="md" nowrap valign="top">void XSysMon_SetTempWaitCycles </td>
<td class="md" valign="top">(&nbsp;</td>
<td class="md" nowrap valign="top"><a class="el" href="struct_x_sys_mon.html">XSysMon</a> *&nbsp;</td>
<td class="mdname" nowrap> <em>InstancePtr</em>, </td>
</tr>
<tr>
<td class="md" nowrap align="right"></td>
<td class="md"></td>
<td class="md" nowrap>u16&nbsp;</td>
<td class="mdname" nowrap> <em>WaitCycles</em></td>
</tr>
<tr>
<td class="md"></td>
<td class="md">)&nbsp;</td>
<td class="md" colspan="2"></td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing="5" cellpadding="0" border="0">
<tr>
<td>
&nbsp;
</td>
<td>
<p>
This function sets the number of Wait Cycles for Temperature updation logic<p>
<dl compact><dt><b>Parameters:</b></dt><dd>
<table border="0" cellspacing="2" cellpadding="0">
<tr><td valign="top"></td><td valign="top"><em>InstancePtr</em>&nbsp;</td><td>is a pointer to the <a class="el" href="struct_x_sys_mon.html">XSysMon</a> instance.</td></tr>
</table>
</dl>
<dl compact><dt><b>Returns:</b></dt><dd>None.</dd></dl>
<dl compact><dt><b>Note:</b></dt><dd>The default number of wait cycles are 1000(0x3E8). </dd></dl>
</td>
</tr>
</table>
<a class="anchor" name="cfd5924a26dc5657bc390bb910c2f9ab"></a><!-- doxytag: member="xsysmon.c::XSysMon_StartAdcConversion" ref="cfd5924a26dc5657bc390bb910c2f9ab" args="(XSysMon *InstancePtr)" --><p>
<table class="mdTable" cellpadding="2" cellspacing="0">
<tr>
<td class="mdRow">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td class="md" nowrap valign="top">void XSysMon_StartAdcConversion </td>
<td class="md" valign="top">(&nbsp;</td>
<td class="md" nowrap valign="top"><a class="el" href="struct_x_sys_mon.html">XSysMon</a> *&nbsp;</td>
<td class="mdname1" valign="top" nowrap> <em>InstancePtr</em> </td>
<td class="md" valign="top">&nbsp;)&nbsp;</td>
<td class="md" nowrap></td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing="5" cellpadding="0" border="0">
<tr>
<td>
&nbsp;
</td>
<td>
<p>
This function starts the ADC conversion in the Single Channel event driven sampling mode. The EOC bit in Status Register will be set once the conversion is finished. Refer to the device specification for more details.<p>
<dl compact><dt><b>Parameters:</b></dt><dd>
<table border="0" cellspacing="2" cellpadding="0">
<tr><td valign="top"></td><td valign="top"><em>InstancePtr</em>&nbsp;</td><td>is a pointer to the <a class="el" href="struct_x_sys_mon.html">XSysMon</a> instance.</td></tr>
</table>
</dl>
<dl compact><dt><b>Returns:</b></dt><dd>None.</dd></dl>
<dl compact><dt><b>Note:</b></dt><dd>The default state of the CONVST bit is a logic 0. The conversion is started when the CONVST bit is set to 1 from 0. This bit is cleared in this function so that the next conversion can be started by setting this bit. </dd></dl>
</td>
</tr>
</table>
Copyright @ 1995-2014 Xilinx, Inc. All rights reserved.