![]() |
sysmon
Xilinx SDK Drivers API Documentation
|
This file contains a design example using the driver functions of the System Monitor/ADC driver.
This example shows the usage of the driver/device in polled mode with external mux and XADC in continuous pass Sequencer mode. It is provided to illustrate the usage of external mux.
MODIFICATION HISTORY:
Ver Who Date Changes
7.5 mn 09/12/18 First release
Functions | |
int | SysMonAuxPolledExample (u16 SysMonDeviceId) |
This function runs a test on the System Monitor/ADC device using the driver APIs. More... | |
int | main (void) |
Main function that invokes the polled example in this file. More... | |
int main | ( | void | ) |
Main function that invokes the polled example in this file.
None. |
References SysMonAuxPolledExample().
int SysMonAuxPolledExample | ( | u16 | SysMonDeviceId | ) |
This function runs a test on the System Monitor/ADC device using the driver APIs.
This function does the following tasks:
SysMonDeviceId | is the XPAR_<SYSMON_ADC_instance>_DEVICE_ID value from xparameters.h. |
References XSysMon_Config::BaseAddress, XSM_AVG_16_SAMPLES, XSM_CH_AUX_MIN, XSM_SEQ_CH_AUX00, XSM_SEQ_MODE_CONTINPASS, XSM_SEQ_MODE_SAFE, XSM_SR_EOS_MASK, XSysMon_CfgInitialize(), XSysMon_GetAdcData(), XSysMon_GetStatus(), XSysMon_LookupConfig(), XSysMon_RawToVoltage, XSysMon_SelfTest(), XSysMon_SetAdcClkDivisor(), XSysMon_SetAvg(), XSysMon_SetExtenalMux(), XSysMon_SetSeqAcqTime(), XSysMon_SetSeqAvgEnables(), XSysMon_SetSeqChEnables(), XSysMon_SetSeqInputMode(), and XSysMon_SetSequencerMode().
Referenced by main().