![]() |
sysmon
Xilinx SDK Drivers API Documentation
|
Data Structures | |
struct | XSysMon_Config |
This typedef contains configuration information for the System Monitor/ADC device. More... | |
struct | XSysMon |
The driver's instance data. More... | |
Macros | |
#define | XSysMon_IsEventSamplingModeSet(InstancePtr) |
This macro checks if the SysMonitor/ADC device is in Event Sampling mode. More... | |
#define | XSysMon_IsDrpBusy(InstancePtr) |
This macro checks if the Dynamic Reconfiguration Port (DRP) transaction from the JTAG is in progress. More... | |
#define | XSysMon_IsDrpLocked(InstancePtr) |
This macro checks if the Dynamic Reconfiguration Port (DRP) is locked by the JTAG. More... | |
#define | XSysMon_RawToTemperature(AdcData) ((((float)(AdcData)/65536.0f)/0.00198421639f ) - 273.15f) |
This macro converts System Monitor/ADC Raw Data to Temperature(centigrades). More... | |
#define | XSysMon_RawToVoltage(AdcData) ((((float)(AdcData))* (3.0f))/65536.0f) |
This macro converts System Monitor/ADC Raw Data to Voltage(volts). More... | |
#define | XSysMon_TemperatureToRaw(Temperature) ((int)(((Temperature) + 273.15f)*65536.0f*0.00198421639f)) |
This macro converts Temperature in centigrades to System Monitor/ADC Raw Data. More... | |
#define | XSysMon_VoltageToRaw(Voltage) ((int)((Voltage)*65536.0f/3.0f)) |
This macro converts Voltage in Volts to System Monitor/ADC Raw Data. More... | |
#define | XSysMon_ReadReg(BaseAddress, RegOffset) (Xil_In32((BaseAddress) + (RegOffset))) |
Read a register of the System Monitor/ADC device. More... | |
#define | XSysMon_WriteReg(BaseAddress, RegOffset, Data) (Xil_Out32((BaseAddress) + (RegOffset), (Data))) |
Write a register of the System Monitor/ADC device. More... | |
Functions | |
int | XSysMon_CfgInitialize (XSysMon *InstancePtr, XSysMon_Config *ConfigPtr, UINTPTR EffectiveAddr) |
This function initializes a specific XSysMon device/instance. More... | |
void | XSysMon_Reset (XSysMon *InstancePtr) |
This function forces the software reset of the complete SystemMonitor/ADC Hard Macro and the SYSMON ADC Core Logic. More... | |
u32 | XSysMon_GetStatus (XSysMon *InstancePtr) |
The functions reads the contents of the Status Register. More... | |
u32 | XSysMon_GetAlarmOutputStatus (XSysMon *InstancePtr) |
This function reads the contents of Alarm Output Register. More... | |
void | XSysMon_StartAdcConversion (XSysMon *InstancePtr) |
This function starts the ADC conversion in the Single Channel event driven sampling mode. More... | |
void | XSysMon_ResetAdc (XSysMon *InstancePtr) |
This function resets the SystemMonitor/ADC Hard Macro in the device. More... | |
u16 | XSysMon_GetAdcData (XSysMon *InstancePtr, u8 Channel) |
Get the ADC converted data for the specified channel. More... | |
u16 | XSysMon_GetCalibCoefficient (XSysMon *InstancePtr, u8 CoeffType) |
This function gets the calibration coefficient data for the specified parameter. More... | |
u16 | XSysMon_GetMinMaxMeasurement (XSysMon *InstancePtr, u8 MeasurementType) |
This function reads the Minimum/Maximum measurement for one of the following parameters : More... | |
void | XSysMon_SetAvg (XSysMon *InstancePtr, u8 Average) |
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. More... | |
u8 | XSysMon_GetAvg (XSysMon *InstancePtr) |
This function returns the number of samples of averaging configured for all the channels in the Configuration Register 0. More... | |
int | XSysMon_SetSingleChParams (XSysMon *InstancePtr, u8 Channel, int IncreaseAcqCycles, int IsEventMode, int IsDifferentialMode) |
The function sets the given parameters in the Configuration Register 0 in the single channel mode. More... | |
void | XSysMon_SetAlarmEnables (XSysMon *InstancePtr, u32 AlmEnableMask) |
This function enables the alarm outputs for the specified alarms in the Configuration Registers 1 and 3: More... | |
u32 | XSysMon_GetAlarmEnables (XSysMon *InstancePtr) |
This function gets the status of the alarm output enables in the Configuration Register 1. More... | |
void | XSysMon_SetCalibEnables (XSysMon *InstancePtr, u16 Calibration) |
This function enables the specified calibration in the Configuration Register 1 : More... | |
u16 | XSysMon_GetCalibEnables (XSysMon *InstancePtr) |
This function reads the value of the calibration enables from the Configuration Register 1. More... | |
void | XSysMon_SetSequencerMode (XSysMon *InstancePtr, u8 SequencerMode) |
This function sets the specified Channel Sequencer Mode in the Configuration Register 1 : More... | |
u8 | XSysMon_GetSequencerMode (XSysMon *InstancePtr) |
This function gets the channel sequencer mode from the Configuration Register 1. More... | |
void | XSysMon_SetSequencerEvent (XSysMon *InstancePtr, int IsEventMode) |
The function enables the Event mode or Continuous mode in the sequencer mode. More... | |
void | XSysMon_SetExtenalMux (XSysMon *InstancePtr, u8 Channel) |
The function enables the external mux and connects a channel to the mux. More... | |
void | XSysMon_SetAdcClkDivisor (XSysMon *InstancePtr, u8 Divisor) |
The function sets the frequency of the ADCCLK by configuring the DCLK to ADCCLK ratio in the Configuration Register #2. More... | |
u8 | XSysMon_GetAdcClkDivisor (XSysMon *InstancePtr) |
The function gets the ADCCLK divisor from the Configuration Register 2. More... | |
int | XSysMon_SetSeqChEnables (XSysMon *InstancePtr, u64 ChEnableMask) |
This function enables the specified channels in the ADC Channel Selection Sequencer Registers. More... | |
u64 | XSysMon_GetSeqChEnables (XSysMon *InstancePtr) |
This function gets the channel enable bits status from the ADC Channel Selection Sequencer Registers. More... | |
int | XSysMon_SetSeqAvgEnables (XSysMon *InstancePtr, u64 AvgEnableChMask) |
This function enables the averaging for the specified channels in the ADC Channel Averaging Enable Sequencer Registers. More... | |
u64 | XSysMon_GetSeqAvgEnables (XSysMon *InstancePtr) |
This function returns the channels for which the averaging has been enabled in the ADC Channel Averaging Enables Sequencer Registers. More... | |
int | XSysMon_SetSeqInputMode (XSysMon *InstancePtr, u32 InputModeChMask) |
This function sets the Analog input mode for the specified channels in the ADC Channel Analog-Input Mode Sequencer Registers. More... | |
u32 | XSysMon_GetSeqInputMode (XSysMon *InstancePtr) |
This function gets the Analog input mode for all the channels from the ADC Channel Analog-Input Mode Sequencer Registers. More... | |
int | XSysMon_SetSeqAcqTime (XSysMon *InstancePtr, u32 AcqCyclesChMask) |
This function sets the number of Acquisition cycles in the ADC Channel Acquisition Time Sequencer Registers. More... | |
u32 | XSysMon_GetSeqAcqTime (XSysMon *InstancePtr) |
This function gets the status of acquisition from the ADC Channel Acquisition Time Sequencer Registers. More... | |
void | XSysMon_SetAlarmThreshold (XSysMon *InstancePtr, u8 AlarmThrReg, u16 Value) |
This functions sets the contents of the given Alarm Threshold Register. More... | |
u16 | XSysMon_GetAlarmThreshold (XSysMon *InstancePtr, u8 AlarmThrReg) |
This function returns the contents of the specified Alarm Threshold Register. More... | |
void | XSysMon_SetOverTemp (XSysMon *InstancePtr, u16 Value) |
This function sets the powerdown temperature for the OverTemp signal in the OT Powerdown register. More... | |
u16 | XSysMon_GetOverTemp (XSysMon *InstancePtr) |
This function returns the powerdown temperature of the OverTemp signal in the OT Powerdown register. More... | |
void | XSysMon_EnableUserOverTemp (XSysMon *InstancePtr) |
This function enables programming of the powerdown temperature for the OverTemp signal in the OT Powerdown register. More... | |
void | XSysMon_DisableUserOverTemp (XSysMon *InstancePtr) |
This function disables programming of the powerdown temperature for the OverTemp signal in the OT Powerdown register. More... | |
void | XSysMon_EnableTempUpdate (XSysMon *InstancePtr) |
This function enables the Temperature updation logic so that temperature can be sent over TEMP_OUT port. More... | |
void | XSysMon_DisableTempUpdate (XSysMon *InstancePtr) |
This function disables the Temperature updation logic for TEMP_OUT port. More... | |
void | XSysMon_SetTempWaitCycles (XSysMon *InstancePtr, u16 WaitCycles) |
This function sets the number of Wait Cycles for Temperature updation logic. More... | |
XSysMon_Config * | XSysMon_LookupConfig (u16 DeviceId) |
Functions in xsysmon_sinit.c. More... | |
int | XSysMon_SelfTest (XSysMon *InstancePtr) |
Functions in xsysmon_selftest.c. More... | |
void | XSysMon_IntrGlobalEnable (XSysMon *InstancePtr) |
Functions in xsysmon_intr.c. More... | |
void | XSysMon_IntrGlobalDisable (XSysMon *InstancePtr) |
This function disables the global interrupt in the Global Interrupt Enable Register (GIER) so that the interrupt output from the System Monitor/ADC device is disabled. More... | |
void | XSysMon_IntrEnable (XSysMon *InstancePtr, u32 Mask) |
This function enables the specified interrupts in the device. More... | |
void | XSysMon_IntrDisable (XSysMon *InstancePtr, u32 Mask) |
This function disables the specified interrupts in the device. More... | |
u32 | XSysMon_IntrGetEnabled (XSysMon *InstancePtr) |
This function returns the enabled interrupts read from the Interrupt Enable Register (IPIER). More... | |
u32 | XSysMon_IntrGetStatus (XSysMon *InstancePtr) |
This function returns the interrupt status read from Interrupt Status Register(IPISR). More... | |
void | XSysMon_IntrClear (XSysMon *InstancePtr, u32 Mask) |
This function clears the specified interrupts in the Interrupt Status Register (IPISR). More... | |
Variables | |
XSysMon_Config | XSysMon_ConfigTable [XPAR_XSYSMON_NUM_INSTANCES] |
This table contains configuration information for each System Monitor/ADC device in the system. More... | |
XSysMon_Config | XSysMon_ConfigTable [] |
This table contains configuration information for each System Monitor/ADC device in the system. More... | |
Indexes for the different channels. | |
#define | XSM_CH_TEMP 0x0 |
On Chip Temperature. More... | |
#define | XSM_CH_VCCINT 0x1 |
VCCINT. More... | |
#define | XSM_CH_VCCAUX 0x2 |
VCCAUX. More... | |
#define | XSM_CH_VPVN 0x3 |
VP/VN Dedicated analog inputs. More... | |
#define | XSM_CH_VREFP 0x4 |
VREFP. More... | |
#define | XSM_CH_VREFN 0x5 |
VREFN. More... | |
#define | XSM_CH_VBRAM 0x6 |
VBRAM - 7 Series and Zynq. More... | |
#define | XSM_CH_SUPPLY_CALIB 0x07 |
Supply Calib Data Reg. More... | |
#define | XSM_CH_ADC_CALIB 0x08 |
ADC Offset Channel Reg. More... | |
#define | XSM_CH_GAINERR_CALIB 0x09 |
Gain Error Channel Reg. More... | |
#define | XSM_CH_VCCPINT 0x0D |
On-chip PS VCCPINT Channel, Zynq. More... | |
#define | XSM_CH_VCCPAUX 0x0E |
On-chip PS VCCPAUX Channel, Zynq. More... | |
#define | XSM_CH_VCCPDRO 0x0F |
On-chip PS VCCPDRO Channel, Zynq. More... | |
#define | XSM_CH_AUX_MIN 16 |
Channel number for 1st Aux Channel. More... | |
#define | XSM_CH_AUX_MAX 31 |
Channel number for Last Aux channel. More... | |
#define | XSM_CH_VUSR0 32 |
VUSER0 Supply - UltraScale. More... | |
#define | XSM_CH_VUSR1 33 |
VUSER1 Supply - UltraScale. More... | |
#define | XSM_CH_VUSR2 34 |
VUSER2 Supply - UltraScale. More... | |
#define | XSM_CH_VUSR3 35 |
VUSER3 Supply - UltraScale. More... | |
Indexes for reading the Calibration Coefficient Data. | |
#define | XSM_CALIB_SUPPLY_OFFSET_COEFF 0 |
Supply Offset Calib Coefficient. More... | |
#define | XSM_CALIB_ADC_OFFSET_COEFF 1 |
ADC Offset Calib Coefficient. More... | |
#define | XSM_CALIB_GAIN_ERROR_COEFF 2 |
Gain Error Calib Coefficient. More... | |
Indexes for reading the Minimum/Maximum Measurement Data. | |
#define | XSM_MAX_TEMP 0 |
Maximum Temperature Data. More... | |
#define | XSM_MAX_VCCINT 1 |
Maximum VCCINT Data. More... | |
#define | XSM_MAX_VCCAUX 2 |
Maximum VCCAUX Data. More... | |
#define | XSM_MAX_VCCBRAM 3 |
Maximum VCCBRAM Data, 7 Series/Zynq. More... | |
#define | XSM_MIN_TEMP 4 |
Minimum Temperature Data. More... | |
#define | XSM_MIN_VCCINT 5 |
Minimum VCCINT Data. More... | |
#define | XSM_MIN_VCCAUX 6 |
Minimum VCCAUX Data. More... | |
#define | XSM_MIN_VCCBRAM 7 |
Minimum VCCBRAM Data, 7 Series/Zynq. More... | |
#define | XSM_MAX_VCCPINT 8 |
Maximum VCCPINT Data, Zynq. More... | |
#define | XSM_MAX_VCCPAUX 9 |
Maximum VCCPAUX Data, Zynq. More... | |
#define | XSM_MAX_VCCPDRO 0xA |
Maximum VCCPDRO Data, Zynq. More... | |
#define | XSM_MIN_VCCPINT 0xC |
Minimum VCCPINT Data, Zynq. More... | |
#define | XSM_MIN_VCCPAUX 0xD |
Minimum VCCPAUX Data, Zynq. More... | |
#define | XSM_MIN_VCCPDRO 0xE |
Minimum VCCPDRO Data, Zynq. More... | |
#define | XSM_MAX_VUSR0 0x80 |
Maximum VUSR0 Data, Ultrascale. More... | |
#define | XSM_MAX_VUSR1 0x81 |
Maximum VUSR1 Data, Ultrascale. More... | |
#define | XSM_MAX_VUSR2 0x82 |
Maximum VUSR2 Data, Ultrascale. More... | |
#define | XSM_MAX_VUSR3 0x83 |
Maximum VUSR3 Data, Ultrascale. More... | |
#define | XSM_MIN_VUSR0 0x88 |
Minimum VUSR0 Data, Ultrascale. More... | |
#define | XSM_MIN_VUSR1 0x89 |
Minimum VUSR1 Data, Ultrascale. More... | |
#define | XSM_MIN_VUSR2 0x8A |
Minimum VUSR2 Data, Ultrascale. More... | |
#define | XSM_MIN_VUSR3 0x8B |
Minimum VUSR3 Data, Ultrascale. More... | |
Alarm Threshold(Limit) Register (ATR) indexes. | |
#define | XSM_ATR_TEMP_UPPER 0 |
High user Temperature. More... | |
#define | XSM_ATR_VCCINT_UPPER 1 |
VCCINT high voltage limit. More... | |
#define | XSM_ATR_VCCAUX_UPPER 2 |
VCCAUX high voltage limit. More... | |
#define | XSM_ATR_OT_UPPER 3 |
Lower Over Temperature limit. More... | |
#define | XSM_ATR_TEMP_LOWER 4 |
Low user Temperature. More... | |
#define | XSM_ATR_VCCINT_LOWER 5 |
VCCINT low voltage limit. More... | |
#define | XSM_ATR_VCCAUX_LOWER 6 |
VCCAUX low voltage limit. More... | |
#define | XSM_ATR_OT_LOWER 7 |
Lower Over Temperature limit. More... | |
#define | XSM_ATR_VBRAM_UPPER 8 |
VBRAM high voltage limit. More... | |
#define | XSM_ATR_VCCPINT_UPPER 9 |
VCCPINT Upper Alarm, Zynq. More... | |
#define | XSM_ATR_VCCPAUX_UPPER 0xA |
VCCPAUX Upper Alarm, Zynq. More... | |
#define | XSM_ATR_VCCPDRO_UPPER 0xB |
VCCPDRO Upper Alarm, Zynq. More... | |
#define | XSM_ATR_VBRAM_LOWER 0xC |
VRBAM Lower Alarm, 7 Series and Zynq. More... | |
#define | XSM_ATR_VCCPINT_LOWER 0xD |
VCCPINT Lower Alarm, Zynq. More... | |
#define | XSM_ATR_VCCPAUX_LOWER 0xE |
VCCPAUX Lower Alarm, Zynq. More... | |
#define | XSM_ATR_VCCPDRO_LOWER 0xF |
VCCPDRO Lower Alarm, Zynq. More... | |
#define | XSM_ATR_VUSR0_UPPER 0x10 |
VUSER0 Upper Alarm, Ultrascale. More... | |
#define | XSM_ATR_VUSR1_UPPER 0x11 |
VUSER1 Upper Alarm, Ultrascale. More... | |
#define | XSM_ATR_VUSR2_UPPER 0x12 |
VUSER2 Upper Alarm, Ultrascale. More... | |
#define | XSM_ATR_VUSR3_UPPER 0x13 |
VUSER3 Upper Alarm, Ultrascale. More... | |
#define | XSM_ATR_VUSR0_LOWER 0x18 |
VUSER0 Lower Alarm, Ultrascale. More... | |
#define | XSM_ATR_VUSR1_LOWER 0x19 |
VUSER1 Lower Alarm, Ultrascale. More... | |
#define | XSM_ATR_VUSR2_LOWER 0x1A |
VUSER2 Lower Alarm, Ultrascale. More... | |
#define | XSM_ATR_VUSR3_LOWER 0x1B |
VUSER3 Lower Alarm, Ultrascale. More... | |
Averaging to be done for the channels. | |
#define | XSM_AVG_0_SAMPLES 0 |
No Averaging. More... | |
#define | XSM_AVG_16_SAMPLES 1 |
Average 16 samples. More... | |
#define | XSM_AVG_64_SAMPLES 2 |
Average 64 samples. More... | |
#define | XSM_AVG_256_SAMPLES 3 |
Average 256 samples. More... | |
Channel Sequencer Modes of operation. | |
#define | XSM_SEQ_MODE_SAFE 0 |
Default Safe Mode. More... | |
#define | XSM_SEQ_MODE_ONEPASS 1 |
Onepass through Sequencer. More... | |
#define | XSM_SEQ_MODE_CONTINPASS 2 |
Continuous Cycling Seqquencer. More... | |
#define | XSM_SEQ_MODE_SINGCHAN 3 |
Single channel - No Sequencing. More... | |
#define | XSM_SEQ_MODE_SIMUL 4 |
Simultaneous Cycling Sequencer, 7 Series and Zynq XADC only. More... | |
#define | XSM_SEQ_MODE_INDEPENDENT 8 |
Independent ADC Sequencer, 7 Series and Zynq XADC only. More... | |
Register offsets | |
The following constants provide access to each of the registers of the System Monitor/ADC device. | |
#define | XSM_SRR_OFFSET 0x00 |
Software Reset Register. More... | |
#define | XSM_SR_OFFSET 0x04 |
Status Register. More... | |
#define | XSM_AOR_OFFSET 0x08 |
Alarm Output Register. More... | |
#define | XSM_CONVST_OFFSET 0x0C |
ADC Convert Start Register. More... | |
#define | XSM_ARR_OFFSET 0x10 |
ADC Reset Register. More... | |
#define | XSM_GIER_OFFSET 0x5C |
Global Interrupt Enable. More... | |
#define | XSM_IPISR_OFFSET 0x60 |
Interrupt Status Register. More... | |
#define | XSM_IPIER_OFFSET 0x68 |
Interrupt Enable register. More... | |
#define | XSM_TEMP_OFFSET (XSM_IP_OFFSET + 0x200) |
On-chip Temperature Reg. More... | |
#define | XSM_VCCINT_OFFSET (XSM_IP_OFFSET + 0x204) |
On-chip VCCINT Data Reg. More... | |
#define | XSM_VCCAUX_OFFSET (XSM_IP_OFFSET + 0x208) |
On-chip VCCAUX Data Reg. More... | |
#define | XSM_VPVN_OFFSET (XSM_IP_OFFSET + 0x20C) |
ADC out of VP/VN. More... | |
#define | XSM_VREFP_OFFSET (XSM_IP_OFFSET + 0x210) |
On-chip VREFP Data Reg. More... | |
#define | XSM_VREFN_OFFSET (XSM_IP_OFFSET + 0x214) |
On-chip VREFN Data Reg. More... | |
#define | XSM_VBRAM_OFFSET (XSM_IP_OFFSET + 0x218) |
On-chip VBRAM Data,7-series/Zynq. More... | |
#define | XSM_SUPPLY_CALIB_OFFSET (XSM_IP_OFFSET + 0x220) |
Supply Offset Data Reg. More... | |
#define | XSM_ADC_CALIB_OFFSET (XSM_IP_OFFSET + 0x224) |
ADC Offset Data Reg. More... | |
#define | XSM_GAINERR_CALIB_OFFSET (XSM_IP_OFFSET + 0x228) |
Gain Error Data Reg. More... | |
#define | XSM_VCCPINT_OFFSET (XSM_IP_OFFSET + 0x22C) |
PS VCCPINT Data Reg - Zynq. More... | |
#define | XSM_VCCPAUX_OFFSET (XSM_IP_OFFSET + 0x230) |
PS VCCPAUX Data Reg - Zynq. More... | |
#define | XSM_VCCPDRO_OFFSET (XSM_IP_OFFSET + 0x234) |
PS VCCPDRO Data Reg - Zynq. More... | |
#define | XSM_VUSR0_OFFSET (XSM_IP_OFFSET + 0x400) |
VUSER0 Supply - Ultrascale. More... | |
#define | XSM_VUSR1_OFFSET (XSM_IP_OFFSET + 0x404) |
VUSER0 Supply - Ultrascale. More... | |
#define | XSM_VUSR2_OFFSET (XSM_IP_OFFSET + 0x408) |
VUSER0 Supply - Ultrascale. More... | |
#define | XSM_VUSR3_OFFSET (XSM_IP_OFFSET + 0x40C) |
VUSER0 Supply - Ultrascale. More... | |
#define | XSM_AUX00_OFFSET (XSM_IP_OFFSET + 0x240) |
ADC out of VAUXP0/VAUXN0. More... | |
#define | XSM_AUX01_OFFSET (XSM_IP_OFFSET + 0x244) |
ADC out of VAUXP1/VAUXN1. More... | |
#define | XSM_AUX02_OFFSET (XSM_IP_OFFSET + 0x248) |
ADC out of VAUXP2/VAUXN2. More... | |
#define | XSM_AUX03_OFFSET (XSM_IP_OFFSET + 0x24C) |
ADC out of VAUXP3/VAUXN3. More... | |
#define | XSM_AUX04_OFFSET (XSM_IP_OFFSET + 0x250) |
ADC out of VAUXP4/VAUXN4. More... | |
#define | XSM_AUX05_OFFSET (XSM_IP_OFFSET + 0x254) |
ADC out of VAUXP5/VAUXN5. More... | |
#define | XSM_AUX06_OFFSET (XSM_IP_OFFSET + 0x258) |
ADC out of VAUXP6/VAUXN6. More... | |
#define | XSM_AUX07_OFFSET (XSM_IP_OFFSET + 0x25C) |
ADC out of VAUXP7/VAUXN7. More... | |
#define | XSM_AUX08_OFFSET (XSM_IP_OFFSET + 0x260) |
ADC out of VAUXP8/VAUXN8. More... | |
#define | XSM_AUX09_OFFSET (XSM_IP_OFFSET + 0x264) |
ADC out of VAUXP9/VAUXN9. More... | |
#define | XSM_AUX10_OFFSET (XSM_IP_OFFSET + 0x268) |
ADC out of VAUXP10/VAUXN10. More... | |
#define | XSM_AUX11_OFFSET (XSM_IP_OFFSET + 0x26C) |
ADC out of VAUXP11/VAUXN11. More... | |
#define | XSM_AUX12_OFFSET (XSM_IP_OFFSET + 0x270) |
ADC out of VAUXP12/VAUXN12. More... | |
#define | XSM_AUX13_OFFSET (XSM_IP_OFFSET + 0x274) |
ADC out of VAUXP13/VAUXN13. More... | |
#define | XSM_AUX14_OFFSET (XSM_IP_OFFSET + 0x278) |
ADC out of VAUXP14/VAUXN14. More... | |
#define | XSM_AUX15_OFFSET (XSM_IP_OFFSET + 0x27C) |
ADC out of VAUXP15/VAUXN15. More... | |
#define | XSM_MAX_TEMP_OFFSET (XSM_IP_OFFSET + 0x280) |
Maximum Temperature Reg. More... | |
#define | XSM_MAX_VCCINT_OFFSET (XSM_IP_OFFSET + 0x284) |
Maximum VCCINT Register. More... | |
#define | XSM_MAX_VCCAUX_OFFSET (XSM_IP_OFFSET + 0x288) |
Maximum VCCAUX Register. More... | |
#define | XSM_MAX_VBRAM_OFFSET (XSM_IP_OFFSET + 0x28C) |
Maximum VBRAM Reg, 7 Series/Zynq. More... | |
#define | XSM_MIN_TEMP_OFFSET (XSM_IP_OFFSET + 0x290) |
Minimum Temperature Reg. More... | |
#define | XSM_MIN_VCCINT_OFFSET (XSM_IP_OFFSET + 0x294) |
Minimum VCCINT Register. More... | |
#define | XSM_MIN_VCCAUX_OFFSET (XSM_IP_OFFSET + 0x298) |
Minimum VCCAUX Register. More... | |
#define | XSM_MIN_VBRAM_OFFSET (XSM_IP_OFFSET + 0x29C) |
Maximum VBRAM Reg, 7 Series/Zynq. More... | |
#define | XSM_MAX_VCCPINT_OFFSET (XSM_IP_OFFSET + 0x2A0) |
Max VCCPINT Register, Zynq. More... | |
#define | XSM_MAX_VCCPAUX_OFFSET (XSM_IP_OFFSET + 0x2A4) |
Max VCCPAUX Register, Zynq. More... | |
#define | XSM_MAX_VCCPDRO_OFFSET (XSM_IP_OFFSET + 0x2A8) |
Max VCCPDRO Register, Zynq. More... | |
#define | XSM_MIN_VCCPINT_OFFSET (XSM_IP_OFFSET + 0x2AC) |
Min VCCPINT Register, Zynq. More... | |
#define | XSM_MIN_VCCPAUX_OFFSET (XSM_IP_OFFSET + 0x2B0) |
Min VCCPAUX Register, Zynq. More... | |
#define | XSM_MIN_VCCPDRO_OFFSET (XSM_IP_OFFSET + 0x2B4) |
Min VCCPDRO Register, Zynq. More... | |
#define | XSM_MAX_VUSR0_OFFSET (XSM_IP_OFFSET + 0x480) |
Maximum VUSER0 Supply Reg. More... | |
#define | XSM_MAX_VUSR1_OFFSET (XSM_IP_OFFSET + 0x484) |
Maximum VUSER1 Supply Reg. More... | |
#define | XSM_MAX_VUSR2_OFFSET (XSM_IP_OFFSET + 0x488) |
Maximum VUSER2 Supply Reg. More... | |
#define | XSM_MAX_VUSR3_OFFSET (XSM_IP_OFFSET + 0x48C) |
Maximum VUSER3 Supply Reg. More... | |
#define | XSM_MIN_VUSR0_OFFSET (XSM_IP_OFFSET + 0x4A0) |
Minimum VUSER0 Supply Reg. More... | |
#define | XSM_MIN_VUSR1_OFFSET (XSM_IP_OFFSET + 0x4A4) |
Minimum VUSER1 Supply Reg. More... | |
#define | XSM_MIN_VUSR2_OFFSET (XSM_IP_OFFSET + 0x4A8) |
Minimum VUSER2 Supply Reg. More... | |
#define | XSM_MIN_VUSR3_OFFSET (XSM_IP_OFFSET + 0x4AC) |
Minimum VUSER3 Supply Reg. More... | |
#define | XSM_FLAG_REG_OFFSET (XSM_IP_OFFSET + 0x2FC) |
General Status. More... | |
#define | XSM_CFR0_OFFSET (XSM_IP_OFFSET + 0x300) |
Configuration Register 0. More... | |
#define | XSM_CFR1_OFFSET (XSM_IP_OFFSET + 0x304) |
Configuration Register 1. More... | |
#define | XSM_CFR2_OFFSET (XSM_IP_OFFSET + 0x308) |
Configuration Register 2. More... | |
#define | XSM_SEQ00_OFFSET (XSM_IP_OFFSET + 0x320) |
Seq Reg 00 Adc Channel Selection. More... | |
#define | XSM_SEQ01_OFFSET (XSM_IP_OFFSET + 0x324) |
Seq Reg 01 Adc Channel Selection. More... | |
#define | XSM_SEQ02_OFFSET (XSM_IP_OFFSET + 0x328) |
Seq Reg 02 Adc Average Enable. More... | |
#define | XSM_SEQ03_OFFSET (XSM_IP_OFFSET + 0x32C) |
Seq Reg 03 Adc Average Enable. More... | |
#define | XSM_SEQ04_OFFSET (XSM_IP_OFFSET + 0x330) |
Seq Reg 04 Adc Input Mode Select. More... | |
#define | XSM_SEQ05_OFFSET (XSM_IP_OFFSET + 0x334) |
Seq Reg 05 Adc Input Mode Select. More... | |
#define | XSM_SEQ06_OFFSET (XSM_IP_OFFSET + 0x338) |
Seq Reg 06 Adc Acquisition Select. More... | |
#define | XSM_SEQ07_OFFSET (XSM_IP_OFFSET + 0x33C) |
Seq Reg 07 Adc Acquisition Select. More... | |
#define | XSM_SEQ08_OFFSET (XSM_IP_OFFSET + 0x318) |
Seq Reg 08 Adc Channel Selection. More... | |
#define | XSM_SEQ09_OFFSET (XSM_IP_OFFSET + 0x31C) |
Seq Reg 09 Adc Average Enable. More... | |
#define | XSM_ATR_TEMP_UPPER_OFFSET (XSM_IP_OFFSET + 0x340) |
Temp Upper Alarm Register. More... | |
#define | XSM_ATR_VCCINT_UPPER_OFFSET (XSM_IP_OFFSET + 0x344) |
VCCINT Upper Alarm Reg. More... | |
#define | XSM_ATR_VCCAUX_UPPER_OFFSET (XSM_IP_OFFSET + 0x348) |
VCCAUX Upper Alarm Reg. More... | |
#define | XSM_ATR_OT_UPPER_OFFSET (XSM_IP_OFFSET + 0x34C) |
Over Temp Upper Alarm Reg. More... | |
#define | XSM_ATR_TEMP_LOWER_OFFSET (XSM_IP_OFFSET + 0x350) |
Temp Lower Alarm Register. More... | |
#define | XSM_ATR_VCCINT_LOWER_OFFSET (XSM_IP_OFFSET + 0x354) |
VCCINT Lower Alarm Reg. More... | |
#define | XSM_ATR_VCCAUX_LOWER_OFFSET (XSM_IP_OFFSET + 0x358) |
VCCAUX Lower Alarm Reg. More... | |
#define | XSM_ATR_OT_LOWER_OFFSET (XSM_IP_OFFSET + 0x35C) |
Over Temp Lower Alarm Reg. More... | |
#define | XSM_ATR_VBRAM_UPPER_OFFSET (XSM_IP_OFFSET + 0x360) |
VBBAM Upper Alarm,7 Series. More... | |
#define | XSM_ATR_VCCPINT_UPPER_OFFSET (XSM_IP_OFFSET + 0x364) |
VCCPINT Upper Alarm, Zynq. More... | |
#define | XSM_ATR_VCCPAUX_UPPER_OFFSET (XSM_IP_OFFSET + 0x368) |
VCCPAUX Upper Alarm, Zynq. More... | |
#define | XSM_ATR_VCCPDRO_UPPER_OFFSET (XSM_IP_OFFSET + 0x36C) |
VCCPDRO Upper Alarm, Zynq. More... | |
#define | XSM_ATR_VBRAM_LOWER_OFFSET (XSM_IP_OFFSET + 0x370) |
VRBAM Lower Alarm, 7 Series. More... | |
#define | XSM_ATR_VCCPINT_LOWER_OFFSET (XSM_IP_OFFSET + 0x374) |
VCCPINT Lower Alarm, Zynq. More... | |
#define | XSM_ATR_VCCPAUX_LOWER_OFFSET (XSM_IP_OFFSET + 0x378) |
VCCPAUX Lower Alarm, Zynq. More... | |
#define | XSM_ATR_VCCPDRO_LOWER_OFFSET (XSM_IP_OFFSET + 0x37C) |
VCCPDRO Lower Alarm, Zynq. More... | |
#define | XSM_ATR_VUSR0_UPPER_OFFSET (XSM_IP_OFFSET + 0x380) |
VUSER0 Upper Alarm Reg. More... | |
#define | XSM_ATR_VUSR1_UPPER_OFFSET (XSM_IP_OFFSET + 0x384) |
VUSER1 Upper Alarm Reg. More... | |
#define | XSM_ATR_VUSR2_UPPER_OFFSET (XSM_IP_OFFSET + 0x388) |
VUSER2 Upper Alarm Reg. More... | |
#define | XSM_ATR_VUSR3_UPPER_OFFSET (XSM_IP_OFFSET + 0x38C) |
VUSER3 Upper Alarm Reg. More... | |
#define | XSM_ATR_VUSR0_LOWER_OFFSET (XSM_IP_OFFSET + 0x3A0) |
VUSER0 Lower Alarm Reg. More... | |
#define | XSM_ATR_VUSR1_LOWER_OFFSET (XSM_IP_OFFSET + 0x3A4) |
VUSER1 Lower Alarm Reg. More... | |
#define | XSM_ATR_VUSR2_LOWER_OFFSET (XSM_IP_OFFSET + 0x3A8) |
VUSER2 Lower Alarm Reg. More... | |
#define | XSM_ATR_VUSR3_LOWER_OFFSET (XSM_IP_OFFSET + 0x3AC) |
VUSER3 Lower Alarm Reg. More... | |
System Monitor/ADC Software Reset Register (SRR) mask(s) | |
#define | XSM_SRR_IPRST_MASK 0x0000000A |
Device Reset Mask. More... | |
System Monitor/ADC Status Register (SR) mask(s) | |
#define | XSM_SR_JTAG_BUSY_MASK 0x00000400 |
JTAG is busy. More... | |
#define | XSM_SR_JTAG_MODIFIED_MASK 0x00000200 |
JTAG Write has occurred. More... | |
#define | XSM_SR_JTAG_LOCKED_MASK 0x00000100 |
JTAG is locked. More... | |
#define | XSM_SR_BUSY_MASK 0x00000080 |
ADC is busy in conversion. More... | |
#define | XSM_SR_EOS_MASK 0x00000040 |
End of Sequence. More... | |
#define | XSM_SR_EOC_MASK 0x00000020 |
End of Conversion. More... | |
#define | XSM_SR_CH_MASK 0x0000001F |
Input ADC channel. More... | |
System Monitor/ADC Alarm Output Register (AOR) mask(s) | |
#define | XSM_AOR_ALARM_ALL_MASK 0x00001FFF |
Mask for all Alarms. More... | |
#define | XSM_AOR_VUSR3_MASK 0x00001000 |
ALM11 - VUSER3 Alarm Mask. More... | |
#define | XSM_AOR_VUSR2_MASK 0x00000800 |
ALM10 - VUSER2 Alarm Mask. More... | |
#define | XSM_AOR_VUSR1_MASK 0x00000400 |
ALM9 - VUSER1 Alarm Mask. More... | |
#define | XSM_AOR_VUSR0_MASK 0x00000200 |
ALM8 - VUSER0 Alarm Mask. More... | |
#define | XSM_AOR_ALL_MASK 0x00000100 |
ALM7 - All Alarms 0 to 6. More... | |
#define | XSM_AOR_VCCPDRO_MASK 0x00000080 |
ALM6 - VCCPDRO Mask, Zynq. More... | |
#define | XSM_AOR_VCCPAUX_MASK 0x00000040 |
ALM5 - VCCPAUX Mask, Zynq. More... | |
#define | XSM_AOR_VCCPINT_MASK 0x00000020 |
ALM4 - VCCPINT Mask, Zynq. More... | |
#define | XSM_AOR_VBRAM_MASK 0x00000010 |
ALM3 - VBRAM Output Mask. More... | |
#define | XSM_AOR_VCCAUX_MASK 0x00000008 |
ALM2 - VCCAUX Output Mask. More... | |
#define | XSM_AOR_VCCINT_MASK 0x00000004 |
ALM1 - VCCINT Alarm Mask. More... | |
#define | XSM_AOR_TEMP_MASK 0x00000002 |
ALM0 - Temp sensor Alarm Mask. More... | |
#define | XSM_AOR_OT_MASK 0x00000001 |
Over Temp Alarm Output. More... | |
System Monitor/ADC CONVST Register (CONVST) mask(s) | |
#define | XSM_CONVST_CONVST_MASK 0x00000001 |
Conversion Start Mask. More... | |
#define | XSM_CONVST_TEMPUPDT_MASK 0x00000002 |
Temperature Update Enable Mask. More... | |
#define | XSM_CONVST_WAITCYCLES_SHIFT 2 |
Wait Cycles Shift. More... | |
#define | XSM_CONVST_WAITCYCLES_MASK 0x0003FFFC |
Wait Cycles Mask. More... | |
#define | XSM_CONVST_WAITCYCLES_DEFAULT 0x03E8 |
Wait Cycles default value. More... | |
System Monitor/ADC Reset Register (ARR) mask(s) | |
#define | XSM_ARR_RST_MASK 0x00000001 |
ADC Reset bit mask. More... | |
Global Interrupt Enable Register (GIER) mask(s) | |
#define | XSM_GIER_GIE_MASK 0x80000000 |
Global interrupt enable. More... | |
System Monitor/ADC device Interrupt Status/Enable Registers | |
Interrupt Status Register (IPISR) This register holds the interrupt status flags for the device. Interrupt Enable Register (IPIER) This register is used to enable interrupt sources for the device. Writing a '1' to a bit in this register enables the corresponding Interrupt. Writing a '0' to a bit in this register disables the corresponding Interrupt IPISR/IPIER registers have the same bit definitions and are only defined once. | |
#define | XSM_IPIXR_VBRAM_MASK 0x00000400 |
ALM3 - VBRAM Output Mask. More... | |
#define | XSM_IPIXR_TEMP_DEACTIVE_MASK 0x00000200 |
Alarm 0 DEACTIVE. More... | |
#define | XSM_IPIXR_OT_DEACTIVE_MASK 0x00000100 |
Over Temp DEACTIVE. More... | |
#define | XSM_IPIXR_JTAG_MODIFIED_MASK 0x00000080 |
JTAG Modified. More... | |
#define | XSM_IPIXR_JTAG_LOCKED_MASK 0x00000040 |
JTAG Locked. More... | |
#define | XSM_IPIXR_EOC_MASK 0x00000020 |
End Of Conversion. More... | |
#define | XSM_IPIXR_EOS_MASK 0x00000010 |
End Of Sequence. More... | |
#define | XSM_IPIXR_VCCAUX_MASK 0x00000008 |
Alarm 2 - VCCAUX. More... | |
#define | XSM_IPIXR_VCCINT_MASK 0x00000004 |
Alarm 1 - VCCINT. More... | |
#define | XSM_IPIXR_TEMP_MASK 0x00000002 |
Alarm 0 - Temp ACTIVE. More... | |
#define | XSM_IPIXR_OT_MASK 0x00000001 |
Over Temperature ACTIVE. More... | |
#define | XSM_IPIXR_VUSR0_MASK 0x00004000 |
Alarm 8 VUSER0. More... | |
#define | XSM_IPIXR_VUSR1_MASK 0x00008000 |
Alarm 9 VUSER1. More... | |
#define | XSM_IPIXR_VUSR2_MASK 0x00010000 |
Alarm 10 VUSER2. More... | |
#define | XSM_IPIXR_VUSR3_MASK 0x00020000 |
Alarm 11 VUSER3. More... | |
#define | XSM_IPIXR_ALL_MASK 0x0003C7FF |
Mask of all interrupts. More... | |
Mask for all ADC converted data including Minimum/Maximum Measurements | |
and Threshold data. | |
#define | XSM_ADCDATA_MAX_MASK 0x03FF |
Configuration Register 0 (CFR0) mask(s) | |
#define | XSM_CFR0_CAL_AVG_MASK 0x8000 |
Averaging enable Mask. More... | |
#define | XSM_CFR0_AVG_VALID_MASK 0x3000 |
Averaging bit Mask. More... | |
#define | XSM_CFR0_AVG1_MASK 0x0000 |
No Averaging. More... | |
#define | XSM_CFR0_AVG16_MASK 0x1000 |
Average 16 samples. More... | |
#define | XSM_CFR0_AVG64_MASK 0x2000 |
Average 64 samples. More... | |
#define | XSM_CFR0_AVG256_MASK 0x3000 |
Average 256 samples. More... | |
#define | XSM_CFR0_AVG_SHIFT 12 |
Shift for the Averaging bits. More... | |
#define | XSM_CFR0_MUX_MASK 0x0800 |
External Mux Mask Enable. More... | |
#define | XSM_CFR0_DU_MASK 0x0400 |
Bipolar/Unipolar mode. More... | |
#define | XSM_CFR0_EC_MASK 0x0200 |
Event driven/Continuous mode. More... | |
#define | XSM_CFR0_ACQ_MASK 0x0100 |
Add acquisition by 6 ADCCLK. More... | |
#define | XSM_CFR0_CHANNEL_MASK 0x003F |
Channel number bit Mask. More... | |
Configuration Register 1 (CFR1) mask(s) | |
#define | XSM_CFR1_SEQ_VALID_MASK 0xF000 |
Sequence bit Mask. More... | |
#define | XSM_CFR1_SEQ_SAFEMODE_MASK 0x0000 |
Default Safe Mode. More... | |
#define | XSM_CFR1_SEQ_ONEPASS_MASK 0x1000 |
Onepass through Seq. More... | |
#define | XSM_CFR1_SEQ_CONTINPASS_MASK 0x2000 |
Continuous Cycling Seq. More... | |
#define | XSM_CFR1_SEQ_SINGCHAN_MASK 0x3000 |
Single channel - No Seq. More... | |
#define | XSM_CFR1_SEQ_SIMUL_SAMPLING_MASK 0x4000 |
Simulataneous Sampling Mask. More... | |
#define | XSM_CFR1_SEQ_INDEPENDENT_MASK 0x8000 |
Independent Mode. More... | |
#define | XSM_CFR1_SEQ_SHIFT 12 |
Sequence bit shift. More... | |
#define | XSM_CFR1_ALM_VCCPDRO_MASK 0x0800 |
Alarm 6 - VCCPDRO, Zynq. More... | |
#define | XSM_CFR1_ALM_VCCPAUX_MASK 0x0400 |
Alarm 5 - VCCPAUX, Zynq. More... | |
#define | XSM_CFR1_ALM_VCCPINT_MASK 0x0200 |
Alarm 4 - VCCPINT, Zynq. More... | |
#define | XSM_CFR1_ALM_VBRAM_MASK 0x0100 |
Alarm 3 - VBRAM Enable 7 Series and Zynq. More... | |
#define | XSM_CFR1_CAL_VALID_MASK 0x00F0 |
Valid Calibration Mask. More... | |
#define | XSM_CFR1_CAL_PS_GAIN_OFFSET_MASK 0x0080 |
Calibration 3 -Power Supply Gain/Offset Enable. More... | |
#define | XSM_CFR1_CAL_PS_OFFSET_MASK 0x0040 |
Calibration 2 -Power Supply Offset Enable. More... | |
#define | XSM_CFR1_CAL_ADC_GAIN_OFFSET_MASK 0x0020 |
Calibration 1 -ADC Gain Offset Enable. More... | |
#define | XSM_CFR1_CAL_ADC_OFFSET_MASK 0x0010 |
Calibration 0 -ADC Offset Enable. More... | |
#define | XSM_CFR1_CAL_DISABLE_MASK 0x0000 |
No Calibration. More... | |
#define | XSM_CFR1_ALM_ALL_MASK 0x0F0F |
Mask for all alarms. More... | |
#define | XSM_CFR1_ALM_VCCAUX_MASK 0x0008 |
Alarm 2 - VCCAUX Enable. More... | |
#define | XSM_CFR1_ALM_VCCINT_MASK 0x0004 |
Alarm 1 - VCCINT Enable. More... | |
#define | XSM_CFR1_ALM_TEMP_MASK 0x0002 |
Alarm 0 - Temperature. More... | |
#define | XSM_CFR1_OT_MASK 0x0001 |
Over Temperature Enable. More... | |
Configuration Register 2 (CFR2) mask(s) | |
#define | XSM_CFR2_CD_VALID_MASK 0xFF00 |
Clock Divisor bit Mask. More... | |
#define | XSM_CFR2_CD_SHIFT 8 |
Num of shift on division. More... | |
#define | XSM_CFR2_CD_MIN 8 |
Minimum value of divisor. More... | |
#define | XSM_CFR2_CD_MAX 255 |
Maximum value of divisor. More... | |
#define | XSM_CFR2_PD_MASK 0x0030 |
Power Down Mask. More... | |
#define | XSM_CFR2_PD_XADC_MASK 0x0030 |
Power Down XADC Mask. More... | |
#define | XSM_CFR2_PD_ADC1_MASK 0x0020 |
Power Down XADC Mask. More... | |
#define | XSM_CFR2_PD_SHIFT 4 |
Power Down Shift. More... | |
Configuration Register 3 (CFR3) mask(s) | |
#define | XSM_CFR3_ALM_ALL_MASK 0x000F |
Mask for all alarms. More... | |
#define | XSM_CFR3_ALM_VUSR3_MASK 0x0008 |
VUSER 0 Supply. More... | |
#define | XSM_CFR3_ALM_VUSR2_MASK 0x0004 |
VUSER 1 Supply. More... | |
#define | XSM_CFR3_ALM_VUSR1_MASK 0x0002 |
VUSER 2 Supply. More... | |
#define | XSM_CFR3_ALM_VUSR0_MASK 0x0001 |
VUSER 3 Supply. More... | |
#define | XSM_CFR_ALM_ALL_MASK 0xF0F0F |
Alarm masks for channels in Configuration registers 1 and 3 | |
#define | XSM_CFR_ALM_VUSR3_MASK 0x00080000 |
VUSER 0 Supply. More... | |
#define | XSM_CFR_ALM_VUSR2_MASK 0x00040000 |
VUSER 1 Supply. More... | |
#define | XSM_CFR_ALM_VUSR1_MASK 0x00020000 |
VUSER 2 Supply. More... | |
#define | XSM_CFR_ALM_VUSR0_MASK 0x00010000 |
VUSER 3 Supply. More... | |
#define | XSM_CFR_ALM_VCCPDRO_MASK 0x0800 |
Alarm 6 - VCCPDRO, Zynq. More... | |
#define | XSM_CFR_ALM_VCCPAUX_MASK 0x0400 |
Alarm 5 - VCCPAUX, Zynq. More... | |
#define | XSM_CFR_ALM_VCCPINT_MASK 0x0200 |
Alarm 4 - VCCPINT, Zynq. More... | |
#define | XSM_CFR_ALM_VBRAM_MASK 0x0100 |
Alarm 3 - VBRAM Enable 7 Series and Zynq. More... | |
#define | XSM_CFR_ALM_VCCAUX_MASK 0x0008 |
Alarm 2 - VCCAUX Enable. More... | |
#define | XSM_CFR_ALM_VCCINT_MASK 0x0004 |
Alarm 1 - VCCINT Enable. More... | |
#define | XSM_CFR_ALM_TEMP_MASK 0x0002 |
Alarm 0 - Temperature. More... | |
#define | XSM_CFR_OT_MASK 0x0001 |
Over Temperature Enable. More... | |
Sequence Register (SEQ) Bit Definitions | |
#define | XSM_SEQ_CH_CALIB 0x00000001 |
ADC Calibration Channel. More... | |
#define | XSM_SEQ_CH_VCCPINT 0x00000020 |
VCCPINT, Zynq Only. More... | |
#define | XSM_SEQ_CH_VCCPAUX 0x00000040 |
VCCPAUX, Zynq Only. More... | |
#define | XSM_SEQ_CH_VCCPDRO 0x00000080 |
VCCPDRO, Zynq Only. More... | |
#define | XSM_SEQ_CH_TEMP 0x00000100 |
On Chip Temperature Channel. More... | |
#define | XSM_SEQ_CH_VCCINT 0x00000200 |
VCCINT Channel. More... | |
#define | XSM_SEQ_CH_VCCAUX 0x00000400 |
VCCAUX Channel. More... | |
#define | XSM_SEQ_CH_VPVN 0x00000800 |
VP/VN analog inputs Channel. More... | |
#define | XSM_SEQ_CH_VREFP 0x00001000 |
VREFP Channel. More... | |
#define | XSM_SEQ_CH_VREFN 0x00002000 |
VREFN Channel. More... | |
#define | XSM_SEQ_CH_VBRAM 0x00004000 |
VBRAM Channel, 7 series/Zynq. More... | |
#define | XSM_SEQ_CH_AUX00 0x00010000 |
1st Aux Channel More... | |
#define | XSM_SEQ_CH_AUX01 0x00020000 |
2nd Aux Channel More... | |
#define | XSM_SEQ_CH_AUX02 0x00040000 |
3rd Aux Channel More... | |
#define | XSM_SEQ_CH_AUX03 0x00080000 |
4th Aux Channel More... | |
#define | XSM_SEQ_CH_AUX04 0x00100000 |
5th Aux Channel More... | |
#define | XSM_SEQ_CH_AUX05 0x00200000 |
6th Aux Channel More... | |
#define | XSM_SEQ_CH_AUX06 0x00400000 |
7th Aux Channel More... | |
#define | XSM_SEQ_CH_AUX07 0x00800000 |
8th Aux Channel More... | |
#define | XSM_SEQ_CH_AUX08 0x01000000 |
9th Aux Channel More... | |
#define | XSM_SEQ_CH_AUX09 0x02000000 |
10th Aux Channel More... | |
#define | XSM_SEQ_CH_AUX10 0x04000000 |
11th Aux Channel More... | |
#define | XSM_SEQ_CH_AUX11 0x08000000 |
12th Aux Channel More... | |
#define | XSM_SEQ_CH_AUX12 0x10000000 |
13th Aux Channel More... | |
#define | XSM_SEQ_CH_AUX13 0x20000000 |
14th Aux Channel More... | |
#define | XSM_SEQ_CH_AUX14 0x40000000 |
15th Aux Channel More... | |
#define | XSM_SEQ_CH_AUX15 0x80000000 |
16th Aux Channel More... | |
#define | XSM_SEQ_CH_VUSR0 0x100000000 |
VUSER0 Channel. More... | |
#define | XSM_SEQ_CH_VUSR1 0x200000000 |
VUSER1 Channel. More... | |
#define | XSM_SEQ_CH_VUSR2 0x400000000 |
VUSER2 Channel. More... | |
#define | XSM_SEQ_CH_VUSR3 0x800000000 |
VUSER3 Channel. More... | |
#define | XSM_SEQ00_CH_VALID_MASK 0x7FE1 |
Mask for the valid channels. More... | |
#define | XSM_SEQ01_CH_VALID_MASK 0xFFFF |
Mask for the valid channels. More... | |
#define | XSM_SEQ02_CH_VALID_MASK 0x7FE0 |
Mask for the valid channels. More... | |
#define | XSM_SEQ03_CH_VALID_MASK 0xFFFF |
Mask for the valid channels. More... | |
#define | XSM_SEQ04_CH_VALID_MASK 0x0800 |
Mask for the valid channels. More... | |
#define | XSM_SEQ05_CH_VALID_MASK 0xFFFF |
Mask for the valid channels. More... | |
#define | XSM_SEQ06_CH_VALID_MASK 0x0800 |
Mask for the valid channels. More... | |
#define | XSM_SEQ07_CH_VALID_MASK 0xFFFF |
Mask for the valid channels. More... | |
#define | XSM_SEQ08_CH_VALID_MASK 0x000F |
Mask for the valid channels. More... | |
#define | XSM_SEQ09_CH_VALID_MASK 0x000F |
Mask for the valid channels. More... | |
#define | XSM_SEQ_CH_AUX_SHIFT 16 |
Shift for the Aux Channel. More... | |
#define | XSM_SEQ_CH_VUSR_SHIFT 32 |
Shift for the Aux Channel. More... | |
OT Upper Alarm Threshold Register Bit Definitions | |
#define | XSM_ATR_OT_UPPER_ENB_MASK 0x000F |
Mask for OT enable. More... | |
#define | XSM_ATR_OT_UPPER_VAL_MASK 0xFFF0 |
Mask for OT value. More... | |
#define | XSM_ATR_OT_UPPER_VAL_SHIFT 4 |
Shift for OT value. More... | |
#define | XSM_ATR_OT_UPPER_ENB_VAL 0x0003 |
Value for OT enable. More... | |
#define | XSM_ATR_OT_UPPER_VAL_MAX 0x0FFF |
Max OT value. More... | |
#define XSM_ADC_CALIB_OFFSET (XSM_IP_OFFSET + 0x224) |
#include <xsysmon_hw.h>
ADC Offset Data Reg.
#define XSM_AOR_ALARM_ALL_MASK 0x00001FFF |
#define XSM_AOR_ALL_MASK 0x00000100 |
#include <xsysmon_hw.h>
ALM7 - All Alarms 0 to 6.
#define XSM_AOR_OFFSET 0x08 |
#include <xsysmon_hw.h>
Alarm Output Register.
Referenced by SysMonLowLevelExample(), and XSysMon_GetAlarmOutputStatus().
#define XSM_AOR_OT_MASK 0x00000001 |
#include <xsysmon_hw.h>
Over Temp Alarm Output.
#define XSM_AOR_TEMP_MASK 0x00000002 |
#define XSM_AOR_VBRAM_MASK 0x00000010 |
#define XSM_AOR_VCCAUX_MASK 0x00000008 |
#define XSM_AOR_VCCINT_MASK 0x00000004 |
#include <xsysmon_hw.h>
ALM1 - VCCINT Alarm Mask.
#define XSM_AOR_VCCPAUX_MASK 0x00000040 |
#include <xsysmon_hw.h>
ALM5 - VCCPAUX Mask, Zynq.
#define XSM_AOR_VCCPDRO_MASK 0x00000080 |
#include <xsysmon_hw.h>
ALM6 - VCCPDRO Mask, Zynq.
#define XSM_AOR_VCCPINT_MASK 0x00000020 |
#include <xsysmon_hw.h>
ALM4 - VCCPINT Mask, Zynq.
#define XSM_AOR_VUSR0_MASK 0x00000200 |
#include <xsysmon_hw.h>
ALM8 - VUSER0 Alarm Mask.
#define XSM_AOR_VUSR1_MASK 0x00000400 |
#include <xsysmon_hw.h>
ALM9 - VUSER1 Alarm Mask.
#define XSM_AOR_VUSR2_MASK 0x00000800 |
#include <xsysmon_hw.h>
ALM10 - VUSER2 Alarm Mask.
#define XSM_AOR_VUSR3_MASK 0x00001000 |
#include <xsysmon_hw.h>
ALM11 - VUSER3 Alarm Mask.
#define XSM_ARR_OFFSET 0x10 |
#define XSM_ARR_RST_MASK 0x00000001 |
#define XSM_ATR_OT_LOWER 7 |
#include <xsysmon.h>
Lower Over Temperature limit.
#define XSM_ATR_OT_LOWER_OFFSET (XSM_IP_OFFSET + 0x35C) |
#include <xsysmon_hw.h>
Over Temp Lower Alarm Reg.
#define XSM_ATR_OT_UPPER 3 |
#include <xsysmon.h>
Lower Over Temperature limit.
#define XSM_ATR_OT_UPPER_ENB_MASK 0x000F |
#include <xsysmon_hw.h>
Mask for OT enable.
Referenced by XSysMon_DisableUserOverTemp(), and XSysMon_EnableUserOverTemp().
#define XSM_ATR_OT_UPPER_ENB_VAL 0x0003 |
#define XSM_ATR_OT_UPPER_OFFSET (XSM_IP_OFFSET + 0x34C) |
#include <xsysmon_hw.h>
Over Temp Upper Alarm Reg.
Referenced by XSysMon_DisableUserOverTemp(), XSysMon_EnableUserOverTemp(), XSysMon_GetOverTemp(), and XSysMon_SetOverTemp().
#define XSM_ATR_OT_UPPER_VAL_MASK 0xFFF0 |
#define XSM_ATR_OT_UPPER_VAL_MAX 0x0FFF |
#define XSM_ATR_OT_UPPER_VAL_SHIFT 4 |
#include <xsysmon_hw.h>
Shift for OT value.
Referenced by XSysMon_GetOverTemp(), and XSysMon_SetOverTemp().
#define XSM_ATR_TEMP_LOWER 4 |
#include <xsysmon.h>
Low user Temperature.
#define XSM_ATR_TEMP_LOWER_OFFSET (XSM_IP_OFFSET + 0x350) |
#include <xsysmon_hw.h>
Temp Lower Alarm Register.
#define XSM_ATR_TEMP_UPPER 0 |
#include <xsysmon.h>
High user Temperature.
#define XSM_ATR_TEMP_UPPER_OFFSET (XSM_IP_OFFSET + 0x340) |
#include <xsysmon_hw.h>
Temp Upper Alarm Register.
Referenced by SysMonLowLevelExample(), XSysMon_GetAlarmThreshold(), and XSysMon_SetAlarmThreshold().
#define XSM_ATR_VBRAM_LOWER 0xC |
#include <xsysmon.h>
VRBAM Lower Alarm, 7 Series and Zynq.
#define XSM_ATR_VBRAM_LOWER_OFFSET (XSM_IP_OFFSET + 0x370) |
#include <xsysmon_hw.h>
VRBAM Lower Alarm, 7 Series.
#define XSM_ATR_VBRAM_UPPER 8 |
#include <xsysmon.h>
VBRAM high voltage limit.
#define XSM_ATR_VBRAM_UPPER_OFFSET (XSM_IP_OFFSET + 0x360) |
#include <xsysmon_hw.h>
VBBAM Upper Alarm,7 Series.
#define XSM_ATR_VCCAUX_LOWER 6 |
#include <xsysmon.h>
VCCAUX low voltage limit.
#define XSM_ATR_VCCAUX_LOWER_OFFSET (XSM_IP_OFFSET + 0x358) |
#define XSM_ATR_VCCAUX_UPPER 2 |
#include <xsysmon.h>
VCCAUX high voltage limit.
#define XSM_ATR_VCCAUX_UPPER_OFFSET (XSM_IP_OFFSET + 0x348) |
#define XSM_ATR_VCCINT_LOWER 5 |
#include <xsysmon.h>
VCCINT low voltage limit.
#define XSM_ATR_VCCINT_LOWER_OFFSET (XSM_IP_OFFSET + 0x354) |
#include <xsysmon_hw.h>
VCCINT Lower Alarm Reg.
#define XSM_ATR_VCCINT_UPPER 1 |
#define XSM_ATR_VCCINT_UPPER_OFFSET (XSM_IP_OFFSET + 0x344) |
#include <xsysmon_hw.h>
VCCINT Upper Alarm Reg.
#define XSM_ATR_VCCPAUX_LOWER 0xE |
#include <xsysmon.h>
VCCPAUX Lower Alarm, Zynq.
#define XSM_ATR_VCCPAUX_LOWER_OFFSET (XSM_IP_OFFSET + 0x378) |
#include <xsysmon_hw.h>
VCCPAUX Lower Alarm, Zynq.
#define XSM_ATR_VCCPAUX_UPPER 0xA |
#include <xsysmon.h>
VCCPAUX Upper Alarm, Zynq.
#define XSM_ATR_VCCPAUX_UPPER_OFFSET (XSM_IP_OFFSET + 0x368) |
#include <xsysmon_hw.h>
VCCPAUX Upper Alarm, Zynq.
#define XSM_ATR_VCCPDRO_LOWER 0xF |
#include <xsysmon.h>
VCCPDRO Lower Alarm, Zynq.
#define XSM_ATR_VCCPDRO_LOWER_OFFSET (XSM_IP_OFFSET + 0x37C) |
#include <xsysmon_hw.h>
VCCPDRO Lower Alarm, Zynq.
#define XSM_ATR_VCCPDRO_UPPER 0xB |
#include <xsysmon.h>
VCCPDRO Upper Alarm, Zynq.
#define XSM_ATR_VCCPDRO_UPPER_OFFSET (XSM_IP_OFFSET + 0x36C) |
#include <xsysmon_hw.h>
VCCPDRO Upper Alarm, Zynq.
#define XSM_ATR_VCCPINT_LOWER 0xD |
#include <xsysmon.h>
VCCPINT Lower Alarm, Zynq.
#define XSM_ATR_VCCPINT_LOWER_OFFSET (XSM_IP_OFFSET + 0x374) |
#include <xsysmon_hw.h>
VCCPINT Lower Alarm, Zynq.
#define XSM_ATR_VCCPINT_UPPER 9 |
#include <xsysmon.h>
VCCPINT Upper Alarm, Zynq.
#define XSM_ATR_VCCPINT_UPPER_OFFSET (XSM_IP_OFFSET + 0x364) |
#include <xsysmon_hw.h>
VCCPINT Upper Alarm, Zynq.
#define XSM_ATR_VUSR0_LOWER 0x18 |
#include <xsysmon.h>
VUSER0 Lower Alarm, Ultrascale.
Referenced by XSysMon_GetAlarmThreshold(), and XSysMon_SetAlarmThreshold().
#define XSM_ATR_VUSR0_LOWER_OFFSET (XSM_IP_OFFSET + 0x3A0) |
#include <xsysmon_hw.h>
VUSER0 Lower Alarm Reg.
#define XSM_ATR_VUSR0_UPPER 0x10 |
#include <xsysmon.h>
VUSER0 Upper Alarm, Ultrascale.
#define XSM_ATR_VUSR0_UPPER_OFFSET (XSM_IP_OFFSET + 0x380) |
#include <xsysmon_hw.h>
VUSER0 Upper Alarm Reg.
#define XSM_ATR_VUSR1_LOWER 0x19 |
#include <xsysmon.h>
VUSER1 Lower Alarm, Ultrascale.
#define XSM_ATR_VUSR1_LOWER_OFFSET (XSM_IP_OFFSET + 0x3A4) |
#include <xsysmon_hw.h>
VUSER1 Lower Alarm Reg.
#define XSM_ATR_VUSR1_UPPER 0x11 |
#include <xsysmon.h>
VUSER1 Upper Alarm, Ultrascale.
#define XSM_ATR_VUSR1_UPPER_OFFSET (XSM_IP_OFFSET + 0x384) |
#include <xsysmon_hw.h>
VUSER1 Upper Alarm Reg.
#define XSM_ATR_VUSR2_LOWER 0x1A |
#include <xsysmon.h>
VUSER2 Lower Alarm, Ultrascale.
#define XSM_ATR_VUSR2_LOWER_OFFSET (XSM_IP_OFFSET + 0x3A8) |
#include <xsysmon_hw.h>
VUSER2 Lower Alarm Reg.
#define XSM_ATR_VUSR2_UPPER 0x12 |
#include <xsysmon.h>
VUSER2 Upper Alarm, Ultrascale.
#define XSM_ATR_VUSR2_UPPER_OFFSET (XSM_IP_OFFSET + 0x388) |
#include <xsysmon_hw.h>
VUSER2 Upper Alarm Reg.
#define XSM_ATR_VUSR3_LOWER 0x1B |
#include <xsysmon.h>
VUSER3 Lower Alarm, Ultrascale.
Referenced by XSysMon_GetAlarmThreshold(), and XSysMon_SetAlarmThreshold().
#define XSM_ATR_VUSR3_LOWER_OFFSET (XSM_IP_OFFSET + 0x3AC) |
#include <xsysmon_hw.h>
VUSER3 Lower Alarm Reg.
#define XSM_ATR_VUSR3_UPPER 0x13 |
#include <xsysmon.h>
VUSER3 Upper Alarm, Ultrascale.
Referenced by XSysMon_GetAlarmThreshold(), and XSysMon_SetAlarmThreshold().
#define XSM_ATR_VUSR3_UPPER_OFFSET (XSM_IP_OFFSET + 0x38C) |
#include <xsysmon_hw.h>
VUSER3 Upper Alarm Reg.
#define XSM_AUX00_OFFSET (XSM_IP_OFFSET + 0x240) |
#include <xsysmon_hw.h>
ADC out of VAUXP0/VAUXN0.
#define XSM_AUX01_OFFSET (XSM_IP_OFFSET + 0x244) |
#include <xsysmon_hw.h>
ADC out of VAUXP1/VAUXN1.
#define XSM_AUX02_OFFSET (XSM_IP_OFFSET + 0x248) |
#include <xsysmon_hw.h>
ADC out of VAUXP2/VAUXN2.
#define XSM_AUX03_OFFSET (XSM_IP_OFFSET + 0x24C) |
#include <xsysmon_hw.h>
ADC out of VAUXP3/VAUXN3.
#define XSM_AUX04_OFFSET (XSM_IP_OFFSET + 0x250) |
#include <xsysmon_hw.h>
ADC out of VAUXP4/VAUXN4.
#define XSM_AUX05_OFFSET (XSM_IP_OFFSET + 0x254) |
#include <xsysmon_hw.h>
ADC out of VAUXP5/VAUXN5.
#define XSM_AUX06_OFFSET (XSM_IP_OFFSET + 0x258) |
#include <xsysmon_hw.h>
ADC out of VAUXP6/VAUXN6.
#define XSM_AUX07_OFFSET (XSM_IP_OFFSET + 0x25C) |
#include <xsysmon_hw.h>
ADC out of VAUXP7/VAUXN7.
#define XSM_AUX08_OFFSET (XSM_IP_OFFSET + 0x260) |
#include <xsysmon_hw.h>
ADC out of VAUXP8/VAUXN8.
#define XSM_AUX09_OFFSET (XSM_IP_OFFSET + 0x264) |
#include <xsysmon_hw.h>
ADC out of VAUXP9/VAUXN9.
#define XSM_AUX10_OFFSET (XSM_IP_OFFSET + 0x268) |
#include <xsysmon_hw.h>
ADC out of VAUXP10/VAUXN10.
#define XSM_AUX11_OFFSET (XSM_IP_OFFSET + 0x26C) |
#include <xsysmon_hw.h>
ADC out of VAUXP11/VAUXN11.
#define XSM_AUX12_OFFSET (XSM_IP_OFFSET + 0x270) |
#include <xsysmon_hw.h>
ADC out of VAUXP12/VAUXN12.
#define XSM_AUX13_OFFSET (XSM_IP_OFFSET + 0x274) |
#include <xsysmon_hw.h>
ADC out of VAUXP13/VAUXN13.
#define XSM_AUX14_OFFSET (XSM_IP_OFFSET + 0x278) |
#include <xsysmon_hw.h>
ADC out of VAUXP14/VAUXN14.
#define XSM_AUX15_OFFSET (XSM_IP_OFFSET + 0x27C) |
#include <xsysmon_hw.h>
ADC out of VAUXP15/VAUXN15.
#define XSM_AVG_0_SAMPLES 0 |
#include <xsysmon.h>
No Averaging.
#define XSM_AVG_16_SAMPLES 1 |
#include <xsysmon.h>
Average 16 samples.
#define XSM_AVG_256_SAMPLES 3 |
#define XSM_AVG_64_SAMPLES 2 |
#include <xsysmon.h>
Average 64 samples.
#define XSM_CALIB_ADC_OFFSET_COEFF 1 |
#include <xsysmon.h>
ADC Offset Calib Coefficient.
#define XSM_CALIB_GAIN_ERROR_COEFF 2 |
#define XSM_CALIB_SUPPLY_OFFSET_COEFF 0 |
#include <xsysmon.h>
Supply Offset Calib Coefficient.
#define XSM_CFR0_ACQ_MASK 0x0100 |
#include <xsysmon_hw.h>
Add acquisition by 6 ADCCLK.
#define XSM_CFR0_AVG16_MASK 0x1000 |
#define XSM_CFR0_AVG1_MASK 0x0000 |
#include <xsysmon_hw.h>
No Averaging.
#define XSM_CFR0_AVG256_MASK 0x3000 |
#include <xsysmon_hw.h>
Average 256 samples.
#define XSM_CFR0_AVG64_MASK 0x2000 |
#include <xsysmon_hw.h>
Average 64 samples.
#define XSM_CFR0_AVG_SHIFT 12 |
#include <xsysmon_hw.h>
Shift for the Averaging bits.
Referenced by XSysMon_GetAvg(), and XSysMon_SetAvg().
#define XSM_CFR0_AVG_VALID_MASK 0x3000 |
#include <xsysmon_hw.h>
Averaging bit Mask.
Referenced by SysMonLowLevelExample(), XSysMon_GetAvg(), and XSysMon_SetAvg().
#define XSM_CFR0_CAL_AVG_MASK 0x8000 |
#include <xsysmon_hw.h>
Averaging enable Mask.
#define XSM_CFR0_CHANNEL_MASK 0x003F |
#include <xsysmon_hw.h>
Channel number bit Mask.
#define XSM_CFR0_DU_MASK 0x0400 |
#include <xsysmon_hw.h>
Bipolar/Unipolar mode.
#define XSM_CFR0_EC_MASK 0x0200 |
#define XSM_CFR0_MUX_MASK 0x0800 |
#define XSM_CFR0_OFFSET (XSM_IP_OFFSET + 0x300) |
#include <xsysmon_hw.h>
Configuration Register 0.
Referenced by SysMonLowLevelExample(), XSysMon_GetAvg(), XSysMon_SetAvg(), and XSysMon_SetSequencerEvent().
#define XSM_CFR1_ALM_ALL_MASK 0x0F0F |
#include <xsysmon_hw.h>
Mask for all alarms.
Referenced by SysMonLowLevelExample(), and XSysMon_GetAlarmEnables().
#define XSM_CFR1_ALM_TEMP_MASK 0x0002 |
#define XSM_CFR1_ALM_VBRAM_MASK 0x0100 |
#include <xsysmon_hw.h>
Alarm 3 - VBRAM Enable 7 Series and Zynq.
#define XSM_CFR1_ALM_VCCAUX_MASK 0x0008 |
#define XSM_CFR1_ALM_VCCINT_MASK 0x0004 |
#include <xsysmon_hw.h>
Alarm 1 - VCCINT Enable.
#define XSM_CFR1_ALM_VCCPAUX_MASK 0x0400 |
#include <xsysmon_hw.h>
Alarm 5 - VCCPAUX, Zynq.
#define XSM_CFR1_ALM_VCCPDRO_MASK 0x0800 |
#include <xsysmon_hw.h>
Alarm 6 - VCCPDRO, Zynq.
#define XSM_CFR1_ALM_VCCPINT_MASK 0x0200 |
#include <xsysmon_hw.h>
Alarm 4 - VCCPINT, Zynq.
#define XSM_CFR1_CAL_ADC_GAIN_OFFSET_MASK 0x0020 |
#include <xsysmon_hw.h>
Calibration 1 -ADC Gain Offset Enable.
#define XSM_CFR1_CAL_ADC_OFFSET_MASK 0x0010 |
#define XSM_CFR1_CAL_DISABLE_MASK 0x0000 |
#define XSM_CFR1_CAL_PS_GAIN_OFFSET_MASK 0x0080 |
#include <xsysmon_hw.h>
Calibration 3 -Power Supply Gain/Offset Enable.
#define XSM_CFR1_CAL_PS_OFFSET_MASK 0x0040 |
#include <xsysmon_hw.h>
Calibration 2 -Power Supply Offset Enable.
#define XSM_CFR1_CAL_VALID_MASK 0x00F0 |
#include <xsysmon_hw.h>
Valid Calibration Mask.
Referenced by XSysMon_GetCalibEnables(), and XSysMon_SetCalibEnables().
#define XSM_CFR1_OFFSET (XSM_IP_OFFSET + 0x304) |
#include <xsysmon_hw.h>
Configuration Register 1.
Referenced by SysMonLowLevelExample(), XSysMon_GetAlarmEnables(), XSysMon_GetCalibEnables(), XSysMon_GetSequencerMode(), XSysMon_SetCalibEnables(), and XSysMon_SetSequencerMode().
#define XSM_CFR1_OT_MASK 0x0001 |
#include <xsysmon_hw.h>
Over Temperature Enable.
#define XSM_CFR1_SEQ_CONTINPASS_MASK 0x2000 |
#define XSM_CFR1_SEQ_INDEPENDENT_MASK 0x8000 |
#include <xsysmon_hw.h>
Independent Mode.
#define XSM_CFR1_SEQ_ONEPASS_MASK 0x1000 |
#include <xsysmon_hw.h>
Onepass through Seq.
#define XSM_CFR1_SEQ_SAFEMODE_MASK 0x0000 |
#define XSM_CFR1_SEQ_SHIFT 12 |
#include <xsysmon_hw.h>
Sequence bit shift.
Referenced by XSysMon_GetSequencerMode(), and XSysMon_SetSequencerMode().
#define XSM_CFR1_SEQ_SIMUL_SAMPLING_MASK 0x4000 |
#include <xsysmon_hw.h>
Simulataneous Sampling Mask.
#define XSM_CFR1_SEQ_SINGCHAN_MASK 0x3000 |
#include <xsysmon_hw.h>
Single channel - No Seq.
#define XSM_CFR1_SEQ_VALID_MASK 0xF000 |
#include <xsysmon_hw.h>
Sequence bit Mask.
Referenced by SysMonLowLevelExample(), XSysMon_GetSequencerMode(), and XSysMon_SetSequencerMode().
#define XSM_CFR2_CD_MAX 255 |
#include <xsysmon_hw.h>
Maximum value of divisor.
#define XSM_CFR2_CD_MIN 8 |
#include <xsysmon_hw.h>
Minimum value of divisor.
#define XSM_CFR2_CD_SHIFT 8 |
#include <xsysmon_hw.h>
Num of shift on division.
Referenced by SysMonLowLevelExample(), XSysMon_GetAdcClkDivisor(), and XSysMon_SetAdcClkDivisor().
#define XSM_CFR2_CD_VALID_MASK 0xFF00 |
#include <xsysmon_hw.h>
Clock Divisor bit Mask.
#define XSM_CFR2_OFFSET (XSM_IP_OFFSET + 0x308) |
#include <xsysmon_hw.h>
Configuration Register 2.
Referenced by SysMonLowLevelExample(), XSysMon_GetAdcClkDivisor(), and XSysMon_SetAdcClkDivisor().
#define XSM_CFR2_PD_ADC1_MASK 0x0020 |
#include <xsysmon_hw.h>
Power Down XADC Mask.
#define XSM_CFR2_PD_MASK 0x0030 |
#include <xsysmon_hw.h>
Power Down Mask.
#define XSM_CFR2_PD_SHIFT 4 |
#include <xsysmon_hw.h>
Power Down Shift.
#define XSM_CFR2_PD_XADC_MASK 0x0030 |
#include <xsysmon_hw.h>
Power Down XADC Mask.
#define XSM_CFR3_ALM_ALL_MASK 0x000F |
#define XSM_CFR3_ALM_VUSR0_MASK 0x0001 |
#include <xsysmon_hw.h>
VUSER 3 Supply.
#define XSM_CFR3_ALM_VUSR1_MASK 0x0002 |
#include <xsysmon_hw.h>
VUSER 2 Supply.
#define XSM_CFR3_ALM_VUSR2_MASK 0x0004 |
#include <xsysmon_hw.h>
VUSER 1 Supply.
#define XSM_CFR3_ALM_VUSR3_MASK 0x0008 |
#include <xsysmon_hw.h>
VUSER 0 Supply.
#define XSM_CFR_ALM_TEMP_MASK 0x0002 |
#include <xsysmon_hw.h>
Alarm 0 - Temperature.
#define XSM_CFR_ALM_VBRAM_MASK 0x0100 |
#include <xsysmon_hw.h>
Alarm 3 - VBRAM Enable 7 Series and Zynq.
#define XSM_CFR_ALM_VCCAUX_MASK 0x0008 |
#include <xsysmon_hw.h>
Alarm 2 - VCCAUX Enable.
#define XSM_CFR_ALM_VCCINT_MASK 0x0004 |
#include <xsysmon_hw.h>
Alarm 1 - VCCINT Enable.
#define XSM_CFR_ALM_VCCPAUX_MASK 0x0400 |
#include <xsysmon_hw.h>
Alarm 5 - VCCPAUX, Zynq.
#define XSM_CFR_ALM_VCCPDRO_MASK 0x0800 |
#include <xsysmon_hw.h>
Alarm 6 - VCCPDRO, Zynq.
#define XSM_CFR_ALM_VCCPINT_MASK 0x0200 |
#include <xsysmon_hw.h>
Alarm 4 - VCCPINT, Zynq.
#define XSM_CFR_ALM_VUSR0_MASK 0x00010000 |
#include <xsysmon_hw.h>
VUSER 3 Supply.
#define XSM_CFR_ALM_VUSR1_MASK 0x00020000 |
#include <xsysmon_hw.h>
VUSER 2 Supply.
#define XSM_CFR_ALM_VUSR2_MASK 0x00040000 |
#include <xsysmon_hw.h>
VUSER 1 Supply.
#define XSM_CFR_ALM_VUSR3_MASK 0x00080000 |
#include <xsysmon_hw.h>
VUSER 0 Supply.
#define XSM_CFR_OT_MASK 0x0001 |
#include <xsysmon_hw.h>
Over Temperature Enable.
#define XSM_CH_ADC_CALIB 0x08 |
#include <xsysmon.h>
ADC Offset Channel Reg.
#define XSM_CH_AUX_MAX 31 |
#define XSM_CH_AUX_MIN 16 |
#include <xsysmon.h>
Channel number for 1st Aux Channel.
#define XSM_CH_GAINERR_CALIB 0x09 |
#include <xsysmon.h>
Gain Error Channel Reg.
#define XSM_CH_SUPPLY_CALIB 0x07 |
#include <xsysmon.h>
Supply Calib Data Reg.
#define XSM_CH_TEMP 0x0 |
#include <xsysmon.h>
On Chip Temperature.
#define XSM_CH_VBRAM 0x6 |
#define XSM_CH_VCCAUX 0x2 |
#include <xsysmon.h>
VCCAUX.
#define XSM_CH_VCCINT 0x1 |
#include <xsysmon.h>
VCCINT.
#define XSM_CH_VCCPAUX 0x0E |
#include <xsysmon.h>
On-chip PS VCCPAUX Channel, Zynq.
#define XSM_CH_VCCPDRO 0x0F |
#include <xsysmon.h>
On-chip PS VCCPDRO Channel, Zynq.
#define XSM_CH_VCCPINT 0x0D |
#define XSM_CH_VPVN 0x3 |
#include <xsysmon.h>
VP/VN Dedicated analog inputs.
#define XSM_CH_VREFN 0x5 |
#define XSM_CH_VREFP 0x4 |
#include <xsysmon.h>
VREFP.
#define XSM_CH_VUSR0 32 |
#define XSM_CH_VUSR1 33 |
#include <xsysmon.h>
VUSER1 Supply - UltraScale.
#define XSM_CH_VUSR2 34 |
#include <xsysmon.h>
VUSER2 Supply - UltraScale.
#define XSM_CH_VUSR3 35 |
#define XSM_CONVST_CONVST_MASK 0x00000001 |
#define XSM_CONVST_OFFSET 0x0C |
#include <xsysmon_hw.h>
ADC Convert Start Register.
Referenced by XSysMon_DisableTempUpdate(), XSysMon_EnableTempUpdate(), XSysMon_SetTempWaitCycles(), and XSysMon_StartAdcConversion().
#define XSM_CONVST_TEMPUPDT_MASK 0x00000002 |
#include <xsysmon_hw.h>
Temperature Update Enable Mask.
Referenced by XSysMon_DisableTempUpdate(), and XSysMon_EnableTempUpdate().
#define XSM_CONVST_WAITCYCLES_DEFAULT 0x03E8 |
#define XSM_CONVST_WAITCYCLES_MASK 0x0003FFFC |
#define XSM_CONVST_WAITCYCLES_SHIFT 2 |
#include <xsysmon_hw.h>
Wait Cycles Shift.
Referenced by XSysMon_CfgInitialize(), and XSysMon_SetTempWaitCycles().
#define XSM_FLAG_REG_OFFSET (XSM_IP_OFFSET + 0x2FC) |
#include <xsysmon_hw.h>
General Status.
#define XSM_GAINERR_CALIB_OFFSET (XSM_IP_OFFSET + 0x228) |
#include <xsysmon_hw.h>
Gain Error Data Reg.
#define XSM_GIER_GIE_MASK 0x80000000 |
#define XSM_GIER_OFFSET 0x5C |
#include <xsysmon_hw.h>
Global Interrupt Enable.
Referenced by XSysMon_IntrGlobalDisable(), and XSysMon_IntrGlobalEnable().
#define XSM_IPIER_OFFSET 0x68 |
#include <xsysmon_hw.h>
Interrupt Enable register.
Referenced by XSysMon_IntrDisable(), XSysMon_IntrEnable(), and XSysMon_IntrGetEnabled().
#define XSM_IPISR_OFFSET 0x60 |
#include <xsysmon_hw.h>
Interrupt Status Register.
Referenced by XSysMon_IntrClear(), and XSysMon_IntrGetStatus().
#define XSM_IPIXR_ALL_MASK 0x0003C7FF |
#include <xsysmon_hw.h>
Mask of all interrupts.
Referenced by XSysMon_IntrClear(), XSysMon_IntrDisable(), XSysMon_IntrEnable(), XSysMon_IntrGetEnabled(), and XSysMon_IntrGetStatus().
#define XSM_IPIXR_EOC_MASK 0x00000020 |
#include <xsysmon_hw.h>
End Of Conversion.
#define XSM_IPIXR_EOS_MASK 0x00000010 |
#include <xsysmon_hw.h>
End Of Sequence.
#define XSM_IPIXR_JTAG_LOCKED_MASK 0x00000040 |
#include <xsysmon_hw.h>
JTAG Locked.
#define XSM_IPIXR_JTAG_MODIFIED_MASK 0x00000080 |
#include <xsysmon_hw.h>
JTAG Modified.
#define XSM_IPIXR_OT_DEACTIVE_MASK 0x00000100 |
#include <xsysmon_hw.h>
Over Temp DEACTIVE.
#define XSM_IPIXR_OT_MASK 0x00000001 |
#include <xsysmon_hw.h>
Over Temperature ACTIVE.
#define XSM_IPIXR_TEMP_DEACTIVE_MASK 0x00000200 |
#include <xsysmon_hw.h>
Alarm 0 DEACTIVE.
#define XSM_IPIXR_TEMP_MASK 0x00000002 |
#include <xsysmon_hw.h>
Alarm 0 - Temp ACTIVE.
#define XSM_IPIXR_VBRAM_MASK 0x00000400 |
#define XSM_IPIXR_VCCAUX_MASK 0x00000008 |
#include <xsysmon_hw.h>
Alarm 2 - VCCAUX.
#define XSM_IPIXR_VCCINT_MASK 0x00000004 |
#include <xsysmon_hw.h>
Alarm 1 - VCCINT.
#define XSM_IPIXR_VUSR0_MASK 0x00004000 |
#include <xsysmon_hw.h>
Alarm 8 VUSER0.
#define XSM_IPIXR_VUSR1_MASK 0x00008000 |
#include <xsysmon_hw.h>
Alarm 9 VUSER1.
#define XSM_IPIXR_VUSR2_MASK 0x00010000 |
#include <xsysmon_hw.h>
Alarm 10 VUSER2.
#define XSM_IPIXR_VUSR3_MASK 0x00020000 |
#include <xsysmon_hw.h>
Alarm 11 VUSER3.
#define XSM_MAX_TEMP 0 |
#include <xsysmon.h>
Maximum Temperature Data.
#define XSM_MAX_TEMP_OFFSET (XSM_IP_OFFSET + 0x280) |
#include <xsysmon_hw.h>
Maximum Temperature Reg.
Referenced by SysMonLowLevelExample(), and XSysMon_GetMinMaxMeasurement().
#define XSM_MAX_VBRAM_OFFSET (XSM_IP_OFFSET + 0x28C) |
#include <xsysmon_hw.h>
Maximum VBRAM Reg, 7 Series/Zynq.
#define XSM_MAX_VCCAUX 2 |
#include <xsysmon.h>
Maximum VCCAUX Data.
#define XSM_MAX_VCCAUX_OFFSET (XSM_IP_OFFSET + 0x288) |
#define XSM_MAX_VCCBRAM 3 |
#include <xsysmon.h>
Maximum VCCBRAM Data, 7 Series/Zynq.
#define XSM_MAX_VCCINT 1 |
#include <xsysmon.h>
Maximum VCCINT Data.
#define XSM_MAX_VCCINT_OFFSET (XSM_IP_OFFSET + 0x284) |
#include <xsysmon_hw.h>
Maximum VCCINT Register.
#define XSM_MAX_VCCPAUX 9 |
#include <xsysmon.h>
Maximum VCCPAUX Data, Zynq.
#define XSM_MAX_VCCPAUX_OFFSET (XSM_IP_OFFSET + 0x2A4) |
#include <xsysmon_hw.h>
Max VCCPAUX Register, Zynq.
#define XSM_MAX_VCCPDRO 0xA |
#define XSM_MAX_VCCPDRO_OFFSET (XSM_IP_OFFSET + 0x2A8) |
#include <xsysmon_hw.h>
Max VCCPDRO Register, Zynq.
#define XSM_MAX_VCCPINT 8 |
#include <xsysmon.h>
Maximum VCCPINT Data, Zynq.
#define XSM_MAX_VCCPINT_OFFSET (XSM_IP_OFFSET + 0x2A0) |
#include <xsysmon_hw.h>
Max VCCPINT Register, Zynq.
#define XSM_MAX_VUSR0 0x80 |
#define XSM_MAX_VUSR0_OFFSET (XSM_IP_OFFSET + 0x480) |
#include <xsysmon_hw.h>
Maximum VUSER0 Supply Reg.
#define XSM_MAX_VUSR1 0x81 |
#include <xsysmon.h>
Maximum VUSR1 Data, Ultrascale.
#define XSM_MAX_VUSR1_OFFSET (XSM_IP_OFFSET + 0x484) |
#include <xsysmon_hw.h>
Maximum VUSER1 Supply Reg.
#define XSM_MAX_VUSR2 0x82 |
#include <xsysmon.h>
Maximum VUSR2 Data, Ultrascale.
#define XSM_MAX_VUSR2_OFFSET (XSM_IP_OFFSET + 0x488) |
#include <xsysmon_hw.h>
Maximum VUSER2 Supply Reg.
#define XSM_MAX_VUSR3 0x83 |
#define XSM_MAX_VUSR3_OFFSET (XSM_IP_OFFSET + 0x48C) |
#include <xsysmon_hw.h>
Maximum VUSER3 Supply Reg.
#define XSM_MIN_TEMP 4 |
#include <xsysmon.h>
Minimum Temperature Data.
#define XSM_MIN_TEMP_OFFSET (XSM_IP_OFFSET + 0x290) |
#define XSM_MIN_VBRAM_OFFSET (XSM_IP_OFFSET + 0x29C) |
#include <xsysmon_hw.h>
Maximum VBRAM Reg, 7 Series/Zynq.
#define XSM_MIN_VCCAUX 6 |
#include <xsysmon.h>
Minimum VCCAUX Data.
#define XSM_MIN_VCCAUX_OFFSET (XSM_IP_OFFSET + 0x298) |
#define XSM_MIN_VCCBRAM 7 |
#include <xsysmon.h>
Minimum VCCBRAM Data, 7 Series/Zynq.
#define XSM_MIN_VCCINT 5 |
#include <xsysmon.h>
Minimum VCCINT Data.
#define XSM_MIN_VCCINT_OFFSET (XSM_IP_OFFSET + 0x294) |
#include <xsysmon_hw.h>
Minimum VCCINT Register.
#define XSM_MIN_VCCPAUX 0xD |
#include <xsysmon.h>
Minimum VCCPAUX Data, Zynq.
#define XSM_MIN_VCCPAUX_OFFSET (XSM_IP_OFFSET + 0x2B0) |
#include <xsysmon_hw.h>
Min VCCPAUX Register, Zynq.
#define XSM_MIN_VCCPDRO 0xE |
#define XSM_MIN_VCCPDRO_OFFSET (XSM_IP_OFFSET + 0x2B4) |
#include <xsysmon_hw.h>
Min VCCPDRO Register, Zynq.
#define XSM_MIN_VCCPINT 0xC |
#define XSM_MIN_VCCPINT_OFFSET (XSM_IP_OFFSET + 0x2AC) |
#include <xsysmon_hw.h>
Min VCCPINT Register, Zynq.
#define XSM_MIN_VUSR0 0x88 |
#define XSM_MIN_VUSR0_OFFSET (XSM_IP_OFFSET + 0x4A0) |
#include <xsysmon_hw.h>
Minimum VUSER0 Supply Reg.
#define XSM_MIN_VUSR1 0x89 |
#include <xsysmon.h>
Minimum VUSR1 Data, Ultrascale.
#define XSM_MIN_VUSR1_OFFSET (XSM_IP_OFFSET + 0x4A4) |
#include <xsysmon_hw.h>
Minimum VUSER1 Supply Reg.
#define XSM_MIN_VUSR2 0x8A |
#include <xsysmon.h>
Minimum VUSR2 Data, Ultrascale.
#define XSM_MIN_VUSR2_OFFSET (XSM_IP_OFFSET + 0x4A8) |
#include <xsysmon_hw.h>
Minimum VUSER2 Supply Reg.
#define XSM_MIN_VUSR3 0x8B |
#define XSM_MIN_VUSR3_OFFSET (XSM_IP_OFFSET + 0x4AC) |
#include <xsysmon_hw.h>
Minimum VUSER3 Supply Reg.
#define XSM_SEQ00_CH_VALID_MASK 0x7FE1 |
#include <xsysmon_hw.h>
Mask for the valid channels.
Referenced by XSysMon_GetSeqChEnables(), and XSysMon_SetSeqChEnables().
#define XSM_SEQ00_OFFSET (XSM_IP_OFFSET + 0x320) |
#include <xsysmon_hw.h>
Seq Reg 00 Adc Channel Selection.
Referenced by SysMonLowLevelExample(), XSysMon_GetSeqChEnables(), and XSysMon_SetSeqChEnables().
#define XSM_SEQ01_CH_VALID_MASK 0xFFFF |
#include <xsysmon_hw.h>
Mask for the valid channels.
Referenced by XSysMon_GetSeqChEnables(), and XSysMon_SetSeqChEnables().
#define XSM_SEQ01_OFFSET (XSM_IP_OFFSET + 0x324) |
#include <xsysmon_hw.h>
Seq Reg 01 Adc Channel Selection.
Referenced by SysMonLowLevelExample(), XSysMon_GetSeqChEnables(), and XSysMon_SetSeqChEnables().
#define XSM_SEQ02_CH_VALID_MASK 0x7FE0 |
#include <xsysmon_hw.h>
Mask for the valid channels.
Referenced by XSysMon_GetSeqAvgEnables(), and XSysMon_SetSeqAvgEnables().
#define XSM_SEQ02_OFFSET (XSM_IP_OFFSET + 0x328) |
#include <xsysmon_hw.h>
Seq Reg 02 Adc Average Enable.
Referenced by SysMonLowLevelExample(), XSysMon_GetSeqAvgEnables(), and XSysMon_SetSeqAvgEnables().
#define XSM_SEQ03_CH_VALID_MASK 0xFFFF |
#include <xsysmon_hw.h>
Mask for the valid channels.
Referenced by XSysMon_GetSeqAvgEnables(), and XSysMon_SetSeqAvgEnables().
#define XSM_SEQ03_OFFSET (XSM_IP_OFFSET + 0x32C) |
#include <xsysmon_hw.h>
Seq Reg 03 Adc Average Enable.
Referenced by SysMonLowLevelExample(), XSysMon_GetSeqAvgEnables(), and XSysMon_SetSeqAvgEnables().
#define XSM_SEQ04_CH_VALID_MASK 0x0800 |
#include <xsysmon_hw.h>
Mask for the valid channels.
Referenced by XSysMon_GetSeqInputMode(), and XSysMon_SetSeqInputMode().
#define XSM_SEQ04_OFFSET (XSM_IP_OFFSET + 0x330) |
#include <xsysmon_hw.h>
Seq Reg 04 Adc Input Mode Select.
Referenced by XSysMon_GetSeqInputMode(), and XSysMon_SetSeqInputMode().
#define XSM_SEQ05_CH_VALID_MASK 0xFFFF |
#include <xsysmon_hw.h>
Mask for the valid channels.
Referenced by XSysMon_GetSeqInputMode(), and XSysMon_SetSeqInputMode().
#define XSM_SEQ05_OFFSET (XSM_IP_OFFSET + 0x334) |
#include <xsysmon_hw.h>
Seq Reg 05 Adc Input Mode Select.
Referenced by SysMonLowLevelExample(), XSysMon_GetSeqInputMode(), and XSysMon_SetSeqInputMode().
#define XSM_SEQ06_CH_VALID_MASK 0x0800 |
#include <xsysmon_hw.h>
Mask for the valid channels.
Referenced by XSysMon_GetSeqAcqTime(), and XSysMon_SetSeqAcqTime().
#define XSM_SEQ06_OFFSET (XSM_IP_OFFSET + 0x338) |
#include <xsysmon_hw.h>
Seq Reg 06 Adc Acquisition Select.
Referenced by XSysMon_GetSeqAcqTime(), and XSysMon_SetSeqAcqTime().
#define XSM_SEQ07_CH_VALID_MASK 0xFFFF |
#include <xsysmon_hw.h>
Mask for the valid channels.
Referenced by XSysMon_GetSeqAcqTime(), and XSysMon_SetSeqAcqTime().
#define XSM_SEQ07_OFFSET (XSM_IP_OFFSET + 0x33C) |
#include <xsysmon_hw.h>
Seq Reg 07 Adc Acquisition Select.
Referenced by SysMonLowLevelExample(), XSysMon_GetSeqAcqTime(), and XSysMon_SetSeqAcqTime().
#define XSM_SEQ08_CH_VALID_MASK 0x000F |
#include <xsysmon_hw.h>
Mask for the valid channels.
Referenced by XSysMon_GetSeqChEnables(), and XSysMon_SetSeqChEnables().
#define XSM_SEQ08_OFFSET (XSM_IP_OFFSET + 0x318) |
#include <xsysmon_hw.h>
Seq Reg 08 Adc Channel Selection.
Referenced by XSysMon_GetSeqChEnables(), and XSysMon_SetSeqChEnables().
#define XSM_SEQ09_CH_VALID_MASK 0x000F |
#include <xsysmon_hw.h>
Mask for the valid channels.
Referenced by XSysMon_GetSeqAvgEnables(), and XSysMon_SetSeqAvgEnables().
#define XSM_SEQ09_OFFSET (XSM_IP_OFFSET + 0x31C) |
#include <xsysmon_hw.h>
Seq Reg 09 Adc Average Enable.
Referenced by XSysMon_GetSeqAvgEnables(), and XSysMon_SetSeqAvgEnables().
#define XSM_SEQ_CH_AUX00 0x00010000 |
#define XSM_SEQ_CH_AUX01 0x00020000 |
#include <xsysmon_hw.h>
2nd Aux Channel
#define XSM_SEQ_CH_AUX02 0x00040000 |
#include <xsysmon_hw.h>
3rd Aux Channel
#define XSM_SEQ_CH_AUX03 0x00080000 |
#include <xsysmon_hw.h>
4th Aux Channel
#define XSM_SEQ_CH_AUX04 0x00100000 |
#include <xsysmon_hw.h>
5th Aux Channel
#define XSM_SEQ_CH_AUX05 0x00200000 |
#include <xsysmon_hw.h>
6th Aux Channel
#define XSM_SEQ_CH_AUX06 0x00400000 |
#include <xsysmon_hw.h>
7th Aux Channel
#define XSM_SEQ_CH_AUX07 0x00800000 |
#include <xsysmon_hw.h>
8th Aux Channel
#define XSM_SEQ_CH_AUX08 0x01000000 |
#include <xsysmon_hw.h>
9th Aux Channel
#define XSM_SEQ_CH_AUX09 0x02000000 |
#include <xsysmon_hw.h>
10th Aux Channel
#define XSM_SEQ_CH_AUX10 0x04000000 |
#include <xsysmon_hw.h>
11th Aux Channel
#define XSM_SEQ_CH_AUX11 0x08000000 |
#include <xsysmon_hw.h>
12th Aux Channel
#define XSM_SEQ_CH_AUX12 0x10000000 |
#include <xsysmon_hw.h>
13th Aux Channel
#define XSM_SEQ_CH_AUX13 0x20000000 |
#include <xsysmon_hw.h>
14th Aux Channel
#define XSM_SEQ_CH_AUX14 0x40000000 |
#include <xsysmon_hw.h>
15th Aux Channel
#define XSM_SEQ_CH_AUX15 0x80000000 |
#define XSM_SEQ_CH_AUX_SHIFT 16 |
#include <xsysmon_hw.h>
Shift for the Aux Channel.
Referenced by SysMonLowLevelExample(), XSysMon_GetSeqAcqTime(), XSysMon_GetSeqAvgEnables(), XSysMon_GetSeqChEnables(), XSysMon_GetSeqInputMode(), XSysMon_SetSeqAcqTime(), XSysMon_SetSeqAvgEnables(), XSysMon_SetSeqChEnables(), and XSysMon_SetSeqInputMode().
#define XSM_SEQ_CH_CALIB 0x00000001 |
#include <xsysmon_hw.h>
ADC Calibration Channel.
#define XSM_SEQ_CH_TEMP 0x00000100 |
#define XSM_SEQ_CH_VBRAM 0x00004000 |
#include <xsysmon_hw.h>
VBRAM Channel, 7 series/Zynq.
#define XSM_SEQ_CH_VCCAUX 0x00000400 |
#define XSM_SEQ_CH_VCCINT 0x00000200 |
#include <xsysmon_hw.h>
VCCINT Channel.
#define XSM_SEQ_CH_VCCPAUX 0x00000040 |
#include <xsysmon_hw.h>
VCCPAUX, Zynq Only.
#define XSM_SEQ_CH_VCCPDRO 0x00000080 |
#include <xsysmon_hw.h>
VCCPDRO, Zynq Only.
#define XSM_SEQ_CH_VCCPINT 0x00000020 |
#include <xsysmon_hw.h>
VCCPINT, Zynq Only.
#define XSM_SEQ_CH_VPVN 0x00000800 |
#include <xsysmon_hw.h>
VP/VN analog inputs Channel.
#define XSM_SEQ_CH_VREFN 0x00002000 |
#include <xsysmon_hw.h>
VREFN Channel.
#define XSM_SEQ_CH_VREFP 0x00001000 |
#include <xsysmon_hw.h>
VREFP Channel.
#define XSM_SEQ_CH_VUSR0 0x100000000 |
#include <xsysmon_hw.h>
VUSER0 Channel.
#define XSM_SEQ_CH_VUSR1 0x200000000 |
#include <xsysmon_hw.h>
VUSER1 Channel.
#define XSM_SEQ_CH_VUSR2 0x400000000 |
#include <xsysmon_hw.h>
VUSER2 Channel.
#define XSM_SEQ_CH_VUSR3 0x800000000 |
#include <xsysmon_hw.h>
VUSER3 Channel.
#define XSM_SEQ_CH_VUSR_SHIFT 32 |
#include <xsysmon_hw.h>
Shift for the Aux Channel.
Referenced by XSysMon_GetSeqAvgEnables(), XSysMon_GetSeqChEnables(), XSysMon_SetSeqAvgEnables(), and XSysMon_SetSeqChEnables().
#define XSM_SEQ_MODE_CONTINPASS 2 |
#include <xsysmon.h>
Continuous Cycling Seqquencer.
#define XSM_SEQ_MODE_INDEPENDENT 8 |
#include <xsysmon.h>
Independent ADC Sequencer, 7 Series and Zynq XADC only.
Referenced by XSysMon_SetSequencerMode().
#define XSM_SEQ_MODE_ONEPASS 1 |
#include <xsysmon.h>
Onepass through Sequencer.
#define XSM_SEQ_MODE_SAFE 0 |
#include <xsysmon.h>
Default Safe Mode.
Referenced by XSysMon_SetSeqAcqTime(), XSysMon_SetSeqAvgEnables(), XSysMon_SetSeqChEnables(), and XSysMon_SetSeqInputMode().
#define XSM_SEQ_MODE_SIMUL 4 |
#include <xsysmon.h>
Simultaneous Cycling Sequencer, 7 Series and Zynq XADC only.
Referenced by XSysMon_SetSequencerMode().
#define XSM_SEQ_MODE_SINGCHAN 3 |
#include <xsysmon.h>
Single channel - No Sequencing.
#define XSM_SR_BUSY_MASK 0x00000080 |
#include <xsysmon_hw.h>
ADC is busy in conversion.
#define XSM_SR_CH_MASK 0x0000001F |
#include <xsysmon_hw.h>
Input ADC channel.
#define XSM_SR_EOC_MASK 0x00000020 |
#include <xsysmon_hw.h>
End of Conversion.
#define XSM_SR_EOS_MASK 0x00000040 |
#define XSM_SR_JTAG_BUSY_MASK 0x00000400 |
#include <xsysmon_hw.h>
JTAG is busy.
#define XSM_SR_JTAG_LOCKED_MASK 0x00000100 |
#include <xsysmon_hw.h>
JTAG is locked.
#define XSM_SR_JTAG_MODIFIED_MASK 0x00000200 |
#include <xsysmon_hw.h>
JTAG Write has occurred.
#define XSM_SR_OFFSET 0x04 |
#include <xsysmon_hw.h>
Status Register.
Referenced by SysMonLowLevelExample(), and XSysMon_GetStatus().
#define XSM_SRR_IPRST_MASK 0x0000000A |
#include <xsysmon_hw.h>
Device Reset Mask.
Referenced by SysMonLowLevelExample(), and XSysMon_Reset().
#define XSM_SRR_OFFSET 0x00 |
#include <xsysmon_hw.h>
Software Reset Register.
Referenced by SysMonLowLevelExample(), and XSysMon_Reset().
#define XSM_SUPPLY_CALIB_OFFSET (XSM_IP_OFFSET + 0x220) |
#define XSM_TEMP_OFFSET (XSM_IP_OFFSET + 0x200) |
#include <xsysmon_hw.h>
On-chip Temperature Reg.
Referenced by SysMonLowLevelExample(), and XSysMon_GetAdcData().
#define XSM_VBRAM_OFFSET (XSM_IP_OFFSET + 0x218) |
#include <xsysmon_hw.h>
On-chip VBRAM Data,7-series/Zynq.
#define XSM_VCCAUX_OFFSET (XSM_IP_OFFSET + 0x208) |
#define XSM_VCCINT_OFFSET (XSM_IP_OFFSET + 0x204) |
#include <xsysmon_hw.h>
On-chip VCCINT Data Reg.
#define XSM_VCCPAUX_OFFSET (XSM_IP_OFFSET + 0x230) |
#include <xsysmon_hw.h>
PS VCCPAUX Data Reg - Zynq.
#define XSM_VCCPDRO_OFFSET (XSM_IP_OFFSET + 0x234) |
#include <xsysmon_hw.h>
PS VCCPDRO Data Reg - Zynq.
#define XSM_VCCPINT_OFFSET (XSM_IP_OFFSET + 0x22C) |
#include <xsysmon_hw.h>
PS VCCPINT Data Reg - Zynq.
#define XSM_VPVN_OFFSET (XSM_IP_OFFSET + 0x20C) |
#include <xsysmon_hw.h>
ADC out of VP/VN.
#define XSM_VREFN_OFFSET (XSM_IP_OFFSET + 0x214) |
#include <xsysmon_hw.h>
On-chip VREFN Data Reg.
#define XSM_VREFP_OFFSET (XSM_IP_OFFSET + 0x210) |
#include <xsysmon_hw.h>
On-chip VREFP Data Reg.
#define XSM_VUSR0_OFFSET (XSM_IP_OFFSET + 0x400) |
#define XSM_VUSR1_OFFSET (XSM_IP_OFFSET + 0x404) |
#include <xsysmon_hw.h>
VUSER0 Supply - Ultrascale.
#define XSM_VUSR2_OFFSET (XSM_IP_OFFSET + 0x408) |
#include <xsysmon_hw.h>
VUSER0 Supply - Ultrascale.
#define XSM_VUSR3_OFFSET (XSM_IP_OFFSET + 0x40C) |
#include <xsysmon_hw.h>
VUSER0 Supply - Ultrascale.
#define XSysMon_IsDrpBusy | ( | InstancePtr | ) |
#include <xsysmon.h>
This macro checks if the Dynamic Reconfiguration Port (DRP) transaction from the JTAG is in progress.
InstancePtr | is a pointer to the XSysMon instance. |
#define XSysMon_IsDrpLocked | ( | InstancePtr | ) |
#include <xsysmon.h>
This macro checks if the Dynamic Reconfiguration Port (DRP) is locked by the JTAG.
InstancePtr | is a pointer to the XSysMon instance. |
#define XSysMon_IsEventSamplingModeSet | ( | InstancePtr | ) |
#include <xsysmon.h>
This macro checks if the SysMonitor/ADC device is in Event Sampling mode.
InstancePtr | is a pointer to the XSysMon instance. |
#define XSysMon_RawToTemperature | ( | AdcData | ) | ((((float)(AdcData)/65536.0f)/0.00198421639f ) - 273.15f) |
#include <xsysmon.h>
This macro converts System Monitor/ADC Raw Data to Temperature(centigrades).
AdcData | is the SysMon Raw ADC Data. |
#define XSysMon_RawToVoltage | ( | AdcData | ) | ((((float)(AdcData))* (3.0f))/65536.0f) |
#include <xsysmon.h>
This macro converts System Monitor/ADC Raw Data to Voltage(volts).
AdcData | is the System Monitor/ADC Raw Data. |
#define XSysMon_ReadReg | ( | BaseAddress, | |
RegOffset | |||
) | (Xil_In32((BaseAddress) + (RegOffset))) |
#include <xsysmon_hw.h>
Read a register of the System Monitor/ADC device.
This macro provides register access to all registers using the register offsets defined above.
BaseAddress | contains the base address of the device. |
RegOffset | is the offset of the register to read. |
Referenced by SysMonLowLevelExample(), XSysMon_DisableUserOverTemp(), XSysMon_EnableUserOverTemp(), XSysMon_GetAdcClkDivisor(), XSysMon_GetAdcData(), XSysMon_GetAlarmEnables(), XSysMon_GetAlarmOutputStatus(), XSysMon_GetAlarmThreshold(), XSysMon_GetAvg(), XSysMon_GetCalibCoefficient(), XSysMon_GetCalibEnables(), XSysMon_GetMinMaxMeasurement(), XSysMon_GetOverTemp(), XSysMon_GetSeqAcqTime(), XSysMon_GetSeqAvgEnables(), XSysMon_GetSeqChEnables(), XSysMon_GetSeqInputMode(), XSysMon_GetSequencerMode(), XSysMon_GetStatus(), XSysMon_IntrClear(), XSysMon_IntrDisable(), XSysMon_IntrEnable(), XSysMon_IntrGetEnabled(), XSysMon_IntrGetStatus(), XSysMon_SetAvg(), XSysMon_SetCalibEnables(), XSysMon_SetOverTemp(), XSysMon_SetSequencerEvent(), and XSysMon_SetSequencerMode().
#define XSysMon_TemperatureToRaw | ( | Temperature | ) | ((int)(((Temperature) + 273.15f)*65536.0f*0.00198421639f)) |
#include <xsysmon.h>
This macro converts Temperature in centigrades to System Monitor/ADC Raw Data.
Temperature | is the Temperature in centigrades to be converted to System Monitor/ADC Raw Data. |
#define XSysMon_VoltageToRaw | ( | Voltage | ) | ((int)((Voltage)*65536.0f/3.0f)) |
#include <xsysmon.h>
This macro converts Voltage in Volts to System Monitor/ADC Raw Data.
Voltage | is the Voltage in volts to be converted to System Monitor/ADC Raw Data. |
#define XSysMon_WriteReg | ( | BaseAddress, | |
RegOffset, | |||
Data | |||
) | (Xil_Out32((BaseAddress) + (RegOffset), (Data))) |
#include <xsysmon_hw.h>
Write a register of the System Monitor/ADC device.
This macro provides register access to all registers using the register offsets defined above.
BaseAddress | contains the base address of the device. |
RegOffset | is the offset of the register to write. |
Data | is the value to write to the register. |
Referenced by SysMonLowLevelExample(), XSysMon_DisableTempUpdate(), XSysMon_DisableUserOverTemp(), XSysMon_EnableTempUpdate(), XSysMon_EnableUserOverTemp(), XSysMon_IntrClear(), XSysMon_IntrDisable(), XSysMon_IntrEnable(), XSysMon_IntrGlobalDisable(), XSysMon_IntrGlobalEnable(), XSysMon_Reset(), XSysMon_ResetAdc(), XSysMon_SetAdcClkDivisor(), XSysMon_SetAlarmThreshold(), XSysMon_SetAvg(), XSysMon_SetCalibEnables(), XSysMon_SetOverTemp(), XSysMon_SetSeqAcqTime(), XSysMon_SetSeqAvgEnables(), XSysMon_SetSeqChEnables(), XSysMon_SetSeqInputMode(), XSysMon_SetSequencerEvent(), XSysMon_SetSequencerMode(), XSysMon_SetTempWaitCycles(), and XSysMon_StartAdcConversion().
int XSysMon_CfgInitialize | ( | XSysMon * | InstancePtr, |
XSysMon_Config * | ConfigPtr, | ||
UINTPTR | EffectiveAddr | ||
) |
#include <xsysmon.c>
This function initializes a specific XSysMon device/instance.
Functions in xsysmon.c.
This function must be called prior to using the System Monitor/ADC device.
InstancePtr | is a pointer to the XSysMon instance. |
ConfigPtr | points to the XSysMon device configuration structure. |
EffectiveAddr | 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. |
References XSysMon_Config::BaseAddress, XSysMon::Config, XSysMon_Config::DeviceId, XSysMon_Config::IncludeInterrupt, XSysMon::IsReady, XSysMon::Mask, XSM_CONVST_WAITCYCLES_DEFAULT, XSM_CONVST_WAITCYCLES_SHIFT, and XSysMon_Reset().
void XSysMon_DisableTempUpdate | ( | XSysMon * | InstancePtr | ) |
#include <xsysmon.c>
This function disables the Temperature updation logic for TEMP_OUT port.
InstancePtr | is a pointer to the XSysMon instance. |
References XSysMon_Config::BaseAddress, XSysMon::Config, XSysMon::IsReady, XSysMon::Mask, XSM_CONVST_OFFSET, XSM_CONVST_TEMPUPDT_MASK, and XSysMon_WriteReg.
void XSysMon_DisableUserOverTemp | ( | XSysMon * | InstancePtr | ) |
#include <xsysmon.c>
This function disables programming of the powerdown temperature for the OverTemp signal in the OT Powerdown register.
InstancePtr | is a pointer to the XSysMon instance. |
References XSysMon_Config::BaseAddress, XSysMon::Config, XSysMon::IsReady, XSM_ATR_OT_UPPER_ENB_MASK, XSM_ATR_OT_UPPER_OFFSET, XSysMon_ReadReg, and XSysMon_WriteReg.
void XSysMon_EnableTempUpdate | ( | XSysMon * | InstancePtr | ) |
#include <xsysmon.c>
This function enables the Temperature updation logic so that temperature can be sent over TEMP_OUT port.
InstancePtr | is a pointer to the XSysMon instance. |
References XSysMon_Config::BaseAddress, XSysMon::Config, XSysMon::IsReady, XSysMon::Mask, XSM_CONVST_OFFSET, XSM_CONVST_TEMPUPDT_MASK, and XSysMon_WriteReg.
void XSysMon_EnableUserOverTemp | ( | XSysMon * | InstancePtr | ) |
#include <xsysmon.c>
This function enables programming of the powerdown temperature for the OverTemp signal in the OT Powerdown register.
InstancePtr | is a pointer to the XSysMon instance. |
References XSysMon_Config::BaseAddress, XSysMon::Config, XSysMon::IsReady, XSM_ATR_OT_UPPER_ENB_MASK, XSM_ATR_OT_UPPER_ENB_VAL, XSM_ATR_OT_UPPER_OFFSET, XSysMon_ReadReg, and XSysMon_WriteReg.
u8 XSysMon_GetAdcClkDivisor | ( | XSysMon * | InstancePtr | ) |
#include <xsysmon.c>
The function gets the ADCCLK divisor from the Configuration Register 2.
InstancePtr | is a pointer to the XSysMon instance. |
References XSysMon_Config::BaseAddress, XSysMon::Config, XSysMon::IsReady, XSM_CFR2_CD_SHIFT, XSM_CFR2_OFFSET, and XSysMon_ReadReg.
u16 XSysMon_GetAdcData | ( | XSysMon * | InstancePtr, |
u8 | Channel | ||
) |
#include <xsysmon.c>
Get the ADC converted data for the specified channel.
InstancePtr | is a pointer to the XSysMon instance. |
Channel | 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. 32 to 35 are valid for Ultrascale. |
References XSysMon::IsReady, XSM_CH_AUX_MAX, XSM_CH_VBRAM, XSM_CH_VCCPINT, XSM_CH_VUSR0, XSM_CH_VUSR3, XSM_TEMP_OFFSET, XSM_VUSR0_OFFSET, and XSysMon_ReadReg.
u32 XSysMon_GetAlarmEnables | ( | XSysMon * | InstancePtr | ) |
#include <xsysmon.c>
This function gets the status of the alarm output enables in the Configuration Register 1.
InstancePtr | is a pointer to the XSysMon instance. |
Bit positions of 1 indicate that the alarm output is enabled. Bit positions of 0 indicate that the alarm output is disabled.
References XSysMon_Config::BaseAddress, XSysMon::Config, XSysMon::IsReady, XSM_CFR1_ALM_ALL_MASK, XSM_CFR1_OFFSET, XSM_CFR3_ALM_ALL_MASK, and XSysMon_ReadReg.
u32 XSysMon_GetAlarmOutputStatus | ( | XSysMon * | InstancePtr | ) |
#include <xsysmon.c>
This function reads the contents of Alarm Output Register.
InstancePtr | is a pointer to the XSysMon instance. |
References XSysMon_Config::BaseAddress, XSysMon::Config, XSysMon::IsReady, XSM_AOR_ALARM_ALL_MASK, XSM_AOR_OFFSET, and XSysMon_ReadReg.
u16 XSysMon_GetAlarmThreshold | ( | XSysMon * | InstancePtr, |
u8 | AlarmThrReg | ||
) |
#include <xsysmon.c>
This function returns the contents of the specified Alarm Threshold Register.
InstancePtr | is a pointer to the XSysMon instance. |
AlarmThrReg | is the index of an Alarm Threshold Register to be read. Use XSM_ATR_* constants defined in xsysmon.h to specify the index. |
References XSysMon_Config::BaseAddress, XSysMon::Config, XSysMon::IsReady, XSM_ATR_TEMP_UPPER_OFFSET, XSM_ATR_VUSR0_LOWER, XSM_ATR_VUSR3_LOWER, XSM_ATR_VUSR3_UPPER, and XSysMon_ReadReg.
u8 XSysMon_GetAvg | ( | XSysMon * | InstancePtr | ) |
#include <xsysmon.c>
This function returns the number of samples of averaging configured for all the channels in the Configuration Register 0.
InstancePtr | is a pointer to the XSysMon instance. |
References XSysMon_Config::BaseAddress, XSysMon::Config, XSysMon::IsReady, XSM_CFR0_AVG_SHIFT, XSM_CFR0_AVG_VALID_MASK, XSM_CFR0_OFFSET, and XSysMon_ReadReg.
u16 XSysMon_GetCalibCoefficient | ( | XSysMon * | InstancePtr, |
u8 | CoeffType | ||
) |
#include <xsysmon.c>
This function gets the calibration coefficient data for the specified parameter.
InstancePtr | is a pointer to the XSysMon instance. |
CoeffType | specifies the calibration coefficient to be read. Use XSM_CALIB_* constants defined in xsysmon.h to specify the calibration coefficient to be read. |
References XSysMon_Config::BaseAddress, XSysMon::Config, XSysMon::IsReady, XSM_CALIB_GAIN_ERROR_COEFF, XSM_SUPPLY_CALIB_OFFSET, and XSysMon_ReadReg.
u16 XSysMon_GetCalibEnables | ( | XSysMon * | InstancePtr | ) |
#include <xsysmon.c>
This function reads the value of the calibration enables from the Configuration Register 1.
InstancePtr | is a pointer to the XSysMon instance. |
References XSysMon_Config::BaseAddress, XSysMon::Config, XSysMon::IsReady, XSM_CFR1_CAL_VALID_MASK, XSM_CFR1_OFFSET, and XSysMon_ReadReg.
u16 XSysMon_GetMinMaxMeasurement | ( | XSysMon * | InstancePtr, |
u8 | MeasurementType | ||
) |
#include <xsysmon.c>
This function reads the Minimum/Maximum measurement for one of the following parameters :
InstancePtr | is a pointer to the XSysMon instance. |
MeasurementType | 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. |
References XSysMon_Config::BaseAddress, XSysMon::Config, XSysMon::IsReady, XSM_MAX_TEMP_OFFSET, XSM_MAX_VCCPDRO, XSM_MAX_VUSR0, XSM_MAX_VUSR3, XSM_MIN_VCCPDRO, XSM_MIN_VCCPINT, XSM_MIN_VUSR0, XSM_MIN_VUSR3, and XSysMon_ReadReg.
u16 XSysMon_GetOverTemp | ( | XSysMon * | InstancePtr | ) |
#include <xsysmon.c>
This function returns the powerdown temperature of the OverTemp signal in the OT Powerdown register.
InstancePtr | is a pointer to the XSysMon instance. |
References XSysMon_Config::BaseAddress, XSysMon::Config, XSysMon::IsReady, XSM_ATR_OT_UPPER_OFFSET, XSM_ATR_OT_UPPER_VAL_SHIFT, and XSysMon_ReadReg.
u32 XSysMon_GetSeqAcqTime | ( | XSysMon * | InstancePtr | ) |
#include <xsysmon.c>
This function gets the status of acquisition from the ADC Channel Acquisition Time Sequencer Registers.
InstancePtr | is a pointer to the XSysMon instance. |
References XSysMon_Config::BaseAddress, XSysMon::Config, XSysMon::IsReady, XSM_SEQ06_CH_VALID_MASK, XSM_SEQ06_OFFSET, XSM_SEQ07_CH_VALID_MASK, XSM_SEQ07_OFFSET, XSM_SEQ_CH_AUX_SHIFT, and XSysMon_ReadReg.
u64 XSysMon_GetSeqAvgEnables | ( | XSysMon * | InstancePtr | ) |
#include <xsysmon.c>
This function returns the channels for which the averaging has been enabled in the ADC Channel Averaging Enables Sequencer Registers.
InstancePtr | is a pointer to the XSysMon instance. |
References XSysMon_Config::BaseAddress, XSysMon::Config, XSysMon::IsReady, XSM_SEQ02_CH_VALID_MASK, XSM_SEQ02_OFFSET, XSM_SEQ03_CH_VALID_MASK, XSM_SEQ03_OFFSET, XSM_SEQ09_CH_VALID_MASK, XSM_SEQ09_OFFSET, XSM_SEQ_CH_AUX_SHIFT, XSM_SEQ_CH_VUSR_SHIFT, and XSysMon_ReadReg.
u64 XSysMon_GetSeqChEnables | ( | XSysMon * | InstancePtr | ) |
#include <xsysmon.c>
This function gets the channel enable bits status from the ADC Channel Selection Sequencer Registers.
InstancePtr | is a pointer to the XSysMon instance. |
References XSysMon_Config::BaseAddress, XSysMon::Config, XSysMon::IsReady, XSM_SEQ00_CH_VALID_MASK, XSM_SEQ00_OFFSET, XSM_SEQ01_CH_VALID_MASK, XSM_SEQ01_OFFSET, XSM_SEQ08_CH_VALID_MASK, XSM_SEQ08_OFFSET, XSM_SEQ_CH_AUX_SHIFT, XSM_SEQ_CH_VUSR_SHIFT, and XSysMon_ReadReg.
u32 XSysMon_GetSeqInputMode | ( | XSysMon * | InstancePtr | ) |
#include <xsysmon.c>
This function gets the Analog input mode for all the channels from the ADC Channel Analog-Input Mode Sequencer Registers.
InstancePtr | is a pointer to the XSysMon instance. |
References XSysMon_Config::BaseAddress, XSysMon::Config, XSysMon::IsReady, XSM_SEQ04_CH_VALID_MASK, XSM_SEQ04_OFFSET, XSM_SEQ05_CH_VALID_MASK, XSM_SEQ05_OFFSET, XSM_SEQ_CH_AUX_SHIFT, and XSysMon_ReadReg.
u8 XSysMon_GetSequencerMode | ( | XSysMon * | InstancePtr | ) |
#include <xsysmon.c>
This function gets the channel sequencer mode from the Configuration Register 1.
InstancePtr | is a pointer to the XSysMon instance. |
References XSysMon_Config::BaseAddress, XSysMon::Config, XSysMon::IsReady, XSM_CFR1_OFFSET, XSM_CFR1_SEQ_SHIFT, XSM_CFR1_SEQ_VALID_MASK, and XSysMon_ReadReg.
Referenced by XSysMon_SetSeqAcqTime(), XSysMon_SetSeqAvgEnables(), XSysMon_SetSeqChEnables(), and XSysMon_SetSeqInputMode().
u32 XSysMon_GetStatus | ( | XSysMon * | InstancePtr | ) |
#include <xsysmon.c>
The functions reads the contents of the Status Register.
InstancePtr | is a pointer to the XSysMon instance. |
References XSysMon_Config::BaseAddress, XSysMon::Config, XSysMon::IsReady, XSM_SR_OFFSET, and XSysMon_ReadReg.
void XSysMon_IntrClear | ( | XSysMon * | InstancePtr, |
u32 | Mask | ||
) |
#include <xsysmon.h>
This function clears the specified interrupts in the Interrupt Status Register (IPISR).
InstancePtr | is a pointer to the XSysMon instance. |
Mask | is the bit-mask of the interrupts to be cleared. Bit positions of 1 will be cleared. Bit positions of 0 will not change the previous interrupt status. This mask is formed by OR'ing XSM_IPIXR_* bits which are defined in xsysmon_hw.h. |
References XSysMon_Config::BaseAddress, XSysMon::Config, XSysMon_Config::IncludeInterrupt, XSysMon::IsReady, XSM_IPISR_OFFSET, XSM_IPIXR_ALL_MASK, XSysMon_ReadReg, and XSysMon_WriteReg.
void XSysMon_IntrDisable | ( | XSysMon * | InstancePtr, |
u32 | Mask | ||
) |
#include <xsysmon.h>
This function disables the specified interrupts in the device.
InstancePtr | is a pointer to the XSysMon instance. |
Mask | is the bit-mask of the interrupts to be disabled. Bit positions of 1 will be disabled. Bit positions of 0 will keep the previous setting. This mask is formed by OR'ing XSM_IPIXR_* bits defined in xsysmon_hw.h. |
References XSysMon_Config::BaseAddress, XSysMon::Config, XSysMon_Config::IncludeInterrupt, XSysMon::IsReady, XSM_IPIER_OFFSET, XSM_IPIXR_ALL_MASK, XSysMon_ReadReg, and XSysMon_WriteReg.
void XSysMon_IntrEnable | ( | XSysMon * | InstancePtr, |
u32 | Mask | ||
) |
#include <xsysmon.h>
This function enables the specified interrupts in the device.
Interrupts enabled using this function will not occur until the global interrupt enable bit is set by using the XSysMon_IntrGlobalEnable()function.
InstancePtr | is a pointer to the XSysMon instance. |
Mask | is the bit-mask of the interrupts to be enabled. Bit positions of 1 will be enabled. Bit positions of 0 will keep the previous setting. This mask is formed by OR'ing XSM_IPIXR_* bits defined in xsysmon_hw.h. |
References XSysMon_Config::BaseAddress, XSysMon::Config, XSysMon_Config::IncludeInterrupt, XSysMon::IsReady, XSM_IPIER_OFFSET, XSM_IPIXR_ALL_MASK, XSysMon_ReadReg, and XSysMon_WriteReg.
u32 XSysMon_IntrGetEnabled | ( | XSysMon * | InstancePtr | ) |
#include <xsysmon.h>
This function returns the enabled interrupts read from the Interrupt Enable Register (IPIER).
Use the XSM_IPIXR_* constants defined in xsysmon_hw.h to interpret the returned value.
InstancePtr | is a pointer to the XSysMon instance. |
References XSysMon_Config::BaseAddress, XSysMon::Config, XSysMon_Config::IncludeInterrupt, XSysMon::IsReady, XSM_IPIER_OFFSET, XSM_IPIXR_ALL_MASK, and XSysMon_ReadReg.
u32 XSysMon_IntrGetStatus | ( | XSysMon * | InstancePtr | ) |
#include <xsysmon.h>
This function returns the interrupt status read from Interrupt Status Register(IPISR).
Use the XSM_IPIXR_* constants defined in xsysmon_hw.h to interpret the returned value.
InstancePtr | is a pointer to the XSysMon instance. |
References XSysMon_Config::BaseAddress, XSysMon::Config, XSysMon_Config::IncludeInterrupt, XSysMon::IsReady, XSM_IPISR_OFFSET, XSM_IPIXR_ALL_MASK, and XSysMon_ReadReg.
void XSysMon_IntrGlobalDisable | ( | XSysMon * | InstancePtr | ) |
#include <xsysmon.h>
This function disables the global interrupt in the Global Interrupt Enable Register (GIER) so that the interrupt output from the System Monitor/ADC device is disabled.
InstancePtr | is a pointer to the XSysMon instance. |
References XSysMon_Config::BaseAddress, XSysMon::Config, XSysMon_Config::IncludeInterrupt, XSysMon::IsReady, XSM_GIER_OFFSET, and XSysMon_WriteReg.
void XSysMon_IntrGlobalEnable | ( | XSysMon * | InstancePtr | ) |
#include <xsysmon.h>
Functions in xsysmon_intr.c.
This function enables the global interrupt in the Global Interrupt Enable Register (GIER) so that the interrupt output from the System Monitor/ADC device is enabled.
Interrupts enabled using XSysMon_IntrEnable() will not occur until the global interrupt enable bit is set by using this function.
InstancePtr | is a pointer to the XSysMon instance. |
References XSysMon_Config::BaseAddress, XSysMon::Config, XSysMon_Config::IncludeInterrupt, XSysMon::IsReady, XSM_GIER_GIE_MASK, XSM_GIER_OFFSET, and XSysMon_WriteReg.
XSysMon_Config * XSysMon_LookupConfig | ( | u16 | DeviceId | ) |
#include <xsysmon.h>
Functions in xsysmon_sinit.c.
This function looks up the device configuration based on the unique device ID.
The table XSysMon_ConfigTable contains the configuration info for each device in the system.
DeviceId | contains the ID of the device for which the device configuration pointer is to be returned. |
void XSysMon_Reset | ( | XSysMon * | InstancePtr | ) |
#include <xsysmon.c>
This function forces the software reset of the complete SystemMonitor/ADC Hard Macro and the SYSMON ADC Core Logic.
InstancePtr | is a pointer to the XSysMon instance. |
References XSysMon_Config::BaseAddress, XSysMon::Config, XSysMon::IsReady, XSM_SRR_IPRST_MASK, XSM_SRR_OFFSET, and XSysMon_WriteReg.
Referenced by XSysMon_CfgInitialize(), and XSysMon_SelfTest().
void XSysMon_ResetAdc | ( | XSysMon * | InstancePtr | ) |
#include <xsysmon.c>
This function resets the SystemMonitor/ADC Hard Macro in the device.
InstancePtr | is a pointer to the XSysMon instance. |
References XSysMon_Config::BaseAddress, XSysMon::Config, XSysMon::IsReady, XSM_ARR_OFFSET, XSM_ARR_RST_MASK, and XSysMon_WriteReg.
int XSysMon_SelfTest | ( | XSysMon * | InstancePtr | ) |
#include <xsysmon.h>
Functions in xsysmon_selftest.c.
Run a self-test on the driver/device.
The test
InstancePtr | is a pointer to the XSysMon instance. |
References XSysMon::IsReady, XSM_ATR_VCCINT_UPPER, XSysMon_Reset(), and XSysMon_SetAlarmThreshold().
void XSysMon_SetAdcClkDivisor | ( | XSysMon * | InstancePtr, |
u8 | Divisor | ||
) |
#include <xsysmon.c>
The function sets the frequency of the ADCCLK by configuring the DCLK to ADCCLK ratio in the Configuration Register #2.
InstancePtr | is a pointer to the XSysMon instance. |
Divisor | is clock divisor used to derive ADCCLK from DCLK. Valid values of the divisor are
|
References XSysMon_Config::BaseAddress, XSysMon::Config, XSysMon::IsReady, XSM_CFR2_CD_SHIFT, XSM_CFR2_OFFSET, and XSysMon_WriteReg.
void XSysMon_SetAlarmEnables | ( | XSysMon * | InstancePtr, |
u32 | AlmEnableMask | ||
) |
#include <xsysmon.c>
This function enables the alarm outputs for the specified alarms in the Configuration Registers 1 and 3:
InstancePtr | is a pointer to the XSysMon instance. |
AlmEnableMask | 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_CFR_ALM_*_MASK, XSM_CFR_ALM_*_MASK and XSM_CFR_OT_MASK masks defined in xsysmon_hw.h. |
References XSysMon::IsReady.
void XSysMon_SetAlarmThreshold | ( | XSysMon * | InstancePtr, |
u8 | AlarmThrReg, | ||
u16 | Value | ||
) |
#include <xsysmon.c>
This functions sets the contents of the given Alarm Threshold Register.
InstancePtr | is a pointer to the XSysMon instance. |
AlarmThrReg | is the index of an Alarm Threshold Register to be set. Use XSM_ATR_* constants defined in xsysmon.h to specify the index. |
Value | is the 16-bit threshold value to write into the register. |
References XSysMon_Config::BaseAddress, XSysMon::Config, XSysMon::IsReady, XSM_ATR_TEMP_UPPER_OFFSET, XSM_ATR_VUSR0_LOWER, XSM_ATR_VUSR3_LOWER, XSM_ATR_VUSR3_UPPER, and XSysMon_WriteReg.
Referenced by XSysMon_SelfTest().
void XSysMon_SetAvg | ( | XSysMon * | InstancePtr, |
u8 | Average | ||
) |
#include <xsysmon.c>
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.
InstancePtr | is a pointer to the XSysMon instance. |
Average | is the number of samples of averaging programmed to the Configuration Register 0. Use the XSM_AVG_* definitions defined in xsysmon.h file :
|
References XSysMon_Config::BaseAddress, XSysMon::Config, XSysMon::IsReady, XSM_AVG_256_SAMPLES, XSM_CFR0_AVG_SHIFT, XSM_CFR0_AVG_VALID_MASK, XSM_CFR0_OFFSET, XSysMon_ReadReg, and XSysMon_WriteReg.
void XSysMon_SetCalibEnables | ( | XSysMon * | InstancePtr, |
u16 | Calibration | ||
) |
#include <xsysmon.c>
This function enables the specified calibration in the Configuration Register 1 :
InstancePtr | is a pointer to the XSysMon instance. |
Calibration | is the Calibration to be applied. Use XSM_CFR1_CAL*_* bits defined in xsysmon_hw.h. 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; |
References XSysMon_Config::BaseAddress, XSysMon::Config, XSysMon::IsReady, XSM_CFR1_CAL_ADC_OFFSET_MASK, XSM_CFR1_CAL_DISABLE_MASK, XSM_CFR1_CAL_VALID_MASK, XSM_CFR1_OFFSET, XSysMon_ReadReg, and XSysMon_WriteReg.
void XSysMon_SetExtenalMux | ( | XSysMon * | InstancePtr, |
u8 | Channel | ||
) |
#include <xsysmon.c>
The function enables the external mux and connects a channel to the mux.
InstancePtr | is a pointer to the XSysMon instance. |
Channel | is the channel number used to connect to the external Mux. The valid channels are 0 to 6, 8, and 16 to 31. |
References XSysMon::IsReady, and XSM_CH_VREFN.
void XSysMon_SetOverTemp | ( | XSysMon * | InstancePtr, |
u16 | Value | ||
) |
#include <xsysmon.c>
This function sets the powerdown temperature for the OverTemp signal in the OT Powerdown register.
InstancePtr | is a pointer to the XSysMon instance. |
Value | is the 16-bit OT Upper Alarm Register powerdown value. Valid values are 0 to 0x0FFF. |
References XSysMon_Config::BaseAddress, XSysMon::Config, XSysMon::IsReady, XSM_ATR_OT_UPPER_OFFSET, XSM_ATR_OT_UPPER_VAL_MASK, XSM_ATR_OT_UPPER_VAL_MAX, XSM_ATR_OT_UPPER_VAL_SHIFT, XSysMon_ReadReg, and XSysMon_WriteReg.
int XSysMon_SetSeqAcqTime | ( | XSysMon * | InstancePtr, |
u32 | AcqCyclesChMask | ||
) |
#include <xsysmon.c>
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.
InstancePtr | is a pointer to the XSysMon instance. |
AcqCyclesChMask | 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 xsysmon_hw.h 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. |
References XSysMon_Config::BaseAddress, XSysMon::Config, XSysMon::IsReady, XSM_SEQ06_CH_VALID_MASK, XSM_SEQ06_OFFSET, XSM_SEQ07_CH_VALID_MASK, XSM_SEQ07_OFFSET, XSM_SEQ_CH_AUX_SHIFT, XSM_SEQ_MODE_SAFE, XSysMon_GetSequencerMode(), and XSysMon_WriteReg.
int XSysMon_SetSeqAvgEnables | ( | XSysMon * | InstancePtr, |
u64 | AvgEnableChMask | ||
) |
#include <xsysmon.c>
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.
InstancePtr | is a pointer to the XSysMon instance. |
AvgEnableChMask | is the bit mask of all the channels for which averaging is to be enabled. Use XSM_SEQ_CH__* defined in xsysmon_hw.h 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 64 bit mask that is written to the three 16 bit ADC Channel Averaging Enable Sequencer Registers. |
References XSysMon_Config::BaseAddress, XSysMon::Config, XSysMon::IsReady, XSM_SEQ02_CH_VALID_MASK, XSM_SEQ02_OFFSET, XSM_SEQ03_CH_VALID_MASK, XSM_SEQ03_OFFSET, XSM_SEQ09_CH_VALID_MASK, XSM_SEQ09_OFFSET, XSM_SEQ_CH_AUX_SHIFT, XSM_SEQ_CH_VUSR_SHIFT, XSM_SEQ_MODE_SAFE, XSysMon_GetSequencerMode(), and XSysMon_WriteReg.
int XSysMon_SetSeqChEnables | ( | XSysMon * | InstancePtr, |
u64 | ChEnableMask | ||
) |
#include <xsysmon.c>
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.
InstancePtr | is a pointer to the XSysMon instance. |
ChEnableMask | is the bit mask of all the channels to be enabled. Use XSM_SEQ_CH_* defined in xsysmon_hw.h to specify the Channel numbers. Bit masks of 1 will be enabled and bit mask of 0 will be disabled. The ChEnableMask is a 64 bit mask that is written to the three 16 bit ADC Channel Selection Sequencer Registers. |
References XSysMon_Config::BaseAddress, XSysMon::Config, XSysMon::IsReady, XSM_SEQ00_CH_VALID_MASK, XSM_SEQ00_OFFSET, XSM_SEQ01_CH_VALID_MASK, XSM_SEQ01_OFFSET, XSM_SEQ08_CH_VALID_MASK, XSM_SEQ08_OFFSET, XSM_SEQ_CH_AUX_SHIFT, XSM_SEQ_CH_VUSR_SHIFT, XSM_SEQ_MODE_SAFE, XSysMon_GetSequencerMode(), and XSysMon_WriteReg.
int XSysMon_SetSeqInputMode | ( | XSysMon * | InstancePtr, |
u32 | InputModeChMask | ||
) |
#include <xsysmon.c>
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.
InstancePtr | is a pointer to the XSysMon instance. |
InputModeChMask | is the bit mask of all the channels for which the input mode is differential mode. Use XSM_SEQ_CH__* defined in xsysmon_hw.h 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. |
References XSysMon_Config::BaseAddress, XSysMon::Config, XSysMon::IsReady, XSM_SEQ04_CH_VALID_MASK, XSM_SEQ04_OFFSET, XSM_SEQ05_CH_VALID_MASK, XSM_SEQ05_OFFSET, XSM_SEQ_CH_AUX_SHIFT, XSM_SEQ_MODE_SAFE, XSysMon_GetSequencerMode(), and XSysMon_WriteReg.
void XSysMon_SetSequencerEvent | ( | XSysMon * | InstancePtr, |
int | IsEventMode | ||
) |
#include <xsysmon.c>
The function enables the Event mode or Continuous mode in the sequencer mode.
InstancePtr | is a pointer to the XSysMon instance. |
IsEventMode | is a boolean parameter that specifies continuous sampling (specify FALSE) or event driven sampling mode (specify TRUE) for the given channel. |
References XSysMon_Config::BaseAddress, XSysMon::Config, XSysMon::IsReady, XSM_CFR0_EC_MASK, XSM_CFR0_OFFSET, XSysMon_ReadReg, and XSysMon_WriteReg.
void XSysMon_SetSequencerMode | ( | XSysMon * | InstancePtr, |
u8 | SequencerMode | ||
) |
#include <xsysmon.c>
This function sets the specified Channel Sequencer Mode in the Configuration Register 1 :
InstancePtr | is a pointer to the XSysMon instance. |
SequencerMode | is the sequencer mode to be set. Use XSM_SEQ_MODE_* bits defined in xsysmon.h. |
References XSysMon_Config::BaseAddress, XSysMon::Config, XSysMon::IsReady, XSM_CFR1_OFFSET, XSM_CFR1_SEQ_SHIFT, XSM_CFR1_SEQ_VALID_MASK, XSM_SEQ_MODE_INDEPENDENT, XSM_SEQ_MODE_SIMUL, XSysMon_ReadReg, and XSysMon_WriteReg.
int XSysMon_SetSingleChParams | ( | XSysMon * | InstancePtr, |
u8 | Channel, | ||
int | IncreaseAcqCycles, | ||
int | IsEventMode, | ||
int | IsDifferentialMode | ||
) |
#include <xsysmon.c>
The function sets the given parameters in the Configuration Register 0 in the single channel mode.
InstancePtr | is a pointer to the XSysMon instance. |
Channel | is the channel number for conversion. The valid channels are 0 to 5, 8, and 16 to 31. Channel 6 is valid for 7 series and Zynq XADC. Channel 32 to 35 are valid for Ultrascale. |
IncreaseAcqCycles | 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. |
IsEventMode | is a boolean parameter that specifies continuous sampling (specify FALSE) or event driven sampling mode (specify TRUE) for the given channel. |
IsDifferentialMode | 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. |
References XSysMon::IsReady, and XSM_CH_VREFN.
void XSysMon_SetTempWaitCycles | ( | XSysMon * | InstancePtr, |
u16 | WaitCycles | ||
) |
#include <xsysmon.c>
This function sets the number of Wait Cycles for Temperature updation logic.
InstancePtr | is a pointer to the XSysMon instance. |
WaitCycles | is number of wait cycles |
References XSysMon_Config::BaseAddress, XSysMon::Config, XSysMon::IsReady, XSysMon::Mask, XSM_CONVST_OFFSET, XSM_CONVST_WAITCYCLES_MASK, XSM_CONVST_WAITCYCLES_SHIFT, and XSysMon_WriteReg.
void XSysMon_StartAdcConversion | ( | XSysMon * | InstancePtr | ) |
#include <xsysmon.c>
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.
InstancePtr | is a pointer to the XSysMon instance. |
References XSysMon_Config::BaseAddress, XSysMon::Config, XSysMon::IsReady, XSysMon::Mask, XSM_CONVST_CONVST_MASK, XSM_CONVST_OFFSET, and XSysMon_WriteReg.
XSysMon_Config XSysMon_ConfigTable[] |
#include <xsysmon_sinit.c>
This table contains configuration information for each System Monitor/ADC device in the system.
XSysMon_Config XSysMon_ConfigTable[XPAR_XSYSMON_NUM_INSTANCES] |
#include <xsysmon_g.c>
This table contains configuration information for each System Monitor/ADC device in the system.