sysmonpsv
Vitis Drivers API Documentation
xsysmonpsv_services.h File Reference

Functions

int XSysMonPsv_EnableVoltageEvents (XSysMonPsv *InstancePtr, u32 Supply, u32 IntrNum)
 This function enables voltage event for the supply. More...
 
int XSysMonPsv_DisableVoltageEvents (XSysMonPsv *InstancePtr, u32 Supply)
 This function disables voltage event for the supply. More...
 

Function Documentation

int XSysMonPsv_DisableVoltageEvents ( XSysMonPsv InstancePtr,
u32  Supply 
)

This function disables voltage event for the supply.

Parameters
InstancePtris a pointer to the driver instance.
Supplyis an enum from the XSysMonPsv_Supply.
Returns
- -XST_FAILURE if error
  • XST_SUCCESS if successful.

References ALARM_REG, ALARM_SHIFT, XSysMonPsv::Config, XSysMonPsv_Config::Supply_List, XSYSMONPSV_ALARM_REG0, XSysMonPsv_ReadReg32(), and XSysMonPsv_WriteReg32().

int XSysMonPsv_EnableVoltageEvents ( XSysMonPsv InstancePtr,
u32  Supply,
u32  IntrNum 
)

This function enables voltage event for the supply.

Parameters
InstancePtris a pointer to the driver instance.
Supplyis an enum from the XSysMonPsv_Supply.
IntrNumis interrupt Offset.
Returns
- -XST_FAILURE if error.
  • XST_SUCCESS if successful.

References ALARM_REG, ALARM_SHIFT, XSysMonPsv::Config, GET_BIT, XSysMonPsv_Config::Supply_List, XSYSMONPSV_ALARM_REG0, XSysMonPsv_InterruptEnable(), XSysMonPsv_ReadReg32(), and XSysMonPsv_WriteReg32().

Referenced by SysMonPsvIntrExample().