sysmonpsv
Vitis Drivers API Documentation
xsysmonpsv.c File Reference

Functions

s64 XSysMonPsv_CfgInitialize (XSysMonPsv *InstancePtr, XSysMonPsv_Config *CfgPtr)
 Initializes XSysMonPsv device/instance. More...
 
void XSysMonPsv_SystemReset (XSysMonPsv *InstancePtr)
 Resets the SystemMonitor. More...
 
void XSysMonPsv_EnRegGate (XSysMonPsv *InstancePtr, u8 Enable)
 Gates the register outputs. More...
 
void XSysMonPsv_SetPMBusAddress (XSysMonPsv *InstancePtr, u8 Address)
 Sets the PMBus address for the System Monitor. More...
 
void XSysMonPsv_PMBusEnable (XSysMonPsv *InstancePtr, u8 Enable)
 Enables/disbles the PMBus on the System Monitor. More...
 
void XSysMonPsv_PMBusEnableCmd (XSysMonPsv *InstancePtr, u8 Enable)
 Restricts or de-restrict all PMBs commands. More...
 
void XSysMonPsv_SelectExtInterface (XSysMonPsv *InstancePtr, u8 Interface)
 Selects I2C or PMBus interface to which traffic from SMBus is routed. More...
 
void XSysMonPsv_StatusReset (XSysMonPsv *InstancePtr, u8 ResetSupply, u8 ResetTemperature)
 Resets the Min and Max values of supplies and temperature to negative and positive saturation respectively. More...
 
u16 XSysMonPsv_ReadDevTempThreshold (XSysMonPsv *InstancePtr, XSysMonPsv_Threshold ThresholdType)
 Returns the device temperature threshold for min and max values in signed Q8.7 format. More...
 
void XSysMonPsv_SetDevTempThreshold (XSysMonPsv *InstancePtr, XSysMonPsv_Threshold ThresholdType, u16 Value)
 Sets Device Temperature Threshold values. More...
 
u16 XSysMonPsv_ReadOTTempThreshold (XSysMonPsv *InstancePtr, XSysMonPsv_Threshold ThresholdType)
 Returns the OT temperature threshold for min and max values in signed Q8.7 format. More...
 
void XSysMonPsv_SetOTTempThreshold (XSysMonPsv *InstancePtr, XSysMonPsv_Threshold ThresholdType, u16 Value)
 Sets OT Temperature Threshold values. More...
 
u32 XSysMonPsv_ReadDeviceTemp (XSysMonPsv *InstancePtr, XSysMonPsv_Val Value)
 Returns the temperature values for the device in signed Q8.7 format. More...
 
u32 XSysMonPsv_ReadSupplyThreshold (XSysMonPsv *InstancePtr, XSysMonPsv_Supply Supply, XSysMonPsv_Threshold ThresholdType)
 Reads the raw value for Supply Threshold. More...
 
u32 XSysMonPsv_ReadSupplyValue (XSysMonPsv *InstancePtr, XSysMonPsv_Supply Supply, XSysMonPsv_Val Value)
 Reads the raw supply value for requested. More...
 
u32 XSysMonPsv_IsNewData (XSysMonPsv *InstancePtr, XSysMonPsv_Supply Supply)
 Checks if new data is available for a supply. More...
 
u32 XSysMonPsv_IsAlarmCondition (XSysMonPsv *InstancePtr, XSysMonPsv_Supply Supply)
 Checks if the supply value has exceeded the set threshold values. More...
 
u32 XSysMonPsv_SetSupplyUpperThreshold (XSysMonPsv *InstancePtr, XSysMonPsv_Supply Supply, u32 Value)
 Sets the raw value for upper supply threshold. More...
 
u32 XSysMonPsv_SetSupplyLowerThreshold (XSysMonPsv *InstancePtr, XSysMonPsv_Supply Supply, u32 Value)
 Sets the raw value for Lower Supply Threshold. More...
 
void XSysMonPsv_SetTempMode (XSysMonPsv *InstancePtr, u32 Mode)
 Sets the alarm mode for temperature alarms. More...
 
void XSysMonPsv_SetOTMode (XSysMonPsv *InstancePtr, u32 Mode)
 Sets the alarm mode for OT alarm. More...
 
