
This patch updates the doxygen for the drivers wdtps,wdttb,xadcps,usb,usbps to include .h files in the listof files provided in the index.html file. Signed-off-by: Kedareswara rao Appana <appanad@xilinx.com>
86 lines
6.4 KiB
HTML
Executable file
86 lines
6.4 KiB
HTML
Executable file
<html>
|
|
<head>
|
|
<meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1">
|
|
<title>
|
|
Xilinx Driver xadcps v2_1: xadcps v2_1
|
|
</title>
|
|
<link href="doxygen_kalyanidocs/doc/css/driver_api_doxygen.css" 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.6.1 -->
|
|
<div class="navigation" id="top">
|
|
<div class="tabs">
|
|
<ul>
|
|
<li class="current"><a href="index.html"><span>Main Page</span></a></li>
|
|
<li><a href="annotated.html"><span>Classes</span></a></li>
|
|
<li><a href="files.html"><span>Files</span></a></li>
|
|
</ul>
|
|
</div>
|
|
</div>
|
|
<div class="contents">
|
|
<h1>xadcps v2_1</h1><p>The <a class="el" href="struct_x_adc_ps.html">XAdcPs</a> driver supports the Xilinx XADC/ADC device.</p>
|
|
<p>The XADC/ADC device has the following features:</p>
|
|
<ul>
|
|
<li>10-bit, 200-KSPS (kilo samples per second) Analog-to-Digital Converter (ADC)</li>
|
|
<li>Monitoring of on-chip supply voltages and temperature</li>
|
|
<li>1 dedicated differential analog-input pair and 16 auxiliary differential analog-input pairs</li>
|
|
<li>Automatic alarms based on user defined limits for the on-chip supply voltages and temperature</li>
|
|
<li>Automatic Channel Sequencer, programmable averaging, programmable acquisition time for the external inputs, unipolar or differential input selection for the external inputs</li>
|
|
<li>Inbuilt Calibration</li>
|
|
<li>Optional interrupt request generation</li>
|
|
</ul>
|
|
<p>The user should refer to the hardware device specification for detailed information about the device.</p>
|
|
<p>This header file contains the prototypes of driver functions that can be used to access the XADC/ADC device.</p>
|
|
<p><b> XADC Channel Sequencer Modes </b></p>
|
|
<p>The XADC Channel Sequencer supports the following operating modes:</p>
|
|
<ul>
|
|
<li><b> Default </b>: This is the default mode after power up. In this mode of operation the XADC operates in a sequence mode, monitoring the on chip sensors: Temperature, VCCINT, and VCCAUX.</li>
|
|
<li><b> One pass through sequence </b>: In this mode the XADC converts the channels enabled in the Sequencer Channel Enable registers for a single pass and then stops.</li>
|
|
<li><b> Continuous cycling of sequence </b>: In this mode the XADC converts the channels enabled in the Sequencer Channel Enable registers continuously.</li>
|
|
<li><b> Single channel mode</b>: In this mode the XADC Channel Sequencer is disabled and the XADC operates in a Single Channel Mode. The XADC can operate either in a Continuous or Event driven sampling mode in the single channel mode.</li>
|
|
<li><b> Simultaneous Sampling Mode</b>: In this mode the XADC Channel Sequencer will automatically sequence through eight fixed pairs of auxiliary analog input channels for simulataneous conversion.</li>
|
|
<li><b> Independent ADC mode</b>: In this mode the first ADC (A) is used to is used to implement a fixed monitoring mode similar to the default mode but the alarm fucntions ar eenabled. The second ADC (B) is available to be used with external analog input channels only.</li>
|
|
</ul>
|
|
<p>Read the XADC spec for more information about the sequencer modes.</p>
|
|
<p><b> Initialization and Configuration </b></p>
|
|
<p>The device driver enables higher layer software (e.g., an application) to communicate to the XADC/ADC device.</p>
|
|
<p><a class="el" href="xadcps_8c.html#a57807452402a6b52dd48083f676bd4ff">XAdcPs_CfgInitialize()</a> API is used to initialize the XADC/ADC device. The user needs to first call the <a class="el" href="xadcps_8h.html#ae1c891154549887e7e99466fe0c90656">XAdcPs_LookupConfig()</a> API which returns the Configuration structure pointer which is passed as a parameter to the <a class="el" href="xadcps_8c.html#a57807452402a6b52dd48083f676bd4ff">XAdcPs_CfgInitialize()</a> API.</p>
|
|
<p><b>Interrupts</b></p>
|
|
<p>The XADC/ADC device supports interrupt driven mode and the default operation mode is polling mode.</p>
|
|
<p>The interrupt mode is available only if hardware is configured to support interrupts.</p>
|
|
<p>This driver does not provide a Interrupt Service Routine (ISR) for the device. It is the responsibility of the application to provide one if needed. Refer to the interrupt example provided with this driver for details on using the device in interrupt mode.</p>
|
|
<p><b> Virtual Memory </b></p>
|
|
<p>This driver supports Virtual Memory. The RTOS is responsible for calculating the correct device base address in Virtual Memory space.</p>
|
|
<p><b> Threads </b></p>
|
|
<p>This driver is not thread safe. Any needs for threads or thread mutual exclusion must be satisfied by the layer above this driver.</p>
|
|
<p><b> Asserts </b></p>
|
|
<p>Asserts are used within all Xilinx drivers to enforce constraints on argument values. Asserts can be turned off on a system-wide basis by defining, at compile time, the NDEBUG identifier. By default, asserts are turned on and it is recommended that users leave asserts on during development.</p>
|
|
<p><b> Building the driver </b></p>
|
|
<p>The <a class="el" href="struct_x_adc_ps.html">XAdcPs</a> driver is composed of several source files. This allows the user to build and link only those parts of the driver that are necessary.</p>
|
|
<p><b> Limitations of the driver </b></p>
|
|
<p>XADC/ADC device can be accessed through the JTAG port and the PLB interface. The driver implementation does not support the simultaneous access of the device by both these interfaces. The user has to care of this situation in the user application code.</p>
|
|
<p><br/>
|
|
<br/>
|
|
</p>
|
|
<pre></pre><pre> MODIFICATION HISTORY:</pre><pre> Ver Who Date Changes
|
|
----- ----- -------- -----------------------------------------------------
|
|
1.00a ssb 12/22/11 First release based on the XPS/AXI xadc driver
|
|
1.01a bss 02/18/13 Modified XAdcPs_SetSeqChEnables,XAdcPs_SetSeqAvgEnables
|
|
XAdcPs_SetSeqInputMode and XAdcPs_SetSeqAcqTime APIs
|
|
in <a class="el" href="xadcps_8c.html">xadcps.c</a> to fix CR #693371
|
|
1.03a bss 11/01/13 Modified <a class="el" href="xadcps__hw_8h.html">xadcps_hw.h</a> to use correct Register offsets
|
|
CR#749687
|
|
2.1 bss 08/05/14 Added declarations for XAdcPs_SetSequencerEvent,
|
|
XAdcPs_GetSamplingMode, XAdcPs_SetMuxMode,
|
|
XAdcPs_SetPowerdownMode and XAdcPs_GetPowerdownMode
|
|
functions.
|
|
Modified Assert for XAdcPs_SetSingleChParams in
|
|
<a class="el" href="xadcps_8c.html">xadcps.c</a> to fix CR #807563.</pre><pre> </pre> </div>
|
|
<p class="Copyright">
|
|
Copyright © 1995-2014 Xilinx, Inc. All rights reserved.
|
|
</p>
|
|
</body>
|
|
</html>
|