sysmon
Xilinx SDK Drivers API Documentation
xsysmon.c File Reference

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...