| sysmonpsv Vitis Drivers API Documentation

- Overview
- Data Structures
- APIs
- File List
- Examples

Functions
xsysmonpsv_services.c File Reference

## Functions
int | XSysMonPsv_EnableVoltageEvents (XSysMonPsv *InstancePtr, u32 Supply, u32 IntrNum)
| Enables voltage event for the supply. More...
int | XSysMonPsv_DisableVoltageEvents (XSysMonPsv *InstancePtr, u32 Supply)
| Disables voltage event for the supply. More...

## Function Documentation

int XSysMonPsv_DisableVoltageEvents | ( | XSysMonPsv * | InstancePtr,
|  | u32 | Supply
| ) |  |

Disables voltage event for the supply.

Parameters

  InstancePtr | Pointer to the driver instance.
  Supply | 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
| ) |  |

Enables voltage event for the supply.

Parameters

  InstancePtr | Pointer to the driver instance.
  Supply | Enum from the XSysMonPsv_Supply.
  IntrNum | 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().