u32 XSysMonPsv_ReadAlarmConfig (XSysMonPsv *InstancePtr, XSysMonPsv_Supply Supply)
 Reads the current supply Alarm Configuration. More...
 
u32 XSysMonPsv_SetAlarmConfig (XSysMonPsv *InstancePtr, XSysMonPsv_Supply Supply, u32 Config)
 Sets the Alarm configuration for a supply. More...
 
int XSysMonPsv_ReadTempProcessed (XSysMonPsv *InstancePtr, XSysMonPsv_TempType Type, float *Val)
 Reads the temperature and returns value in degree celsius. More...
 
int XSysMonPsv_ReadTempRaw (XSysMonPsv *InstancePtr, XSysMonPsv_TempType Type, u32 *Val)
 Reads the temperature and returns value in raw format. More...
 
int XSysMonPsv_ReadTempProcessedSat (XSysMonPsv *InstancePtr, int SatId, float *Val)
 Reads the temperature of each satellite in degree celsius. More...
 
int XSysMonPsv_ReadTempRawSat (XSysMonPsv *InstancePtr, int SatId, u32 *Val)
 Reads the temperature of each satellite in raw format. More...
 
int XSysMonPsv_SetTempThresholdUpper (XSysMonPsv *InstancePtr, XSysMonPsv_TempEvt Event, u32 Val)
 Sets the temperature upper threshold. More...
 
int XSysMonPsv_SetTempThresholdLower (XSysMonPsv *InstancePtr, XSysMonPsv_TempEvt Event, u32 Val)
 Sets the temperature lower threshold. More...
 
int XSysMonPsv_GetTempThresholdUpper (XSysMonPsv *InstancePtr, XSysMonPsv_TempEvt Event, u32 *Val)
 Gets the temperature upper threshold. More...
 
int XSysMonPsv_GetTempThresholdLower (XSysMonPsv *InstancePtr, XSysMonPsv_TempEvt Event, u32 *Val)
 Gets the temperature lower threshold. More...
 
int XSysMonPsv_ReadSupplyProcessed (XSysMonPsv *InstancePtr, int Supply, float *Val)
 Reads the voltage for the supply. More...
 
int XSysMonPsv_ReadSupplyRaw (XSysMonPsv *InstancePtr, u32 Supply, u32 *Val)
 Reads the voltage for the supply in raw. More...
 
int XSysMonPsv_SetSupplyThresholdUpper (XSysMonPsv *InstancePtr, u32 Supply, u32 Val)
 Sets the upper threshold voltage for the supply. More...
 
int XSysMonPsv_SetSupplyThresholdLower (XSysMonPsv *InstancePtr, int Supply, u32 Val)
 Sets loser threshold voltage for the supply. More...
 
int XSysMonPsv_GetSupplyThresholdUpper (XSysMonPsv *InstancePtr, u32 Supply, u32 *Val)
 Gets the upper threshold voltage for the supply. More...
 
int XSysMonPsv_GetSupplyThresholdLower (XSysMonPsv *InstancePtr, u32 Supply, u32 *Val)
 Gets the lower threshold voltage for the supply. More...
 
void XSysMonPsv_EnableTempAverage (XSysMonPsv *InstancePtr, int SatId, u8 Enable)
 Enables or Disables temperature satellites averaging. More...
 
void XSysMonPsv_SetTempAverageRate (XSysMonPsv *InstancePtr, u8 AverageRate)
 Sets temperature satellites average sampling rate value. More...
 
int XSysMonPsv_GetTempAverageRate (XSysMonPsv *InstancePtr, u8 *AverageRate)
 Gets temperature satellites average sampling rate value. More...
 
int XSysMonPsv_EnableSupplyAverage (XSysMonPsv *InstancePtr, XSysMonPsv_Supply Supply, u8 Enable)
 Enables or Disables voltage supplies averaging. More...
 
void XSysMonPsv_SetSupplyAverageRate (XSysMonPsv *InstancePtr, u8 AverageRate)
 Sets voltage supplies average sampling rate value. More...
 
int XSysMonPsv_GetSupplyAverageRate (XSysMonPsv *InstancePtr, u8 *AverageRate)
 Gets voltage supplies average sampling rate value. More...