![]() |
sysmonpsv
Vitis Drivers API Documentation
|
Macros | |
| #define | XSYSMONPSV_INTR_MASK 0xFFFFFFFF |
| All interrupt Mask. More... | |
| #define | XSYSMONPSV_INVALID_SUPPLY 160U |
| Invalid Supply. More... | |
| #define | XSYSMONPSV_PMBUS_INTERFACE 0U |
| PMBus interface select. More... | |
| #define | XSYSMONPSV_I2C_INTERFACE 1U |
| I2C interface select. More... | |
| #define | XSYSMONPSV_INVALID 0x80000000U |
| Invalid Val. More... | |
| #define | XSYSMONPSV_EXPONENT_RANGE_16 16U |
| Voltage exponent val bit. More... | |
| #define | XSYSMONPSV_QFMT_SIGN 15U |
| Q format signed bit. More... | |
| #define | XSYSMONPSV_QFMT_FRACTION 128 |
| Q format fractional val. More... | |
| #define | XSYSMONPSV_UP_SAT_SIGNED 32767 |
| Upper limit staurated signed val. More... | |
| #define | XSYSMONPSV_UP_SAT 65535 |
| Upper limit saturated unsigned val. More... | |
| #define | XSYSMONPSV_LOW_SAT_SIGNED -32767 |
| Lower limit signed saturated val. More... | |
| #define | XSYSMONPSV_LOW_SAT 0 |
| Lower limit unsigned saturated val. More... | |
| #define | XSYSMONPSV_BIPOLAR_UP_SAT 0x7FFF |
| Upper limit bipolar saturated val. More... | |
| #define | XSYSMONPSV_BIPOLAR_LOW_SAT 0x8000 |
| Lower limit bipolar saturated val. More... | |
| #define | XSYSMONPSV_UNIPOLAR_UP_SAT 0xFFFF |
| Upper limit unipolar saturated val. More... | |
| #define | XSYSMONPSV_UNIPOLAR_LOW_SAT 0x0000 |
| Lower limit unipolar saturated val. More... | |
| #define | XSYSMONPSV_ENABLE 1U |
| Enable. More... | |
| #define | XSYSMONPSV_DISABLE 0U |
| Disable. More... | |
| #define | XSYSMONPSV_HYSTERESIS 1U |
| Hysteresis Mode. More... | |
| #define | XSYSMONPSV_WINDOW 0U |
| Window Mode. More... | |
| #define | XSysMonPsv_ReadReg(RegisterAddr) Xil_In32(RegisterAddr) |
| This macro reads the given register. More... | |
| #define | XSysMonPsv_WriteReg(RegisterAddr, Data) Xil_Out32(RegisterAddr, (u32)(Data)) |
| This macro writes the given register. More... | |
| #define | XSYSMONPSV_SECURE_WRITE_DEFAULT 0xFFFFFFFF |
| Secure Write Command Payload. More... | |
| #define | XSYSMONPSV_SECURE_READ_DEFAULT 0x0 |
| Secure Read Command Payload. More... | |
| #define | XSYSMONPSV_SECURE_DEFAULT_PAYLOAD_SIZE 3U |
| Secure Payload Size. More... | |
| #define | XSYSMONPSV_H_ |
| < prevent circular inclusions More... | |
| #define | XSYSMONPSV_INTR_OFFSET 0xCU |
| Interrupt register offset. More... | |
Functions | |
| int | XSysMonPsv_Xilpm_Init (XSysMonPsv *Instanceptr, XScuGic *const GicInst, XIpiPsu *const IpiInst) |
| Initializes the XIL PM. More... | |
| 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... | |
| void | XSysMonPsv_IntrEnable (XSysMonPsv *InstancePtr, u32 Mask, u8 IntrNum) |
| Enables the specified interrupts in the device. More... | |
| u32 | XSysMonPsv_IntrGetEnabled (XSysMonPsv *InstancePtr, u8 IntrNum) |
| Returns the enabled interrupts read from the Interrupt Mask Register (IMR). More... | |
| void | XSysMonPsv_IntrDisable (XSysMonPsv *InstancePtr, u32 Mask, u8 IntrNum) |
| Disables the specified interrupts in the device. More... | |
| u32 | XSysMonPsv_IntrGetStatus (XSysMonPsv *InstancePtr) |
| Returns the interrupt status read from Interrupt Status Register(ISR). More... | |
| void | XSysMonPsv_IntrClear (XSysMonPsv *InstancePtr, u32 Mask) |
| Clears the specified interrupts in the Interrupt Status Register (ISR). More... | |
| void | XSysMonPsv_SetNewDataIntSrc (XSysMonPsv *InstancePtr, XSysMonPsv_Supply Supply, u32 Mask) |
| Sets a supply as a source new data interrupt. More... | |
| XSysMonPsv_Config * | XSysMonPsv_LookupConfig (void) |
| Looks for the device configuration based on the unique device ID. More... | |
Variables | |
| XSysMonPsv_Config | XSysMonPsv_ConfigTable [] |
| Config Table for sysmon device. More... | |
XSYSMONPSV Base Address | |
| #define | XSYSMONPSV_BASEADDR 0XF1270000U |
| Sysmon Base Address. More... | |
Register: XSYSMONPSV_PCSR_MASK | |
| #define | XSYSMONPSV_PCSR_MASK 0X00000000U |
| Sysmon PCSR Mask Reg Offset. More... | |
| #define | XSYSMONPSV_PCSR_MASK_SYS_RST_MASK_SHIFT 15U |
| PCSR Mask Reset Shift. More... | |
| #define | XSYSMONPSV_PCSR_MASK_SYS_RST_MASK_MASK 0X00038000U |
| PCSR Mask Reset Mask Value. More... | |
| #define | XSYSMONPSV_PCSR_MASK_GATEREG_SHIFT 1U |
| PCSR Mask Gate Reg Shift. More... | |
| #define | XSYSMONPSV_PCSR_MASK_GATEREG_MASK 0X00000002U |
| PCSR Mask Gate Reg Mask. More... | |
Register: XSYSMONPSV_PCSR_CONTROL | |
| #define | XSYSMONPSV_PCSR_CONTROL 0X00000004U |
| PCSR Control Reg Offset. More... | |
| #define | XSYSMONPSV_PCSR_CONTROL_SYS_RST_MASK_SHIFT 15U |
| PCSR Control Reset Shift. More... | |
| #define | XSYSMONPSV_PCSR_CONTROL_SYS_RST_MASK_MASK 0X00038000U |
| PCSR Control Reset Mask. More... | |
| #define | XSYSMONPSV_PCSR_CONTROL_GATEREG_SHIFT 1U |
| PCSR Control Gate Reg Shift. More... | |
| #define | XSYSMONPSV_PCSR_CONTROL_GATEREG_MASK 0X00000002U |
| PCSR Control Gate Reg Mask. More... | |
Register: XSYSMONPSV_PCSR_LOCK | |
| #define | XSYSMONPSV_PCSR_LOCK 0X0000000CU |
| PCSR Lock Register Offset. More... | |
| #define | XSYSMONPSV_PCSR_LOCK_STATE_SHIFT 0U |
| PCSR Lock State Shift. More... | |
| #define | XSYSMONPSV_PCSR_LOCK_STATE_MASK 0X00000001U |
| PCSR Lock State Mask. More... | |
Register: XSYSMONPSV_ISR | |
| #define | XSYSMONPSV_ISR_OFFSET 0X00000044U |
| Interrupt Status Register Offset. More... | |
| #define | XSYSMONPSV_ISR_NEW_DATA3_SHIFT 15U |
| New Data 3 Shift. More... | |
| #define | XSYSMONPSV_ISR_NEW_DATA3_MASK 0X00008000U |
| New Data 3 Mask. More... | |
| #define | XSYSMONPSV_ISR_NEW_DATA2_SHIFT 14U |
| New Data 2 Shift. More... | |
| #define | XSYSMONPSV_ISR_NEW_DATA2_MASK 0X00004000U |
| New Data 2 Mask. More... | |
| #define | XSYSMONPSV_ISR_NEW_DATA1_SHIFT 13U |
| New Data 1 Shift. More... | |
| #define | XSYSMONPSV_ISR_NEW_DATA1_MASK 0X00002000U |
| New Data 1 Mask. More... | |
| #define | XSYSMONPSV_ISR_NEW_DATA0_SHIFT 12U |
| New Data 0 Shift. More... | |
| #define | XSYSMONPSV_ISR_NEW_DATA0_MASK 0X00001000U |
| New Data 0 Mask. More... | |
| #define | XSYSMONPSV_ISR_TEMP_SHIFT 9U |
| Device Temperature Alarm Shift. More... | |
| #define | XSYSMONPSV_ISR_TEMP_MASK 0X00000200U |
| Device Temperature Alarm Mask. More... | |
| #define | XSYSMONPSV_ISR_OT_SHIFT 8U |
| Device Temperature Alarm Shift. More... | |
| #define | XSYSMONPSV_ISR_OT_MASK 0X00000100U |
| Device Temperature Alarm Mask. More... | |
| #define | XSYSMONPSV_ISR_ALARM4_SHIFT 4U |
| Supply[128-159] Alarm Shift. More... | |
| #define | XSYSMONPSV_ISR_ALARM4_MASK 0X00000010U |
| Supply[128-159] Alarm Mask. More... | |
| #define | XSYSMONPSV_ISR_ALARM3_SHIFT 3U |
| Supply[96-127] Alarm Shift. More... | |
| #define | XSYSMONPSV_ISR_ALARM3_MASK 0X00000008U |
| Supply[96-127] Alarm Mask. More... | |
| #define | XSYSMONPSV_ISR_ALARM2_SHIFT 2U |
| Supply[64-95] Alarm Shift. More... | |
| #define | XSYSMONPSV_ISR_ALARM2_MASK 0X00000004U |
| Supply[64-95] Alarm Mask. More... | |
| #define | XSYSMONPSV_ISR_ALARM1_SHIFT 1U |
| Supply[32-63] Alarm Shift. More... | |
| #define | XSYSMONPSV_ISR_ALARM1_MASK 0X00000002U |
| Supply[32-63] Alarm Mask. More... | |
| #define | XSYSMONPSV_ISR_ALARM0_SHIFT 0U |
| Supply[0-31] Alarm Shift. More... | |
| #define | XSYSMONPSV_ISR_ALARM0_MASK 0X00000001U |
| Supply[0-31] Alarm Mask. More... | |
Register: XSYSMONPSV_IMR0 | |
| #define | XSYSMONPSV_IMR0_OFFSET 0X00000048U |
| Interrupt Mask Reg 0 Offset. More... | |
| #define | XSYSMONPSV_IMR0_NEW_DATA3_SHIFT 15U |
| New Data 3 Shift. More... | |
| #define | XSYSMONPSV_IMR0_NEW_DATA3_MASK 0X00008000U |
| New Data 3 Mask. More... | |
| #define | XSYSMONPSV_IMR0_NEW_DATA2_SHIFT 14U |
| New Data 2 Shift. More... | |
| #define | XSYSMONPSV_IMR0_NEW_DATA2_MASK 0X00004000U |
| New Data 2 Mask. More... | |
| #define | XSYSMONPSV_IMR0_NEW_DATA1_SHIFT 13U |
| New Data 1 Shift. More... | |
| #define | XSYSMONPSV_IMR0_NEW_DATA1_MASK 0X00002000U |
| New Data 1 Mask. More... | |
| #define | XSYSMONPSV_IMR0_NEW_DATA0_SHIFT 12U |
| New Data 0 Shift. More... | |
| #define | XSYSMONPSV_IMR0_NEW_DATA0_MASK 0X00001000U |
| New Data 0 Mask. More... | |
| #define | XSYSMONPSV_IMR0_TEMP_SHIFT 9U |
| Device Temperature Alarm Shift. More... | |
| #define | XSYSMONPSV_IMR0_TEMP_MASK 0X00000200U |
| Device Temperature Alarm Mask. More... | |
| #define | XSYSMONPSV_IMR0_OT_SHIFT 8U |
| Device Temperature Alarm Shift. More... | |
| #define | XSYSMONPSV_IMR0_OT_MASK 0X00000100U |
| Device Temperature Alarm Mask. More... | |
| #define | XSYSMONPSV_IMR0_ALARM4_SHIFT 4U |
| Supply[128-159] Alarm Shift. More... | |
| #define | XSYSMONPSV_IMR0_ALARM4_MASK 0X00000010U |
| Supply[128-159] Alarm Mask. More... | |
| #define | XSYSMONPSV_IMR0_ALARM3_SHIFT 3U |
| Supply[96-127] Alarm Shift. More... | |
| #define | XSYSMONPSV_IMR0_ALARM3_MASK 0X00000008U |
| Supply[96-127] Alarm Mask. More... | |
| #define | XSYSMONPSV_IMR0_ALARM2_SHIFT 2U |
| Supply[64-95] Alarm Shift. More... | |
| #define | XSYSMONPSV_IMR0_ALARM2_MASK 0X00000004U |
| Supply[64-95] Alarm Mask. More... | |
| #define | XSYSMONPSV_IMR0_ALARM1_SHIFT 1U |
| Supply[32-63] Alarm Shift. More... | |
| #define | XSYSMONPSV_IMR0_ALARM1_MASK 0X00000002U |
| Supply[32-63] Alarm Mask. More... | |
| #define | XSYSMONPSV_IMR0_ALARM0_SHIFT 0U |
| Supply[0-31] Alarm Shift. More... | |
| #define | XSYSMONPSV_IMR0_ALARM0_MASK 0X00000001U |
| Supply[0-31] Alarm Mask. More... | |
Register: XSYSMONPSV_IER0 | |
| #define | XSYSMONPSV_IER0_OFFSET 0X0000004CU |
| Interrupt Enable 0 Offset. More... | |
| #define | XSYSMONPSV_IER0_NEW_DATA3_SHIFT 15U |
| New Data 3 Shift. More... | |
| #define | XSYSMONPSV_IER0_NEW_DATA3_MASK 0X00008000U |
| New Data 3 Mask. More... | |
| #define | XSYSMONPSV_IER0_NEW_DATA2_SHIFT 14U |
| New Data 2 Shift. More... | |
| #define | XSYSMONPSV_IER0_NEW_DATA2_MASK 0X00004000U |
| New Data 2 Mask. More... | |
| #define | XSYSMONPSV_IER0_NEW_DATA1_SHIFT 13U |
| New Data 1 Shift. More... | |
| #define | XSYSMONPSV_IER0_NEW_DATA1_MASK 0X00002000U |
| New Data 1 Mask. More... | |
| #define | XSYSMONPSV_IER0_NEW_DATA0_SHIFT 12U |
| New Data 0 Shift. More... | |
| #define | XSYSMONPSV_IER0_NEW_DATA0_MASK 0X00001000U |
| New Data 0 Mask. More... | |
| #define | XSYSMONPSV_IER0_TEMP_SHIFT 9U |
| Device Temperature Alarm Shift. More... | |
| #define | XSYSMONPSV_IER0_TEMP_MASK 0X00000200U |
| Device Temperature Alarm Mask. More... | |
| #define | XSYSMONPSV_IER0_OT_SHIFT 8U |
| Device Temperature Alarm Shift. More... | |
| #define | XSYSMONPSV_IER0_OT_MASK 0X00000100U |
| Device Temperature Alarm Mask. More... | |
| #define | XSYSMONPSV_IER0_ALARM4_SHIFT 4U |
| Supply[128-159] Alarm Shift. More... | |
| #define | XSYSMONPSV_IER0_ALARM4_MASK 0X00000010U |
| Supply[128-159] Alarm Mask. More... | |
| #define | XSYSMONPSV_IER0_ALARM3_SHIFT 3U |
| Supply[96-127] Alarm Shift. More... | |
| #define | XSYSMONPSV_IER0_ALARM3_MASK 0X00000008U |
| Supply[96-127] Alarm Mask. More... | |
| #define | XSYSMONPSV_IER0_ALARM2_SHIFT 2U |
| Supply[64-95] Alarm Shift. More... | |
| #define | XSYSMONPSV_IER0_ALARM2_MASK 0X00000004U |
| Supply[64-95] Alarm Mask. More... | |
| #define | XSYSMONPSV_IER0_ALARM1_SHIFT 1U |
| Supply[32-63] Alarm Shift. More... | |
| #define | XSYSMONPSV_IER0_ALARM1_MASK 0X00000002U |
| Supply[32-63] Alarm Mask. More... | |
| #define | XSYSMONPSV_IER0_ALARM0_SHIFT 0U |
| Supply[0-31] Alarm Shift. More... | |
| #define | XSYSMONPSV_IER0_ALARM0_MASK 0X00000001U |
| Supply[0-31] Alarm Mask. More... | |
Register: XSYSMONPSV_IDR0 | |
| #define | XSYSMONPSV_IDR0_OFFSET 0X00000050U |
| Interrupt Disable Reg 0 Offset. More... | |
| #define | XSYSMONPSV_IDR0_NEW_DATA3_SHIFT 15U |
| New Data 3 Shift. More... | |
| #define | XSYSMONPSV_IDR0_NEW_DATA3_MASK 0X00008000U |
| New Data 3 Mask. More... | |
| #define | XSYSMONPSV_IDR0_NEW_DATA2_SHIFT 14U |
| New Data 2 Shift. More... | |
| #define | XSYSMONPSV_IDR0_NEW_DATA2_MASK 0X00004000U |
| New Data 2 Mask. More... | |
| #define | XSYSMONPSV_IDR0_NEW_DATA1_SHIFT 13U |
| New Data 1 Shift. More... | |
| #define | XSYSMONPSV_IDR0_NEW_DATA1_MASK 0X00002000U |
| New Data 1 Mask. More... | |
| #define | XSYSMONPSV_IDR0_NEW_DATA0_SHIFT 12U |
| New Data 0 Shift. More... | |
| #define | XSYSMONPSV_IDR0_NEW_DATA0_MASK 0X00001000U |
| New Data 0 Mask. More... | |
| #define | XSYSMONPSV_IDR0_TEMP_SHIFT 9U |
| Device Temperature Alarm Shift. More... | |
| #define | XSYSMONPSV_IDR0_TEMP_MASK 0X00000200U |
| Device Temperature Alarm Mask. More... | |
| #define | XSYSMONPSV_IDR0_OT_SHIFT 8U |
| Device Temperature Alarm Shift. More... | |
| #define | XSYSMONPSV_IDR0_OT_MASK 0X00000100U |
| Device Temperature Alarm Mask. More... | |
| #define | XSYSMONPSV_IDR0_ALARM4_SHIFT 4U |
| Supply[128-159] Alarm Shift. More... | |
| #define | XSYSMONPSV_IDR0_ALARM4_MASK 0X00000010U |
| Supply[128-159] Alarm Mask. More... | |
| #define | XSYSMONPSV_IDR0_ALARM3_SHIFT 3U |
| Supply[96-127] Alarm Shift. More... | |
| #define | XSYSMONPSV_IDR0_ALARM3_MASK 0X00000008U |
| Supply[96-127] Alarm Mask. More... | |
| #define | XSYSMONPSV_IDR0_ALARM2_SHIFT 2U |
| Supply[64-95] Alarm Shift. More... | |
| #define | XSYSMONPSV_IDR0_ALARM2_MASK 0X00000004U |
| Supply[64-95] Alarm Mask. More... | |
| #define | XSYSMONPSV_IDR0_ALARM1_SHIFT 1U |
| Supply[32-63] Alarm Shift. More... | |
| #define | XSYSMONPSV_IDR0_ALARM1_MASK 0X00000002U |
| Supply[32-63] Alarm Mask. More... | |
| #define | XSYSMONPSV_IDR0_ALARM0_SHIFT 0U |
| Supply[0-31] Alarm Shift. More... | |
| #define | XSYSMONPSV_IDR0_ALARM0_MASK 0X00000001U |
| Supply[0-31] Alarm Mask. More... | |
Register: XSYSMONPSV_IMR1 | |
| #define | XSYSMONPSV_IMR1_OFFSET 0X00000054U |
| Interrupt Mask Reg 1 Offset. More... | |
| #define | XSYSMONPSV_IMR1_NEW_DATA3_SHIFT 15U |
| New Data 3 Shift. More... | |
| #define | XSYSMONPSV_IMR1_NEW_DATA3_MASK 0X00008000U |
| New Data 3 Mask. More... | |
| #define | XSYSMONPSV_IMR1_NEW_DATA2_SHIFT 14U |
| New Data 2 Shift. More... | |
| #define | XSYSMONPSV_IMR1_NEW_DATA2_MASK 0X00004000U |
| New Data 2 Mask. More... | |
| #define | XSYSMONPSV_IMR1_NEW_DATA1_SHIFT 13U |
| New Data 1 Shift. More... | |
| #define | XSYSMONPSV_IMR1_NEW_DATA1_MASK 0X00002000U |
| New Data 1 Mask. More... | |
| #define | XSYSMONPSV_IMR1_NEW_DATA0_SHIFT 12U |
| New Data 0 Shift. More... | |
| #define | XSYSMONPSV_IMR1_NEW_DATA0_MASK 0X00001000U |
| New Data 0 Mask. More... | |
| #define | XSYSMONPSV_IMR1_TEMP_SHIFT 9U |
| Device Temperature Alarm Shift. More... | |
| #define | XSYSMONPSV_IMR1_TEMP_MASK 0X00000200U |
| Device Temperature Alarm Mask. More... | |
| #define | XSYSMONPSV_IMR1_OT_SHIFT 8U |
| Device Temperature Alarm Shift. More... | |
| #define | XSYSMONPSV_IMR1_OT_MASK 0X00000100U |
| Device Temperature Alarm Mask. More... | |
| #define | XSYSMONPSV_IMR1_ALARM4_SHIFT 4U |
| Supply[128-159] Alarm Shift. More... | |
| #define | XSYSMONPSV_IMR1_ALARM4_MASK 0X00000010U |
| Supply[128-159] Alarm Mask. More... | |
| #define | XSYSMONPSV_IMR1_ALARM3_SHIFT 3U |
| Supply[96-127] Alarm Shift. More... | |
| #define | XSYSMONPSV_IMR1_ALARM3_MASK 0X00000008U |
| Supply[96-127] Alarm Mask. More... | |
| #define | XSYSMONPSV_IMR1_ALARM2_SHIFT 2U |
| Supply[64-95] Alarm Shift. More... | |
| #define | XSYSMONPSV_IMR1_ALARM2_MASK 0X00000004U |
| Supply[64-95] Alarm Mask. More... | |
| #define | XSYSMONPSV_IMR1_ALARM1_SHIFT 1U |
| Supply[32-63] Alarm Shift. More... | |
| #define | XSYSMONPSV_IMR1_ALARM1_MASK 0X00000002U |
| Supply[32-63] Alarm Mask. More... | |
| #define | XSYSMONPSV_IMR1_ALARM0_SHIFT 0U |
| Supply[0-31] Alarm Shift. More... | |
| #define | XSYSMONPSV_IMR1_ALARM0_MASK 0X00000001U |
| Supply[0-31] Alarm Mask. More... | |
Register: XSYSMONPSV_IER1 | |
| #define | XSYSMONPSV_IER1_OFFSET 0X00000058U |
| Interrupt Enable Reg 1 Offset. More... | |
| #define | XSYSMONPSV_IER1_NEW_DATA3_SHIFT 15U |
| New Data 3 Shift. More... | |
| #define | XSYSMONPSV_IER1_NEW_DATA3_MASK 0X00008000U |
| New Data 3 Mask. More... | |
| #define | XSYSMONPSV_IER1_NEW_DATA2_SHIFT 14U |
| New Data 2 Shift. More... | |
| #define | XSYSMONPSV_IER1_NEW_DATA2_MASK 0X00004000U |
| New Data 2 Mask. More... | |
| #define | XSYSMONPSV_IER1_NEW_DATA1_SHIFT 13U |
| New Data 1 Shift. More... | |
| #define | XSYSMONPSV_IER1_NEW_DATA1_MASK 0X00002000U |
| New Data 1 Mask. More... | |
| #define | XSYSMONPSV_IER1_NEW_DATA0_SHIFT 12U |
| New Data 0 Shift. More... | |
| #define | XSYSMONPSV_IER1_NEW_DATA0_MASK 0X00001000U |
| New Data 0 Mask. More... | |
| #define | XSYSMONPSV_IER1_TEMP_SHIFT 9U |
| Device Temperature Alarm Shift. More... | |
| #define | XSYSMONPSV_IER1_TEMP_MASK 0X00000200U |
| Device Temperature Alarm Mask. More... | |
| #define | XSYSMONPSV_IER1_OT_SHIFT 8U |
| Device Temperature Alarm Shift. More... | |
| #define | XSYSMONPSV_IER1_OT_MASK 0X00000100U |
| Device Temperature Alarm Mask. More... | |
| #define | XSYSMONPSV_IER1_ALARM4_SHIFT 4U |
| Supply[128-159] Alarm Shift. More... | |
| #define | XSYSMONPSV_IER1_ALARM4_MASK 0X00000010U |
| Supply[128-159] Alarm Mask. More... | |
| #define | XSYSMONPSV_IER1_ALARM3_SHIFT 3U |
| Supply[96-127] Alarm Shift. More... | |
| #define | XSYSMONPSV_IER1_ALARM3_MASK 0X00000008U |
| Supply[96-127] Alarm Mask. More... | |
| #define | XSYSMONPSV_IER1_ALARM2_SHIFT 2U |
| Supply[64-95] Alarm Shift. More... | |
| #define | XSYSMONPSV_IER1_ALARM2_MASK 0X00000004U |
| Supply[64-95] Alarm Mask. More... | |
| #define | XSYSMONPSV_IER1_ALARM1_SHIFT 1U |
| Supply[32-63] Alarm Shift. More... | |
| #define | XSYSMONPSV_IER1_ALARM1_MASK 0X00000002U |
| Supply[32-63] Alarm Mask. More... | |
| #define | XSYSMONPSV_IER1_ALARM0_SHIFT 0U |
| Supply[0-31] Alarm Shift. More... | |
| #define | XSYSMONPSV_IER1_ALARM0_MASK 0X00000001U |
| Supply[0-31] Alarm Mask. More... | |
Register: XSYSMONPSV_IDR1 | |
| #define | XSYSMONPSV_IDR1_OFFSET 0X0000005CU |
| Interrupt Disable Reg 1 Offset. More... | |
| #define | XSYSMONPSV_IDR1_NEW_DATA3_SHIFT 15U |
| New Data 3 Shift. More... | |
| #define | XSYSMONPSV_IDR1_NEW_DATA3_MASK 0X00008000U |
| New Data 3 Mask. More... | |
| #define | XSYSMONPSV_IDR1_NEW_DATA2_SHIFT 14U |
| New Data 2 Shift. More... | |
| #define | XSYSMONPSV_IDR1_NEW_DATA2_MASK 0X00004000U |
| New Data 2 Mask. More... | |
| #define | XSYSMONPSV_IDR1_NEW_DATA1_SHIFT 13U |
| New Data 1 Shift. More... | |
| #define | XSYSMONPSV_IDR1_NEW_DATA1_MASK 0X00002000U |
| New Data 1 Mask. More... | |
| #define | XSYSMONPSV_IDR1_NEW_DATA0_SHIFT 12U |
| New Data 0 Shift. More... | |
| #define | XSYSMONPSV_IDR1_NEW_DATA0_MASK 0X00001000U |
| New Data 0 Mask. More... | |
| #define | XSYSMONPSV_IDR1_TEMP_SHIFT 9U |
| Device Temperature Alarm Shift. More... | |
| #define | XSYSMONPSV_IDR1_TEMP_MASK 0X00000200U |
| Device Temperature Alarm Mask. More... | |
| #define | XSYSMONPSV_IDR1_OT_SHIFT 8U |
| Device Temperature Alarm Shift. More... | |
| #define | XSYSMONPSV_IDR1_OT_MASK 0X00000100U |
| Device Temperature Alarm Mask. More... | |
| #define | XSYSMONPSV_IDR1_ALARM4_SHIFT 4U |
| Supply[128-159] Alarm Shift. More... | |
| #define | XSYSMONPSV_IDR1_ALARM4_MASK 0X00000010U |
| Supply[128-159] Alarm Mask. More... | |
| #define | XSYSMONPSV_IDR1_ALARM3_SHIFT 3U |
| Supply[96-127] Alarm Shift. More... | |
| #define | XSYSMONPSV_IDR1_ALARM3_MASK 0X00000008U |
| Supply[96-127] Alarm Mask. More... | |
| #define | XSYSMONPSV_IDR1_ALARM2_SHIFT 2U |
| Supply[64-95] Alarm Shift. More... | |
| #define | XSYSMONPSV_IDR1_ALARM2_MASK 0X00000004U |
| Supply[64-95] Alarm Mask. More... | |
| #define | XSYSMONPSV_IDR1_ALARM1_SHIFT 1U |
| Supply[32-63] Alarm Shift. More... | |
| #define | XSYSMONPSV_IDR1_ALARM1_MASK 0X00000002U |
| Supply[32-63] Alarm Mask. More... | |
| #define | XSYSMONPSV_IDR1_ALARM0_SHIFT 0U |
| Supply[0-31] Alarm Shift. More... | |
| #define | XSYSMONPSV_IDR1_ALARM0_MASK 0X00000001U |
| Supply[0-31] Alarm Mask. More... | |
Register: XSYSMONPSV_CONFIG0 | |
| #define | XSYSMONPSV_CONFIG0 0X00000100U |
| Config0 register. More... | |
| #define | XSYSMONPSV_CONFIG0_TEMP_AVERAGE_SHIFT 24U |
| Temp Average Shift. More... | |
| #define | XSYSMONPSV_CONFIG0_TEMP_AVERAGE_MASK 0x0F000000U |
| Temp Average Mask. More... | |
| #define | XSYSMONPSV_CONFIG0_SUPPLY_AVERAGE_SHIFT 14U |
| Supply Average Shift. More... | |
| #define | XSYSMONPSV_CONFIG0_SUPPLY_AVERAGE_MASK 0x0001C000U |
| Supply Average Mask. More... | |
| #define | XSYSMONPSV_AVERAGE_0_SAMPLES 0U |
| No Averaging, Full sample rate. More... | |
| #define | XSYSMONPSV_AVERAGE_2_SAMPLES 1U |
| Average 2 samples, Full sample rate/2. More... | |
| #define | XSYSMONPSV_AVERAGE_4_SAMPLES 2U |
| Average 4 samples, Full sample rate/4. More... | |
| #define | XSYSMONPSV_AVERAGE_8_SAMPLES 4U |
| Average 8 samples, Full sample rate/8. More... | |
| #define | XSYSMONPSV_AVERAGE_16_SAMPLES 8U |
| Average 16 samples, Full sample rate/16. More... | |
| #define | XSYSMONPSV_CONFIG0_I2C_NOT_PMBUS_SHIFT 9U |
| I2C Select Shift. More... | |
| #define | XSYSMONPSV_CONFIG0_I2C_NOT_PMBUS_MASK 0X00000200U |
| I2C Select Mask. More... | |
| #define | XSYSMONPSV_CONFIG0_PMBUS_UNRESTRICTED_SHIFT 8U |
| Unrestrict PMBus Shift. More... | |
| #define | XSYSMONPSV_CONFIG0_PMBUS_UNRESTRICTED_MASK 0X00000100U |
| Unrestrict PMBus Mask. More... | |
| #define | XSYSMONPSV_CONFIG0_PMBUS_ENABLE_SHIFT 7U |
| PMBus Enable Shift. More... | |
| #define | XSYSMONPSV_CONFIG0_PMBUS_ENABLE_MASK 0X00000080U |
| PMBus Enable Mask. More... | |
| #define | XSYSMONPSV_CONFIG0_PMBUS_ADDRESS_SHIFT 0U |
| PMBus Address Shift. More... | |
| #define | XSYSMONPSV_CONFIG0_PMBUS_ADDRESS_MASK 0X0000007FU |
| PMBus Address Mask. More... | |
Register: XSYSMONPSV_NEW_DATA_FLAG0 | |
| #define | XSYSMONPSV_NEW_DATA_FLAG0 0X00001000U |
| New Data Flag Supply[0-31] Offset. More... | |
Register: XSYSMONPSV_NEW_DATA_FLAG1 | |
| #define | XSYSMONPSV_NEW_DATA_FLAG1 0X00001004U |
| New Data Flag Supply[32-63] Offset. More... | |
Register: XSYSMONPSV_NEW_DATA_FLAG2 | |
| #define | XSYSMONPSV_NEW_DATA_FLAG2 0X00001008U |
| New Data Flag Supply[64-95] Offset. More... | |
Register: XSYSMONPSV_NEW_DATA_FLAG3 | |
| #define | XSYSMONPSV_NEW_DATA_FLAG3 0X0000100CU |
| New Data Flag Supply[96-127] Offset. More... | |
Register: XSYSMONPSV_NEW_DATA_FLAG4 | |
| #define | XSYSMONPSV_NEW_DATA_FLAG4 0X00001010U |
| Alarm Flag Supply[128-159] Offset. More... | |
Register: XSYSMONPSV_ALARM_FLAG0 | |
| #define | XSYSMONPSV_ALARM_FLAG0 0X00001018U |
| Alarm Flag Supply[0-31] Offset. More... | |
Register: XSYSMONPSV_ALARM_FLAG1 | |
| #define | XSYSMONPSV_ALARM_FLAG1 0X0000101CU |
| Alarm Flag Supply[32-63] Offset. More... | |
Register: XSYSMONPSV_ALARM_FLAG2 | |
| #define | XSYSMONPSV_ALARM_FLAG2 0X00001020U |
| Alarm Flag Supply[63-95] Offset. More... | |
Register: XSYSMONPSV_ALARM_FLAG3 | |
| #define | XSYSMONPSV_ALARM_FLAG3 0X00001024U |
| Alarm Flag Supply[96-127] Offset. More... | |
Register: XSYSMONPSV_ALARM_FLAG4 | |
| #define | XSYSMONPSV_ALARM_FLAG4 0X00001028U |
| Alarm Flag Supply[128-159] Offset. More... | |
Register: XSYSMONPSV_DEVICE_TEMP_MAX | |
| #define | XSYSMONPSV_DEVICE_TEMP_MAX 0X00001030U |
| Max Device Temperature Offset (Only for SE1 Silicon) More... | |
Register: XSYSMONPSV_DEVICE_TEMP | |
| #define | XSYSMONPSV_DEVICE_TEMP 0X00001030U |
| Device Temperature Offset. More... | |
Register: XSYSMONPSV_DEVICE_TEMP_MIN | |
| #define | XSYSMONPSV_DEVICE_TEMP_MIN 0X00001034U |
| Min Device Temperature Offset (Only for SE1 Silicon) More... | |
| #define | XSYSMONPSV_DEVICE_TEMP_MAX_MAX 0x00001F90 |
| #define | XSYSMONPSV_DEVICE_TEMP_MIN_MIN 0x00001F8C |
Supply format macros | |
| #define | XSYSMONPSV_SUPPLY_MANTISSA_MASK 0x0000FFFFU |
| Supply Mantissa Mask. More... | |
| #define | XSYSMONPSV_SUPPLY_FMT_MASK 0x00010000U |
| Supply Format Mask. More... | |
| #define | XSYSMONPSV_SUPPLY_FMT_SHIFT 16U |
| Supply Format Shift. More... | |
| #define | XSYSMONPSV_SUPPLY_MODE_MASK 0x00060000U |
| Supply Mode Mask. More... | |
| #define | XSYSMONPSV_SUPPLY_MODE_SHIFT 17U |
| Supply Mode Shift. More... | |
| #define | XSYSMONPSV_SUPPLY_MANTISSA_SIGN 15U |
| Supply Mantissa Shift. More... | |
Register: XSYSMONPSV_SUPPLY | |
| #define | XSYSMONPSV_SUPPLY 0X00001040U |
| Supply Base Register Offset. More... | |
Register: XSYSMONPSV_SUPPLY_MIN | |
| #define | XSYSMONPSV_SUPPLY_MIN 0X00001340U |
| Min Supply Base Register Offset. More... | |
Register: XSYSMONPSV_SUPPLY_MAX | |
| #define | XSYSMONPSV_SUPPLY_MAX 0X00001640U |
| Max Supply Base Register Offset. More... | |
Register: XSYSMONPSV_ALARM_REG0 | |
| #define | XSYSMONPSV_ALARM_REG0 0X00001940U |
| Alarm Reg Supply[0-31] Offset. More... | |
Register: XSYSMONPSV_ALARM_REG1 | |
| #define | XSYSMONPSV_ALARM_REG1 0X00001944U |
| Alarm Reg Supply[32-63] Offset. More... | |
Register: XSYSMONPSV_ALARM_REG2 | |
| #define | XSYSMONPSV_ALARM_REG2 0X00001948U |
| Alarm Reg Supply[64-95] Offset. More... | |
Register: XSYSMONPSV_ALARM_REG3 | |
| #define | XSYSMONPSV_ALARM_REG3 0X0000194CU |
| Alarm Reg Supply[96-127] Offset. More... | |
Register: XSYSMONPSV_ALARM_REG4 | |
| #define | XSYSMONPSV_ALARM_REG4 0X00001950U |
| Alarm Reg Supply[128-159] Offset. More... | |
Register: XSYSMONPSV_EN_AVG_REG0 | |
| #define | XSYSMONPSV_EN_AVG_REG0 0X00001958U |
| Enable Average for Supply Reg Supply[0-31] Offset. More... | |
Register: XSYSMONPSV_EN_AVG_REG1 | |
| #define | XSYSMONPSV_EN_AVG_REG1 0X0000195CU |
| Enable Average for Supply Reg Supply[32-63] Offset. More... | |
Register: XSYSMONPSV_EN_AVG_REG2 | |
| #define | XSYSMONPSV_EN_AVG_REG2 0X00001960U |
| Enable Average for Supply Reg Supply[64-95] Offset. More... | |
Register: XSYSMONPSV_EN_AVG_REG3 | |
| #define | XSYSMONPSV_EN_AVG_REG3 0X00001964U |
| Enable Average for Supply Reg Supply[96-127] Offset. More... | |
Register: XSYSMONPSV_EN_AVG_REG4 | |
| #define | XSYSMONPSV_EN_AVG_REG4 0X00001968U |
| Enable Average for Supply Reg Supply[127-159] Offset. More... | |
Register: XSYSMONPSV_DEVICE_TEMP_TH | |
| #define | XSYSMONPSV_DEVICE_TEMP_TH 0X00001970U |
| Device Temperature Threshold Falling. More... | |
Register: XSYSMONPSV_DEVICE_TEMP_TH_FALLING | |
| #define | XSYSMONPSV_DEVICE_TEMP_TH_FALLING 0X00001970U |
| Device Temperature Threshold Falling. More... | |
Register: XSYSMONPSV_DEVICE_TEMP_TH_RISING | |
| #define | XSYSMONPSV_DEVICE_TEMP_TH_RISING 0X00001974U |
| Device Temperature Threshold Rising. More... | |
Register: XSYSMONPSV_OT_TEMP_TH | |
| #define | XSYSMONPSV_OT_TEMP_TH 0X00001978U |
| OT Temperature Threshold Base Offset. More... | |
Register: XSYSMONPSV_OT_TEMP_TH_FALLING | |
| #define | XSYSMONPSV_OT_TEMP_TH_FALLING 0X00001978U |
| OT Temperature Threshold Falling. More... | |
Register: XSYSMONPSV_OT_TEMP_TH_RISING | |
| #define | XSYSMONPSV_OT_TEMP_TH_RISING 0X0000197CU |
| OT Temperature Threshold Rising. More... | |
Register: XSYSMONPSV_SUPPLY_TH_LOWER | |
| #define | XSYSMONPSV_SUPPLY_TH_LOWER 0X00001980U |
| Supply Lower Threshold Offset. More... | |
| #define | XSYSMONPSV_SUPPLY_TH_LOWER_VAL_RO_SHIFT 16U |
| Read-Only Format Shift. More... | |
| #define | XSYSMONPSV_SUPPLY_TH_LOWER_VAL_RO_MASK 0X00070000U |
| Read-only Format Mask. More... | |
| #define | XSYSMONPSV_SUPPLY_TH_LOWER_VAL_SHIFT 0U |
| Threhsold Value Shift. More... | |
| #define | XSYSMONPSV_SUPPLY_TH_LOWER_VAL_MASK 0X0000FFFFU |
| Threshold Value Mask. More... | |
Register: XSYSMONPSV_SUPPLY_TH_UPPER | |
| #define | XSYSMONPSV_SUPPLY_TH_UPPER 0X00001C80U |
| Supply Upper Threshold Offset. More... | |
| #define | XSYSMONPSV_SUPPLY_TH_UPPER_VAL_RO_SHIFT 16U |
| Read-Only Format Shift. More... | |
| #define | XSYSMONPSV_SUPPLY_TH_UPPER_VAL_RO_MASK 0X00070000U |
| Read-only Format Mask. More... | |
| #define | XSYSMONPSV_SUPPLY_TH_UPPER_VAL_SHIFT 0U |
| Threhsold Value Shift. More... | |
| #define | XSYSMONPSV_SUPPLY_TH_UPPER_VAL_MASK 0X0000FFFFU |
| Threshold Value Mask. More... | |
Register: XSYSMONPSV_NEW_DATA_INT_SRC | |
| #define | XSYSMONPSV_NEW_DATA_INT_SRC 0X00001F80U |
| New Data Interrupt Supply Source. More... | |
| #define | XSYSMONPSV_INTR_NEW_DATA_MASK 0x0000F000U |
| New Data Interrupt Mask. More... | |
| #define | XSYSMONPSV_INTR_NEW_DATA_SHIFT 12U |
| New Data Interrupt Shift. More... | |
| #define | XSYSMONPSV_NEW_DATA_INT_SRC_ADDR_ID3_SHIFT 24U |
| New Data Interrupt 3 Source shift. More... | |
| #define | XSYSMONPSV_NEW_DATA_INT_SRC_ADDR_ID3_MASK 0XFF000000U |
| New Data Interrupt 3 Source Mask. More... | |
| #define | XSYSMONPSV_NEW_DATA_INT_SRC_ADDR_ID2_SHIFT 16U |
| New Data Interrupt 2 Source shift. More... | |
| #define | XSYSMONPSV_NEW_DATA_INT_SRC_ADDR_ID2_MASK 0X00FF0000U |
| New Data Interrupt 2 Source Mask. More... | |
| #define | XSYSMONPSV_NEW_DATA_INT_SRC_ADDR_ID1_SHIFT 8U |
| New Data Interrupt 1 Source shift. More... | |
| #define | XSYSMONPSV_NEW_DATA_INT_SRC_ADDR_ID1_MASK 0X0000FF00U |
| New Data Interrupt 1 Source Mask. More... | |
| #define | XSYSMONPSV_NEW_DATA_INT_SRC_ADDR_ID0_SHIFT 0U |
| New Data Interrupt 0 Source shift. More... | |
| #define | XSYSMONPSV_NEW_DATA_INT_SRC_ADDR_ID0_MASK 0X000000FFU |
| New Data Interrupt 0 Source Mask. More... | |
Register: XSYSMONPSV_ALARM_CONFIG | |
| #define | XSYSMONPSV_ALARM_CONFIG 0X00001F84U |
| Alarm Mode Config Reg. More... | |
| #define | XSYSMONPSV_ALARM_CONFIG_DEV_ALARM_MODE_SHIFT 1U |
| Device Temp Alarm Mode Shift. More... | |
| #define | XSYSMONPSV_ALARM_CONFIG_DEV_ALARM_MODE_MASK 0X00000002U |
| Device Temp Alarm Mask Shift. More... | |
| #define | XSYSMONPSV_ALARM_CONFIG_OT_ALARM_MODE_SHIFT 0U |
| OT Temp Alarm Mode Shift. More... | |
| #define | XSYSMONPSV_ALARM_CONFIG_OT_ALARM_MODE_MASK 0X00000001U |
| OT Temp Alarm. More... | |
Register: XSYSMONPSV_STATUS_RESET | |
| #define | XSYSMONPSV_STATUS_RESET 0X00001F94U |
| Status Reset Offset. More... | |
| #define | XSYSMONPSV_STATUS_RESET_SUPPLY_SHIFT 1U |
| Supply Reset Shift. More... | |
| #define | XSYSMONPSV_STATUS_RESET_SUPPLY_MASK 0X00000002U |
| Supply Reset Mask. More... | |
| #define | XSYSMONPSV_STATUS_RESET_DEVICE_TEMP_SHIFT 0U |
| Temperature Reset Mask. More... | |
| #define | XSYSMONPSV_STATUS_RESET_DEVICE_TEMP_MASK 0X00000001U |
| Temperature Reset Mask. More... | |
Register: XSYSMONPSV_EN_AVG_REG8 | |
| #define | XSYSMONPSV_EN_AVG_REG8 0X000024B4U |
| Enable Average for Temp Satellite Reg Satellite[1-32] Offset. More... | |
Register: XSYSMONPSV_EN_AVG_REG9 | |
| #define | XSYSMONPSV_EN_AVG_REG9 0X000024B8U |
| Enable Average for Temp Satellite Reg Satellite[33-64] Offset. More... | |
Register: XSYSMONPSV_TEMP_SAT | |
| #define | XSYSMONPSV_TEMP_SAT 0X00001FACU |
| Internal Temp Reg. More... | |
| #define XSYSMONPSV_ALARM_CONFIG 0X00001F84U |
Alarm Mode Config Reg.
Referenced by XSysMonPsv_SetOTMode(), and XSysMonPsv_SetTempMode().
| #define XSYSMONPSV_ALARM_CONFIG_DEV_ALARM_MODE_MASK 0X00000002U |
Device Temp Alarm Mask Shift.
Referenced by XSysMonPsv_SetTempMode().
| #define XSYSMONPSV_ALARM_CONFIG_DEV_ALARM_MODE_SHIFT 1U |
Device Temp Alarm Mode Shift.
Referenced by XSysMonPsv_SetTempMode().
| #define XSYSMONPSV_ALARM_CONFIG_OT_ALARM_MODE_MASK 0X00000001U |
OT Temp Alarm.
Referenced by XSysMonPsv_SetOTMode().
| #define XSYSMONPSV_ALARM_CONFIG_OT_ALARM_MODE_SHIFT 0U |
OT Temp Alarm Mode Shift.
Referenced by XSysMonPsv_SetOTMode().
| #define XSYSMONPSV_ALARM_FLAG0 0X00001018U |
Alarm Flag Supply[0-31] Offset.
Referenced by XSysMonPsv_ClearAlarm(), XSysMonPsv_IsAlarmCondition(), and XSysMonPsv_IsAlarmPresent().
| #define XSYSMONPSV_ALARM_FLAG1 0X0000101CU |
Alarm Flag Supply[32-63] Offset.
| #define XSYSMONPSV_ALARM_FLAG2 0X00001020U |
Alarm Flag Supply[63-95] Offset.
| #define XSYSMONPSV_ALARM_FLAG3 0X00001024U |
Alarm Flag Supply[96-127] Offset.
| #define XSYSMONPSV_ALARM_FLAG4 0X00001028U |
Alarm Flag Supply[128-159] Offset.
| #define XSYSMONPSV_ALARM_REG0 0X00001940U |
Alarm Reg Supply[0-31] Offset.
Referenced by XSysMonPsv_DisableVoltageEvents(), XSysMonPsv_EnableVoltageEvents(), XSysMonPsv_ReadAlarmConfig(), and XSysMonPsv_SetAlarmConfig().
| #define XSYSMONPSV_ALARM_REG1 0X00001944U |
Alarm Reg Supply[32-63] Offset.
| #define XSYSMONPSV_ALARM_REG2 0X00001948U |
Alarm Reg Supply[64-95] Offset.
| #define XSYSMONPSV_ALARM_REG3 0X0000194CU |
Alarm Reg Supply[96-127] Offset.
| #define XSYSMONPSV_ALARM_REG4 0X00001950U |
Alarm Reg Supply[128-159] Offset.
| #define XSYSMONPSV_AVERAGE_0_SAMPLES 0U |
No Averaging, Full sample rate.
Referenced by XSysMonPsv_GetSupplyAverageRate(), XSysMonPsv_GetTempAverageRate(), XSysMonPsv_SetSupplyAverageRate(), and XSysMonPsv_SetTempAverageRate().
| #define XSYSMONPSV_AVERAGE_16_SAMPLES 8U |
Average 16 samples, Full sample rate/16.
Referenced by XSysMonPsv_GetSupplyAverageRate(), XSysMonPsv_GetTempAverageRate(), XSysMonPsv_SetSupplyAverageRate(), and XSysMonPsv_SetTempAverageRate().
| #define XSYSMONPSV_AVERAGE_2_SAMPLES 1U |
Average 2 samples, Full sample rate/2.
Referenced by XSysMonPsv_GetSupplyAverageRate(), XSysMonPsv_GetTempAverageRate(), XSysMonPsv_SetSupplyAverageRate(), and XSysMonPsv_SetTempAverageRate().
| #define XSYSMONPSV_AVERAGE_4_SAMPLES 2U |
Average 4 samples, Full sample rate/4.
Referenced by XSysMonPsv_GetSupplyAverageRate(), XSysMonPsv_GetTempAverageRate(), XSysMonPsv_SetSupplyAverageRate(), and XSysMonPsv_SetTempAverageRate().
| #define XSYSMONPSV_AVERAGE_8_SAMPLES 4U |
Average 8 samples, Full sample rate/8.
Referenced by XSysMonPsv_GetSupplyAverageRate(), XSysMonPsv_GetTempAverageRate(), XSysMonPsv_SetSupplyAverageRate(), and XSysMonPsv_SetTempAverageRate().
| #define XSYSMONPSV_BASEADDR 0XF1270000U |
Sysmon Base Address.
| #define XSYSMONPSV_BIPOLAR_LOW_SAT 0x8000 |
Lower limit bipolar saturated val.
| #define XSYSMONPSV_BIPOLAR_UP_SAT 0x7FFF |
Upper limit bipolar saturated val.
| #define XSYSMONPSV_CONFIG0 0X00000100U |
| #define XSYSMONPSV_CONFIG0_I2C_NOT_PMBUS_MASK 0X00000200U |
I2C Select Mask.
Referenced by XSysMonPsv_SelectExtInterface().
| #define XSYSMONPSV_CONFIG0_I2C_NOT_PMBUS_SHIFT 9U |
I2C Select Shift.
Referenced by XSysMonPsv_SelectExtInterface().
| #define XSYSMONPSV_CONFIG0_PMBUS_ADDRESS_MASK 0X0000007FU |
PMBus Address Mask.
Referenced by XSysMonPsv_SetPMBusAddress().
| #define XSYSMONPSV_CONFIG0_PMBUS_ADDRESS_SHIFT 0U |
PMBus Address Shift.
| #define XSYSMONPSV_CONFIG0_PMBUS_ENABLE_MASK 0X00000080U |
PMBus Enable Mask.
Referenced by XSysMonPsv_PMBusEnable().
| #define XSYSMONPSV_CONFIG0_PMBUS_ENABLE_SHIFT 7U |
PMBus Enable Shift.
Referenced by XSysMonPsv_PMBusEnable().
| #define XSYSMONPSV_CONFIG0_PMBUS_UNRESTRICTED_MASK 0X00000100U |
Unrestrict PMBus Mask.
Referenced by XSysMonPsv_PMBusEnableCmd().
| #define XSYSMONPSV_CONFIG0_PMBUS_UNRESTRICTED_SHIFT 8U |
Unrestrict PMBus Shift.
Referenced by XSysMonPsv_PMBusEnableCmd().
| #define XSYSMONPSV_CONFIG0_SUPPLY_AVERAGE_MASK 0x0001C000U |
Supply Average Mask.
Referenced by XSysMonPsv_GetSupplyAverageRate(), and XSysMonPsv_SetSupplyAverageRate().
| #define XSYSMONPSV_CONFIG0_SUPPLY_AVERAGE_SHIFT 14U |
Supply Average Shift.
Referenced by XSysMonPsv_GetSupplyAverageRate(), and XSysMonPsv_SetSupplyAverageRate().
| #define XSYSMONPSV_CONFIG0_TEMP_AVERAGE_MASK 0x0F000000U |
Temp Average Mask.
Referenced by XSysMonPsv_GetTempAverageRate(), and XSysMonPsv_SetTempAverageRate().
| #define XSYSMONPSV_CONFIG0_TEMP_AVERAGE_SHIFT 24U |
Temp Average Shift.
Referenced by XSysMonPsv_GetTempAverageRate(), and XSysMonPsv_SetTempAverageRate().
| #define XSYSMONPSV_DEVICE_TEMP 0X00001030U |
Device Temperature Offset.
Referenced by XSysMonPsv_ReadDeviceTemp().
| #define XSYSMONPSV_DEVICE_TEMP_MAX 0X00001030U |
Max Device Temperature Offset (Only for SE1 Silicon)
Referenced by XSysMonPsv_ReadDeviceTemp(), and XSysMonPsv_TempOffset().
| #define XSYSMONPSV_DEVICE_TEMP_MIN 0X00001034U |
Min Device Temperature Offset (Only for SE1 Silicon)
Referenced by XSysMonPsv_ReadDeviceTemp().
| #define XSYSMONPSV_DEVICE_TEMP_TH 0X00001970U |
Device Temperature Threshold Falling.
Referenced by XSysMonPsv_GetTempThresholdLower(), XSysMonPsv_GetTempThresholdUpper(), XSysMonPsv_ReadDevTempThreshold(), XSysMonPsv_SetDevTempThreshold(), XSysMonPsv_SetTempThresholdLower(), and XSysMonPsv_SetTempThresholdUpper().
| #define XSYSMONPSV_DEVICE_TEMP_TH_FALLING 0X00001970U |
Device Temperature Threshold Falling.
Referenced by XSysMonPsv_TempThreshOffset().
| #define XSYSMONPSV_DEVICE_TEMP_TH_RISING 0X00001974U |
Device Temperature Threshold Rising.
Referenced by XSysMonPsv_TempThreshOffset().
| #define XSYSMONPSV_DISABLE 0U |
Disable.
| #define XSYSMONPSV_EN_AVG_REG0 0X00001958U |
Enable Average for Supply Reg Supply[0-31] Offset.
Referenced by XSysMonPsv_EnableSupplyAverage().
| #define XSYSMONPSV_EN_AVG_REG1 0X0000195CU |
Enable Average for Supply Reg Supply[32-63] Offset.
| #define XSYSMONPSV_EN_AVG_REG2 0X00001960U |
Enable Average for Supply Reg Supply[64-95] Offset.
| #define XSYSMONPSV_EN_AVG_REG3 0X00001964U |
Enable Average for Supply Reg Supply[96-127] Offset.
| #define XSYSMONPSV_EN_AVG_REG4 0X00001968U |
Enable Average for Supply Reg Supply[127-159] Offset.
| #define XSYSMONPSV_EN_AVG_REG8 0X000024B4U |
Enable Average for Temp Satellite Reg Satellite[1-32] Offset.
Referenced by XSysMonPsv_EnableTempAverage().
| #define XSYSMONPSV_EN_AVG_REG9 0X000024B8U |
Enable Average for Temp Satellite Reg Satellite[33-64] Offset.
| #define XSYSMONPSV_ENABLE 1U |
Enable.
| #define XSYSMONPSV_EXPONENT_RANGE_16 16U |
Voltage exponent val bit.
| #define XSYSMONPSV_H_ |
< prevent circular inclusions
by using protection macros
| #define XSYSMONPSV_HYSTERESIS 1U |
Hysteresis Mode.
| #define XSYSMONPSV_I2C_INTERFACE 1U |
I2C interface select.
| #define XSYSMONPSV_IDR0_ALARM0_MASK 0X00000001U |
Supply[0-31] Alarm Mask.
| #define XSYSMONPSV_IDR0_ALARM0_SHIFT 0U |
Supply[0-31] Alarm Shift.
| #define XSYSMONPSV_IDR0_ALARM1_MASK 0X00000002U |
Supply[32-63] Alarm Mask.
| #define XSYSMONPSV_IDR0_ALARM1_SHIFT 1U |
Supply[32-63] Alarm Shift.
| #define XSYSMONPSV_IDR0_ALARM2_MASK 0X00000004U |
Supply[64-95] Alarm Mask.
| #define XSYSMONPSV_IDR0_ALARM2_SHIFT 2U |
Supply[64-95] Alarm Shift.
| #define XSYSMONPSV_IDR0_ALARM3_MASK 0X00000008U |
Supply[96-127] Alarm Mask.
| #define XSYSMONPSV_IDR0_ALARM3_SHIFT 3U |
Supply[96-127] Alarm Shift.
| #define XSYSMONPSV_IDR0_ALARM4_MASK 0X00000010U |
Supply[128-159] Alarm Mask.
| #define XSYSMONPSV_IDR0_ALARM4_SHIFT 4U |
Supply[128-159] Alarm Shift.
| #define XSYSMONPSV_IDR0_NEW_DATA0_MASK 0X00001000U |
New Data 0 Mask.
| #define XSYSMONPSV_IDR0_NEW_DATA0_SHIFT 12U |
New Data 0 Shift.
| #define XSYSMONPSV_IDR0_NEW_DATA1_MASK 0X00002000U |
New Data 1 Mask.
| #define XSYSMONPSV_IDR0_NEW_DATA1_SHIFT 13U |
New Data 1 Shift.
| #define XSYSMONPSV_IDR0_NEW_DATA2_MASK 0X00004000U |
New Data 2 Mask.
| #define XSYSMONPSV_IDR0_NEW_DATA2_SHIFT 14U |
New Data 2 Shift.
| #define XSYSMONPSV_IDR0_NEW_DATA3_MASK 0X00008000U |
New Data 3 Mask.
| #define XSYSMONPSV_IDR0_NEW_DATA3_SHIFT 15U |
New Data 3 Shift.
| #define XSYSMONPSV_IDR0_OFFSET 0X00000050U |
Interrupt Disable Reg 0 Offset.
Referenced by XSysMonPsv_InterruptDisable(), and XSysMonPsv_IntrDisable().
| #define XSYSMONPSV_IDR0_OT_MASK 0X00000100U |
Device Temperature Alarm Mask.
| #define XSYSMONPSV_IDR0_OT_SHIFT 8U |
Device Temperature Alarm Shift.
| #define XSYSMONPSV_IDR0_TEMP_MASK 0X00000200U |
Device Temperature Alarm Mask.
| #define XSYSMONPSV_IDR0_TEMP_SHIFT 9U |
Device Temperature Alarm Shift.
| #define XSYSMONPSV_IDR1_ALARM0_MASK 0X00000001U |
Supply[0-31] Alarm Mask.
| #define XSYSMONPSV_IDR1_ALARM0_SHIFT 0U |
Supply[0-31] Alarm Shift.
| #define XSYSMONPSV_IDR1_ALARM1_MASK 0X00000002U |
Supply[32-63] Alarm Mask.
| #define XSYSMONPSV_IDR1_ALARM1_SHIFT 1U |
Supply[32-63] Alarm Shift.
| #define XSYSMONPSV_IDR1_ALARM2_MASK 0X00000004U |
Supply[64-95] Alarm Mask.
| #define XSYSMONPSV_IDR1_ALARM2_SHIFT 2U |
Supply[64-95] Alarm Shift.
| #define XSYSMONPSV_IDR1_ALARM3_MASK 0X00000008U |
Supply[96-127] Alarm Mask.
| #define XSYSMONPSV_IDR1_ALARM3_SHIFT 3U |
Supply[96-127] Alarm Shift.
| #define XSYSMONPSV_IDR1_ALARM4_MASK 0X00000010U |
Supply[128-159] Alarm Mask.
| #define XSYSMONPSV_IDR1_ALARM4_SHIFT 4U |
Supply[128-159] Alarm Shift.
| #define XSYSMONPSV_IDR1_NEW_DATA0_MASK 0X00001000U |
New Data 0 Mask.
| #define XSYSMONPSV_IDR1_NEW_DATA0_SHIFT 12U |
New Data 0 Shift.
| #define XSYSMONPSV_IDR1_NEW_DATA1_MASK 0X00002000U |
New Data 1 Mask.
| #define XSYSMONPSV_IDR1_NEW_DATA1_SHIFT 13U |
New Data 1 Shift.
| #define XSYSMONPSV_IDR1_NEW_DATA2_MASK 0X00004000U |
New Data 2 Mask.
| #define XSYSMONPSV_IDR1_NEW_DATA2_SHIFT 14U |
New Data 2 Shift.
| #define XSYSMONPSV_IDR1_NEW_DATA3_MASK 0X00008000U |
New Data 3 Mask.
| #define XSYSMONPSV_IDR1_NEW_DATA3_SHIFT 15U |
New Data 3 Shift.
| #define XSYSMONPSV_IDR1_OFFSET 0X0000005CU |
Interrupt Disable Reg 1 Offset.
| #define XSYSMONPSV_IDR1_OT_MASK 0X00000100U |
Device Temperature Alarm Mask.
| #define XSYSMONPSV_IDR1_OT_SHIFT 8U |
Device Temperature Alarm Shift.
| #define XSYSMONPSV_IDR1_TEMP_MASK 0X00000200U |
Device Temperature Alarm Mask.
| #define XSYSMONPSV_IDR1_TEMP_SHIFT 9U |
Device Temperature Alarm Shift.
| #define XSYSMONPSV_IER0_ALARM0_MASK 0X00000001U |
Supply[0-31] Alarm Mask.
| #define XSYSMONPSV_IER0_ALARM0_SHIFT 0U |
Supply[0-31] Alarm Shift.
| #define XSYSMONPSV_IER0_ALARM1_MASK 0X00000002U |
Supply[32-63] Alarm Mask.
| #define XSYSMONPSV_IER0_ALARM1_SHIFT 1U |
Supply[32-63] Alarm Shift.
| #define XSYSMONPSV_IER0_ALARM2_MASK 0X00000004U |
Supply[64-95] Alarm Mask.
| #define XSYSMONPSV_IER0_ALARM2_SHIFT 2U |
Supply[64-95] Alarm Shift.
| #define XSYSMONPSV_IER0_ALARM3_MASK 0X00000008U |
Supply[96-127] Alarm Mask.
| #define XSYSMONPSV_IER0_ALARM3_SHIFT 3U |
Supply[96-127] Alarm Shift.
| #define XSYSMONPSV_IER0_ALARM4_MASK 0X00000010U |
Supply[128-159] Alarm Mask.
| #define XSYSMONPSV_IER0_ALARM4_SHIFT 4U |
Supply[128-159] Alarm Shift.
| #define XSYSMONPSV_IER0_NEW_DATA0_MASK 0X00001000U |
New Data 0 Mask.
| #define XSYSMONPSV_IER0_NEW_DATA0_SHIFT 12U |
New Data 0 Shift.
| #define XSYSMONPSV_IER0_NEW_DATA1_MASK 0X00002000U |
New Data 1 Mask.
| #define XSYSMONPSV_IER0_NEW_DATA1_SHIFT 13U |
New Data 1 Shift.
| #define XSYSMONPSV_IER0_NEW_DATA2_MASK 0X00004000U |
New Data 2 Mask.
| #define XSYSMONPSV_IER0_NEW_DATA2_SHIFT 14U |
New Data 2 Shift.
| #define XSYSMONPSV_IER0_NEW_DATA3_MASK 0X00008000U |
New Data 3 Mask.
| #define XSYSMONPSV_IER0_NEW_DATA3_SHIFT 15U |
New Data 3 Shift.
| #define XSYSMONPSV_IER0_OFFSET 0X0000004CU |
Interrupt Enable 0 Offset.
Referenced by XSysMonPsv_InterruptEnable(), and XSysMonPsv_IntrEnable().
| #define XSYSMONPSV_IER0_OT_MASK 0X00000100U |
Device Temperature Alarm Mask.
| #define XSYSMONPSV_IER0_OT_SHIFT 8U |
Device Temperature Alarm Shift.
| #define XSYSMONPSV_IER0_TEMP_MASK 0X00000200U |
Device Temperature Alarm Mask.
| #define XSYSMONPSV_IER0_TEMP_SHIFT 9U |
Device Temperature Alarm Shift.
| #define XSYSMONPSV_IER1_ALARM0_MASK 0X00000001U |
Supply[0-31] Alarm Mask.
| #define XSYSMONPSV_IER1_ALARM0_SHIFT 0U |
Supply[0-31] Alarm Shift.
| #define XSYSMONPSV_IER1_ALARM1_MASK 0X00000002U |
Supply[32-63] Alarm Mask.
| #define XSYSMONPSV_IER1_ALARM1_SHIFT 1U |
Supply[32-63] Alarm Shift.
| #define XSYSMONPSV_IER1_ALARM2_MASK 0X00000004U |
Supply[64-95] Alarm Mask.
| #define XSYSMONPSV_IER1_ALARM2_SHIFT 2U |
Supply[64-95] Alarm Shift.
| #define XSYSMONPSV_IER1_ALARM3_MASK 0X00000008U |
Supply[96-127] Alarm Mask.
| #define XSYSMONPSV_IER1_ALARM3_SHIFT 3U |
Supply[96-127] Alarm Shift.
| #define XSYSMONPSV_IER1_ALARM4_MASK 0X00000010U |
Supply[128-159] Alarm Mask.
| #define XSYSMONPSV_IER1_ALARM4_SHIFT 4U |
Supply[128-159] Alarm Shift.
| #define XSYSMONPSV_IER1_NEW_DATA0_MASK 0X00001000U |
New Data 0 Mask.
| #define XSYSMONPSV_IER1_NEW_DATA0_SHIFT 12U |
New Data 0 Shift.
| #define XSYSMONPSV_IER1_NEW_DATA1_MASK 0X00002000U |
New Data 1 Mask.
| #define XSYSMONPSV_IER1_NEW_DATA1_SHIFT 13U |
New Data 1 Shift.
| #define XSYSMONPSV_IER1_NEW_DATA2_MASK 0X00004000U |
New Data 2 Mask.
| #define XSYSMONPSV_IER1_NEW_DATA2_SHIFT 14U |
New Data 2 Shift.
| #define XSYSMONPSV_IER1_NEW_DATA3_MASK 0X00008000U |
New Data 3 Mask.
| #define XSYSMONPSV_IER1_NEW_DATA3_SHIFT 15U |
New Data 3 Shift.
| #define XSYSMONPSV_IER1_OFFSET 0X00000058U |
Interrupt Enable Reg 1 Offset.
| #define XSYSMONPSV_IER1_OT_MASK 0X00000100U |
Device Temperature Alarm Mask.
| #define XSYSMONPSV_IER1_OT_SHIFT 8U |
Device Temperature Alarm Shift.
| #define XSYSMONPSV_IER1_TEMP_MASK 0X00000200U |
Device Temperature Alarm Mask.
| #define XSYSMONPSV_IER1_TEMP_SHIFT 9U |
Device Temperature Alarm Shift.
| #define XSYSMONPSV_IMR0_ALARM0_MASK 0X00000001U |
Supply[0-31] Alarm Mask.
| #define XSYSMONPSV_IMR0_ALARM0_SHIFT 0U |
Supply[0-31] Alarm Shift.
| #define XSYSMONPSV_IMR0_ALARM1_MASK 0X00000002U |
Supply[32-63] Alarm Mask.
| #define XSYSMONPSV_IMR0_ALARM1_SHIFT 1U |
Supply[32-63] Alarm Shift.
| #define XSYSMONPSV_IMR0_ALARM2_MASK 0X00000004U |
Supply[64-95] Alarm Mask.
| #define XSYSMONPSV_IMR0_ALARM2_SHIFT 2U |
Supply[64-95] Alarm Shift.
| #define XSYSMONPSV_IMR0_ALARM3_MASK 0X00000008U |
Supply[96-127] Alarm Mask.
| #define XSYSMONPSV_IMR0_ALARM3_SHIFT 3U |
Supply[96-127] Alarm Shift.
| #define XSYSMONPSV_IMR0_ALARM4_MASK 0X00000010U |
Supply[128-159] Alarm Mask.
| #define XSYSMONPSV_IMR0_ALARM4_SHIFT 4U |
Supply[128-159] Alarm Shift.
| #define XSYSMONPSV_IMR0_NEW_DATA0_MASK 0X00001000U |
New Data 0 Mask.
| #define XSYSMONPSV_IMR0_NEW_DATA0_SHIFT 12U |
New Data 0 Shift.
| #define XSYSMONPSV_IMR0_NEW_DATA1_MASK 0X00002000U |
New Data 1 Mask.
| #define XSYSMONPSV_IMR0_NEW_DATA1_SHIFT 13U |
New Data 1 Shift.
| #define XSYSMONPSV_IMR0_NEW_DATA2_MASK 0X00004000U |
New Data 2 Mask.
| #define XSYSMONPSV_IMR0_NEW_DATA2_SHIFT 14U |
New Data 2 Shift.
| #define XSYSMONPSV_IMR0_NEW_DATA3_MASK 0X00008000U |
New Data 3 Mask.
| #define XSYSMONPSV_IMR0_NEW_DATA3_SHIFT 15U |
New Data 3 Shift.
| #define XSYSMONPSV_IMR0_OFFSET 0X00000048U |
Interrupt Mask Reg 0 Offset.
Referenced by XSysMonPsv_IntrGetEnabled().
| #define XSYSMONPSV_IMR0_OT_MASK 0X00000100U |
Device Temperature Alarm Mask.
| #define XSYSMONPSV_IMR0_OT_SHIFT 8U |
Device Temperature Alarm Shift.
| #define XSYSMONPSV_IMR0_TEMP_MASK 0X00000200U |
Device Temperature Alarm Mask.
| #define XSYSMONPSV_IMR0_TEMP_SHIFT 9U |
Device Temperature Alarm Shift.
| #define XSYSMONPSV_IMR1_ALARM0_MASK 0X00000001U |
Supply[0-31] Alarm Mask.
| #define XSYSMONPSV_IMR1_ALARM0_SHIFT 0U |
Supply[0-31] Alarm Shift.
| #define XSYSMONPSV_IMR1_ALARM1_MASK 0X00000002U |
Supply[32-63] Alarm Mask.
| #define XSYSMONPSV_IMR1_ALARM1_SHIFT 1U |
Supply[32-63] Alarm Shift.
| #define XSYSMONPSV_IMR1_ALARM2_MASK 0X00000004U |
Supply[64-95] Alarm Mask.
| #define XSYSMONPSV_IMR1_ALARM2_SHIFT 2U |
Supply[64-95] Alarm Shift.
| #define XSYSMONPSV_IMR1_ALARM3_MASK 0X00000008U |
Supply[96-127] Alarm Mask.
| #define XSYSMONPSV_IMR1_ALARM3_SHIFT 3U |
Supply[96-127] Alarm Shift.
| #define XSYSMONPSV_IMR1_ALARM4_MASK 0X00000010U |
Supply[128-159] Alarm Mask.
| #define XSYSMONPSV_IMR1_ALARM4_SHIFT 4U |
Supply[128-159] Alarm Shift.
| #define XSYSMONPSV_IMR1_NEW_DATA0_MASK 0X00001000U |
New Data 0 Mask.
| #define XSYSMONPSV_IMR1_NEW_DATA0_SHIFT 12U |
New Data 0 Shift.
| #define XSYSMONPSV_IMR1_NEW_DATA1_MASK 0X00002000U |
New Data 1 Mask.
| #define XSYSMONPSV_IMR1_NEW_DATA1_SHIFT 13U |
New Data 1 Shift.
| #define XSYSMONPSV_IMR1_NEW_DATA2_MASK 0X00004000U |
New Data 2 Mask.
| #define XSYSMONPSV_IMR1_NEW_DATA2_SHIFT 14U |
New Data 2 Shift.
| #define XSYSMONPSV_IMR1_NEW_DATA3_MASK 0X00008000U |
New Data 3 Mask.
| #define XSYSMONPSV_IMR1_NEW_DATA3_SHIFT 15U |
New Data 3 Shift.
| #define XSYSMONPSV_IMR1_OFFSET 0X00000054U |
Interrupt Mask Reg 1 Offset.
| #define XSYSMONPSV_IMR1_OT_MASK 0X00000100U |
Device Temperature Alarm Mask.
| #define XSYSMONPSV_IMR1_OT_SHIFT 8U |
Device Temperature Alarm Shift.
| #define XSYSMONPSV_IMR1_TEMP_MASK 0X00000200U |
Device Temperature Alarm Mask.
| #define XSYSMONPSV_IMR1_TEMP_SHIFT 9U |
Device Temperature Alarm Shift.
| #define XSYSMONPSV_INTR_MASK 0xFFFFFFFF |
All interrupt Mask.
| #define XSYSMONPSV_INTR_NEW_DATA_MASK 0x0000F000U |
New Data Interrupt Mask.
Referenced by XSysMonPsv_SetNewDataIntSrc().
| #define XSYSMONPSV_INTR_NEW_DATA_SHIFT 12U |
New Data Interrupt Shift.
Referenced by XSysMonPsv_SetNewDataIntSrc().
| #define XSYSMONPSV_INTR_OFFSET 0xCU |
Interrupt register offset.
Referenced by XSysMonPsv_IntrDisable(), XSysMonPsv_IntrEnable(), and XSysMonPsv_IntrGetEnabled().
| #define XSYSMONPSV_INVALID 0x80000000U |
Invalid Val.
Referenced by XSysMonPsv_ClearAlarm(), XSysMonPsv_EnableSupplyAverage(), XSysMonPsv_GetSupplyAverageRate(), XSysMonPsv_GetTempAverageRate(), XSysMonPsv_IsAlarmCondition(), XSysMonPsv_IsAlarmPresent(), XSysMonPsv_IsNewData(), XSysMonPsv_ReadAlarmConfig(), XSysMonPsv_ReadDeviceTemp(), XSysMonPsv_ReadSupplyThreshold(), XSysMonPsv_ReadSupplyValue(), XSysMonPsv_SetAlarmConfig(), XSysMonPsv_SetSupplyLowerThreshold(), and XSysMonPsv_SetSupplyUpperThreshold().
| #define XSYSMONPSV_INVALID_SUPPLY 160U |
Invalid Supply.
Referenced by XSysMonPsv_ClearAlarm(), XSysMonPsv_EnableSupplyAverage(), XSysMonPsv_IsAlarmCondition(), XSysMonPsv_IsAlarmPresent(), XSysMonPsv_IsNewData(), XSysMonPsv_ReadAlarmConfig(), XSysMonPsv_ReadSupplyThreshold(), XSysMonPsv_ReadSupplyValue(), XSysMonPsv_SetAlarmConfig(), XSysMonPsv_SetSupplyLowerThreshold(), and XSysMonPsv_SetSupplyUpperThreshold().
| #define XSYSMONPSV_ISR_ALARM0_MASK 0X00000001U |
Supply[0-31] Alarm Mask.
| #define XSYSMONPSV_ISR_ALARM0_SHIFT 0U |
Supply[0-31] Alarm Shift.
| #define XSYSMONPSV_ISR_ALARM1_MASK 0X00000002U |
Supply[32-63] Alarm Mask.
| #define XSYSMONPSV_ISR_ALARM1_SHIFT 1U |
Supply[32-63] Alarm Shift.
| #define XSYSMONPSV_ISR_ALARM2_MASK 0X00000004U |
Supply[64-95] Alarm Mask.
| #define XSYSMONPSV_ISR_ALARM2_SHIFT 2U |
Supply[64-95] Alarm Shift.
| #define XSYSMONPSV_ISR_ALARM3_MASK 0X00000008U |
Supply[96-127] Alarm Mask.
| #define XSYSMONPSV_ISR_ALARM3_SHIFT 3U |
Supply[96-127] Alarm Shift.
| #define XSYSMONPSV_ISR_ALARM4_MASK 0X00000010U |
Supply[128-159] Alarm Mask.
| #define XSYSMONPSV_ISR_ALARM4_SHIFT 4U |
Supply[128-159] Alarm Shift.
| #define XSYSMONPSV_ISR_NEW_DATA0_MASK 0X00001000U |
New Data 0 Mask.
| #define XSYSMONPSV_ISR_NEW_DATA0_SHIFT 12U |
New Data 0 Shift.
| #define XSYSMONPSV_ISR_NEW_DATA1_MASK 0X00002000U |
New Data 1 Mask.
| #define XSYSMONPSV_ISR_NEW_DATA1_SHIFT 13U |
New Data 1 Shift.
| #define XSYSMONPSV_ISR_NEW_DATA2_MASK 0X00004000U |
New Data 2 Mask.
| #define XSYSMONPSV_ISR_NEW_DATA2_SHIFT 14U |
New Data 2 Shift.
| #define XSYSMONPSV_ISR_NEW_DATA3_MASK 0X00008000U |
New Data 3 Mask.
| #define XSYSMONPSV_ISR_NEW_DATA3_SHIFT 15U |
New Data 3 Shift.
| #define XSYSMONPSV_ISR_OFFSET 0X00000044U |
Interrupt Status Register Offset.
Referenced by XSysMonPsv_InterruptClear(), XSysMonPsv_InterruptGetStatus(), XSysMonPsv_IntrClear(), and XSysMonPsv_IntrGetStatus().
| #define XSYSMONPSV_ISR_OT_MASK 0X00000100U |
Device Temperature Alarm Mask.
| #define XSYSMONPSV_ISR_OT_SHIFT 8U |
Device Temperature Alarm Shift.
| #define XSYSMONPSV_ISR_TEMP_MASK 0X00000200U |
Device Temperature Alarm Mask.
| #define XSYSMONPSV_ISR_TEMP_SHIFT 9U |
Device Temperature Alarm Shift.
| #define XSYSMONPSV_LOW_SAT 0 |
Lower limit unsigned saturated val.
Referenced by XSysMonPsv_SupplyProcessedToRaw().
| #define XSYSMONPSV_LOW_SAT_SIGNED -32767 |
Lower limit signed saturated val.
Referenced by XSysMonPsv_SupplyProcessedToRaw().
| #define XSYSMONPSV_NEW_DATA_FLAG0 0X00001000U |
New Data Flag Supply[0-31] Offset.
Referenced by XSysMonPsv_IsNewData().
| #define XSYSMONPSV_NEW_DATA_FLAG1 0X00001004U |
New Data Flag Supply[32-63] Offset.
| #define XSYSMONPSV_NEW_DATA_FLAG2 0X00001008U |
New Data Flag Supply[64-95] Offset.
| #define XSYSMONPSV_NEW_DATA_FLAG3 0X0000100CU |
New Data Flag Supply[96-127] Offset.
| #define XSYSMONPSV_NEW_DATA_FLAG4 0X00001010U |
Alarm Flag Supply[128-159] Offset.
| #define XSYSMONPSV_NEW_DATA_INT_SRC 0X00001F80U |
New Data Interrupt Supply Source.
Referenced by XSysMonPsv_SetNewDataIntSrc().
| #define XSYSMONPSV_NEW_DATA_INT_SRC_ADDR_ID0_MASK 0X000000FFU |
New Data Interrupt 0 Source Mask.
| #define XSYSMONPSV_NEW_DATA_INT_SRC_ADDR_ID0_SHIFT 0U |
New Data Interrupt 0 Source shift.
| #define XSYSMONPSV_NEW_DATA_INT_SRC_ADDR_ID1_MASK 0X0000FF00U |
New Data Interrupt 1 Source Mask.
| #define XSYSMONPSV_NEW_DATA_INT_SRC_ADDR_ID1_SHIFT 8U |
New Data Interrupt 1 Source shift.
Referenced by XSysMonPsv_SetNewDataIntSrc().
| #define XSYSMONPSV_NEW_DATA_INT_SRC_ADDR_ID2_MASK 0X00FF0000U |
New Data Interrupt 2 Source Mask.
| #define XSYSMONPSV_NEW_DATA_INT_SRC_ADDR_ID2_SHIFT 16U |
New Data Interrupt 2 Source shift.
| #define XSYSMONPSV_NEW_DATA_INT_SRC_ADDR_ID3_MASK 0XFF000000U |
New Data Interrupt 3 Source Mask.
| #define XSYSMONPSV_NEW_DATA_INT_SRC_ADDR_ID3_SHIFT 24U |
New Data Interrupt 3 Source shift.
| #define XSYSMONPSV_OT_TEMP_TH 0X00001978U |
OT Temperature Threshold Base Offset.
Referenced by XSysMonPsv_GetTempThresholdLower(), XSysMonPsv_GetTempThresholdUpper(), XSysMonPsv_ReadOTTempThreshold(), XSysMonPsv_SetOTTempThreshold(), XSysMonPsv_SetTempThresholdLower(), and XSysMonPsv_SetTempThresholdUpper().
| #define XSYSMONPSV_OT_TEMP_TH_FALLING 0X00001978U |
OT Temperature Threshold Falling.
Referenced by XSysMonPsv_TempThreshOffset().
| #define XSYSMONPSV_OT_TEMP_TH_RISING 0X0000197CU |
OT Temperature Threshold Rising.
Referenced by XSysMonPsv_TempThreshOffset().
| #define XSYSMONPSV_PCSR_CONTROL 0X00000004U |
PCSR Control Reg Offset.
Referenced by XSysMonPsv_EnRegGate(), and XSysMonPsv_SystemReset().
| #define XSYSMONPSV_PCSR_CONTROL_GATEREG_MASK 0X00000002U |
PCSR Control Gate Reg Mask.
| #define XSYSMONPSV_PCSR_CONTROL_GATEREG_SHIFT 1U |
PCSR Control Gate Reg Shift.
Referenced by XSysMonPsv_EnRegGate().
| #define XSYSMONPSV_PCSR_CONTROL_SYS_RST_MASK_MASK 0X00038000U |
PCSR Control Reset Mask.
Referenced by XSysMonPsv_SystemReset().
| #define XSYSMONPSV_PCSR_CONTROL_SYS_RST_MASK_SHIFT 15U |
PCSR Control Reset Shift.
| #define XSYSMONPSV_PCSR_LOCK 0X0000000CU |
PCSR Lock Register Offset.
Referenced by XSysMonPsv_InterruptDisable(), XSysMonPsv_InterruptEnable(), and XSysMonPsv_UnlockRegspace().
| #define XSYSMONPSV_PCSR_LOCK_STATE_MASK 0X00000001U |
PCSR Lock State Mask.
| #define XSYSMONPSV_PCSR_LOCK_STATE_SHIFT 0U |
PCSR Lock State Shift.
| #define XSYSMONPSV_PCSR_MASK 0X00000000U |
Sysmon PCSR Mask Reg Offset.
Referenced by XSysMonPsv_EnRegGate(), and XSysMonPsv_SystemReset().
| #define XSYSMONPSV_PCSR_MASK_GATEREG_MASK 0X00000002U |
PCSR Mask Gate Reg Mask.
Referenced by XSysMonPsv_EnRegGate().
| #define XSYSMONPSV_PCSR_MASK_GATEREG_SHIFT 1U |
PCSR Mask Gate Reg Shift.
| #define XSYSMONPSV_PCSR_MASK_SYS_RST_MASK_MASK 0X00038000U |
PCSR Mask Reset Mask Value.
Referenced by XSysMonPsv_SystemReset().
| #define XSYSMONPSV_PCSR_MASK_SYS_RST_MASK_SHIFT 15U |
PCSR Mask Reset Shift.
| #define XSYSMONPSV_PMBUS_INTERFACE 0U |
PMBus interface select.
| #define XSYSMONPSV_QFMT_FRACTION 128 |
Q format fractional val.
| #define XSYSMONPSV_QFMT_SIGN 15U |
Q format signed bit.
| #define XSysMonPsv_ReadReg | ( | RegisterAddr | ) | Xil_In32(RegisterAddr) |
This macro reads the given register.
| RegisterAddr | Register address in the address space of the SYSMONPSV device. |
| #define XSYSMONPSV_SECURE_DEFAULT_PAYLOAD_SIZE 3U |
Secure Payload Size.
| #define XSYSMONPSV_SECURE_READ_DEFAULT 0x0 |
Secure Read Command Payload.
| #define XSYSMONPSV_SECURE_WRITE_DEFAULT 0xFFFFFFFF |
Secure Write Command Payload.
| #define XSYSMONPSV_STATUS_RESET 0X00001F94U |
Status Reset Offset.
Referenced by XSysMonPsv_StatusReset().
| #define XSYSMONPSV_STATUS_RESET_DEVICE_TEMP_MASK 0X00000001U |
Temperature Reset Mask.
| #define XSYSMONPSV_STATUS_RESET_DEVICE_TEMP_SHIFT 0U |
Temperature Reset Mask.
| #define XSYSMONPSV_STATUS_RESET_SUPPLY_MASK 0X00000002U |
Supply Reset Mask.
| #define XSYSMONPSV_STATUS_RESET_SUPPLY_SHIFT 1U |
Supply Reset Shift.
Referenced by XSysMonPsv_StatusReset().
| #define XSYSMONPSV_SUPPLY 0X00001040U |
Supply Base Register Offset.
Referenced by XSysMonPsv_ReadSupplyValue(), and XSysMonPsv_SupplyOffset().
| #define XSYSMONPSV_SUPPLY_FMT_MASK 0x00010000U |
Supply Format Mask.
Referenced by XSysMonPsv_SupplyProcessedToRaw(), and XSysMonPsv_SupplyRawToProcessed().
| #define XSYSMONPSV_SUPPLY_FMT_SHIFT 16U |
Supply Format Shift.
Referenced by XSysMonPsv_SupplyProcessedToRaw(), and XSysMonPsv_SupplyRawToProcessed().
| #define XSYSMONPSV_SUPPLY_MANTISSA_MASK 0x0000FFFFU |
Supply Mantissa Mask.
Referenced by XSysMonPsv_SupplyRawToProcessed().
| #define XSYSMONPSV_SUPPLY_MANTISSA_SIGN 15U |
Supply Mantissa Shift.
Referenced by XSysMonPsv_SupplyRawToProcessed().
| #define XSYSMONPSV_SUPPLY_MAX 0X00001640U |
Max Supply Base Register Offset.
Referenced by XSysMonPsv_ReadSupplyValue().
| #define XSYSMONPSV_SUPPLY_MIN 0X00001340U |
Min Supply Base Register Offset.
Referenced by XSysMonPsv_ReadSupplyValue().
| #define XSYSMONPSV_SUPPLY_MODE_MASK 0x00060000U |
Supply Mode Mask.
Referenced by XSysMonPsv_SupplyProcessedToRaw(), and XSysMonPsv_SupplyRawToProcessed().
| #define XSYSMONPSV_SUPPLY_MODE_SHIFT 17U |
Supply Mode Shift.
Referenced by XSysMonPsv_SupplyProcessedToRaw(), and XSysMonPsv_SupplyRawToProcessed().
| #define XSYSMONPSV_SUPPLY_TH_LOWER 0X00001980U |
Supply Lower Threshold Offset.
Referenced by XSysMonPsv_ReadSupplyThreshold(), XSysMonPsv_SetSupplyLowerThreshold(), and XSysMonPsv_SupplyThreshOffset().
| #define XSYSMONPSV_SUPPLY_TH_LOWER_VAL_MASK 0X0000FFFFU |
Threshold Value Mask.
| #define XSYSMONPSV_SUPPLY_TH_LOWER_VAL_RO_MASK 0X00070000U |
Read-only Format Mask.
| #define XSYSMONPSV_SUPPLY_TH_LOWER_VAL_RO_SHIFT 16U |
Read-Only Format Shift.
| #define XSYSMONPSV_SUPPLY_TH_LOWER_VAL_SHIFT 0U |
Threhsold Value Shift.
| #define XSYSMONPSV_SUPPLY_TH_UPPER 0X00001C80U |
Supply Upper Threshold Offset.
Referenced by XSysMonPsv_ReadSupplyThreshold(), XSysMonPsv_SetSupplyUpperThreshold(), and XSysMonPsv_SupplyThreshOffset().
| #define XSYSMONPSV_SUPPLY_TH_UPPER_VAL_MASK 0X0000FFFFU |
Threshold Value Mask.
| #define XSYSMONPSV_SUPPLY_TH_UPPER_VAL_RO_MASK 0X00070000U |
Read-only Format Mask.
| #define XSYSMONPSV_SUPPLY_TH_UPPER_VAL_RO_SHIFT 16U |
Read-Only Format Shift.
| #define XSYSMONPSV_SUPPLY_TH_UPPER_VAL_SHIFT 0U |
Threhsold Value Shift.
| #define XSYSMONPSV_TEMP_SAT 0X00001FACU |
Internal Temp Reg.
Referenced by XSysMonPsv_ReadTempProcessedSat(), and XSysMonPsv_ReadTempRawSat().
| #define XSYSMONPSV_UNIPOLAR_LOW_SAT 0x0000 |
Lower limit unipolar saturated val.
| #define XSYSMONPSV_UNIPOLAR_UP_SAT 0xFFFF |
Upper limit unipolar saturated val.
| #define XSYSMONPSV_UP_SAT 65535 |
Upper limit saturated unsigned val.
Referenced by XSysMonPsv_SupplyProcessedToRaw().
| #define XSYSMONPSV_UP_SAT_SIGNED 32767 |
Upper limit staurated signed val.
Referenced by XSysMonPsv_SupplyProcessedToRaw().
| #define XSYSMONPSV_WINDOW 0U |
Window Mode.
| #define XSysMonPsv_WriteReg | ( | RegisterAddr, | |
| Data | |||
| ) | Xil_Out32(RegisterAddr, (u32)(Data)) |
This macro writes the given register.
| RegisterAddr | Register address in the address space of the SYSMONPSV device. |
| Data | 32-bit value to write to the register. |
| s64 XSysMonPsv_CfgInitialize | ( | XSysMonPsv * | InstancePtr, |
| XSysMonPsv_Config * | CfgPtr | ||
| ) |
Initializes XSysMonPsv device/instance.
This function must be called prior to using the System Monitor device.
| InstancePtr | Pointer to the XSysMonPsv instance. |
| CfgPtr | Points to the XSysMonPsv device configuration structure. |
References XSysMonPsv_Config::BaseAddress, XSysMonPsv::Config, XSysMonPsv::IsReady, XSysMonPsv_Config::Supply_List, and XSYSMONPSV_MAX_SUPPLIES.
| int XSysMonPsv_EnableSupplyAverage | ( | XSysMonPsv * | InstancePtr, |
| XSysMonPsv_Supply | Supply, | ||
| u8 | Enable | ||
| ) |
Enables or Disables voltage supplies averaging.
| InstancePtr | Pointer to the driver instance. |
| Supply | Voltage supply. |
| Enable | Enable/Disable flag. |
References XSysMonPsv::Config, XSysMonPsv_Config::Supply_List, XSYSMONPSV_EN_AVG_REG0, XSYSMONPSV_INVALID, XSYSMONPSV_INVALID_SUPPLY, and XSysMonPsv_UpdateReg32().
| void XSysMonPsv_EnableTempAverage | ( | XSysMonPsv * | InstancePtr, |
| int | SatId, | ||
| u8 | Enable | ||
| ) |
Enables or Disables temperature satellites averaging.
| InstancePtr | Pointer to the driver instance. |
| SatId | Temperature Satellite id, indexed from 1 to 64. |
| Enable | Enable/Disable flag. |
References XSYSMONPSV_EN_AVG_REG8, and XSysMonPsv_UpdateReg32().
| void XSysMonPsv_EnRegGate | ( | XSysMonPsv * | InstancePtr, |
| u8 | Enable | ||
| ) |
Gates the register outputs.
| InstancePtr | Pointer to the XSysMonPsv instance. |
| Enable | Flag to enable or disable gate registers. |
References XSYSMONPSV_PCSR_CONTROL, XSYSMONPSV_PCSR_CONTROL_GATEREG_SHIFT, XSYSMONPSV_PCSR_MASK, XSYSMONPSV_PCSR_MASK_GATEREG_MASK, and XSysMonPsv_WriteReg32().
| int XSysMonPsv_GetSupplyAverageRate | ( | XSysMonPsv * | InstancePtr, |
| u8 * | AverageRate | ||
| ) |
Gets voltage supplies average sampling rate value.
| InstancePtr | Pointer to the driver instance. |
| AverageRate | Average Sampling Rate Value to be read. |
References XSYSMONPSV_AVERAGE_0_SAMPLES, XSYSMONPSV_AVERAGE_16_SAMPLES, XSYSMONPSV_AVERAGE_2_SAMPLES, XSYSMONPSV_AVERAGE_4_SAMPLES, XSYSMONPSV_AVERAGE_8_SAMPLES, XSYSMONPSV_CONFIG0, XSYSMONPSV_CONFIG0_SUPPLY_AVERAGE_MASK, XSYSMONPSV_CONFIG0_SUPPLY_AVERAGE_SHIFT, XSYSMONPSV_INVALID, and XSysMonPsv_ReadReg32().
| int XSysMonPsv_GetSupplyThresholdLower | ( | XSysMonPsv * | InstancePtr, |
| u32 | Supply, | ||
| u32 * | Val | ||
| ) |
Gets the lower threshold voltage for the supply.
| InstancePtr | Pointer to the driver instance. |
| Supply | Voltage supply. |
| Val | Threshold Value to be read. |
References XSYSMONPSV_EV_DIR_FALLING, XSysMonPsv_ReadReg32(), and XSysMonPsv_SupplyThreshOffset().
Referenced by SysMonPsvIntrExample().
| int XSysMonPsv_GetSupplyThresholdUpper | ( | XSysMonPsv * | InstancePtr, |
| u32 | Supply, | ||
| u32 * | Val | ||
| ) |
Gets the upper threshold voltage for the supply.
| InstancePtr | Pointer to the driver instance. |
| Supply | Voltage supply. |
| Val | Threshold Value to be read. |
References XSYSMONPSV_EV_DIR_RISING, XSysMonPsv_ReadReg32(), and XSysMonPsv_SupplyThreshOffset().
Referenced by SysMonPsvIntrExample().
| int XSysMonPsv_GetTempAverageRate | ( | XSysMonPsv * | InstancePtr, |
| u8 * | AverageRate | ||
| ) |
Gets temperature satellites average sampling rate value.
| InstancePtr | Pointer to the driver instance. |
| AverageRate | Average Sampling Rate Value to be read. |
References XSYSMONPSV_AVERAGE_0_SAMPLES, XSYSMONPSV_AVERAGE_16_SAMPLES, XSYSMONPSV_AVERAGE_2_SAMPLES, XSYSMONPSV_AVERAGE_4_SAMPLES, XSYSMONPSV_AVERAGE_8_SAMPLES, XSYSMONPSV_CONFIG0, XSYSMONPSV_CONFIG0_TEMP_AVERAGE_MASK, XSYSMONPSV_CONFIG0_TEMP_AVERAGE_SHIFT, XSYSMONPSV_INVALID, and XSysMonPsv_ReadReg32().
| int XSysMonPsv_GetTempThresholdLower | ( | XSysMonPsv * | InstancePtr, |
| XSysMonPsv_TempEvt | Event, | ||
| u32 * | Val | ||
| ) |
Gets the temperature lower threshold.
| InstancePtr | Pointer to the driver instance. |
| Event | Temp or OT event type. |
| Val | lower threshold value to be read. |
References XSYSMONPSV_DEVICE_TEMP_TH, XSYSMONPSV_OT_EVENT, XSYSMONPSV_OT_TEMP_TH, XSysMonPsv_ReadReg32(), and XSYSMONPSV_TEMP_EVENT.
Referenced by SysMonPsvIntrExample().
| int XSysMonPsv_GetTempThresholdUpper | ( | XSysMonPsv * | InstancePtr, |
| XSysMonPsv_TempEvt | Event, | ||
| u32 * | Val | ||
| ) |
Gets the temperature upper threshold.
| InstancePtr | Pointer to the driver instance. |
| Event | Temp or OT event type. |
| Val | Upper threshold value to be read. |
References XSYSMONPSV_DEVICE_TEMP_TH, XSYSMONPSV_OT_EVENT, XSYSMONPSV_OT_TEMP_TH, XSysMonPsv_ReadReg32(), and XSYSMONPSV_TEMP_EVENT.
Referenced by SysMonPsvIntrExample().
| void XSysMonPsv_IntrClear | ( | XSysMonPsv * | InstancePtr, |
| u32 | Mask | ||
| ) |
Clears the specified interrupts in the Interrupt Status Register (ISR).
| InstancePtr | Pointer to the XSysMonPsv instance. |
| Mask | 32 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.* |
References XSysMonPsv::IsReady, XSYSMONPSV_ISR_OFFSET, and XSysMonPsv_WriteReg32().
| void XSysMonPsv_IntrDisable | ( | XSysMonPsv * | InstancePtr, |
| u32 | Mask, | ||
| u8 | IntrNum | ||
| ) |
Disables the specified interrupts in the device.
| InstancePtr | Pointer to the XSysMonPsv instance. |
| Mask | 32 bit-mask of the interrupts to be enabled. Bit positions of 1 will be disabled. Bit positions of 0 will keep the previous setting. This mask is formed by OR'ing XSYSMONPSV_IDR_* bits defined in xsysmonpsv_hw.h. |
| IntrNum | Interrupt disable register to be used. |
References XSysMonPsv::IsReady, XSYSMONPSV_IDR0_OFFSET, XSYSMONPSV_INTR_OFFSET, and XSysMonPsv_WriteReg32().
| void XSysMonPsv_IntrEnable | ( | XSysMonPsv * | InstancePtr, |
| u32 | Mask, | ||
| u8 | IntrNum | ||
| ) |
Enables the specified interrupts in the device.
| InstancePtr | Pointer to the XSysMonPsv instance. |
| Mask | 32 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 XSYSMONPSV_IER_* bits defined in xsysmonpsv_hw.h. |
| IntrNum | Interrupt enable register to be used. |
References XSysMonPsv::IsReady, XSYSMONPSV_IER0_OFFSET, XSYSMONPSV_INTR_OFFSET, and XSysMonPsv_WriteReg32().
| u32 XSysMonPsv_IntrGetEnabled | ( | XSysMonPsv * | InstancePtr, |
| u8 | IntrNum | ||
| ) |
Returns the enabled interrupts read from the Interrupt Mask Register (IMR).
Use the XSYSMONPSV_IMR0_* and XSYSMONPSV_IMR1_* constants defined in xsysmonpsv_hw.h to interpret the returned value.
| InstancePtr | Pointer to the XSysMonPsv instance. |
| IntrNum | Interrupt enable register to be used |
References XSysMonPsv::IsReady, XSYSMONPSV_IMR0_OFFSET, XSYSMONPSV_INTR_OFFSET, and XSysMonPsv_ReadReg32().
| u32 XSysMonPsv_IntrGetStatus | ( | XSysMonPsv * | InstancePtr | ) |
Returns the interrupt status read from Interrupt Status Register(ISR).
Use the XSYSMONPSV_ISR* constants defined in xsysmonpsv_hw.h to interpret the returned value.
| InstancePtr | Pointer to the XSysMonPsv instance. |
References XSysMonPsv::IsReady, XSYSMONPSV_ISR_OFFSET, and XSysMonPsv_ReadReg32().
| u32 XSysMonPsv_IsAlarmCondition | ( | XSysMonPsv * | InstancePtr, |
| XSysMonPsv_Supply | Supply | ||
| ) |
Checks if the supply value has exceeded the set threshold values.
| InstancePtr | Pointer to the driver instance. |
| Supply | Enum which indicates the desired supply. |
References XSysMonPsv::Config, XSysMonPsv_Config::Supply_List, XSYSMONPSV_ALARM_FLAG0, XSYSMONPSV_INVALID, XSYSMONPSV_INVALID_SUPPLY, XSysMonPsv_ReadReg32(), and XSysMonPsv_WriteReg32().
| u32 XSysMonPsv_IsNewData | ( | XSysMonPsv * | InstancePtr, |
| XSysMonPsv_Supply | Supply | ||
| ) |
Checks if new data is available for a supply.
| InstancePtr | Pointer to the driver instance. |
| Supply | Enum which indicates the desired supply. |
References XSysMonPsv::Config, XSysMonPsv_Config::Supply_List, XSYSMONPSV_INVALID, XSYSMONPSV_INVALID_SUPPLY, XSYSMONPSV_NEW_DATA_FLAG0, XSysMonPsv_ReadReg32(), and XSysMonPsv_WriteReg32().
| XSysMonPsv_Config* XSysMonPsv_LookupConfig | ( | void | ) |
Looks for the device configuration based on the unique device ID.
The table XSysmonPsu_ConfigTable[] contains the configuration information for each device in the system.
| void XSysMonPsv_PMBusEnable | ( | XSysMonPsv * | InstancePtr, |
| u8 | Enable | ||
| ) |
Enables/disbles the PMBus on the System Monitor.
| InstancePtr | Pointer to the driver instance. |
| Enable | Value which enables or disables the PMBus. |
References XSYSMONPSV_CONFIG0, XSYSMONPSV_CONFIG0_PMBUS_ENABLE_MASK, XSYSMONPSV_CONFIG0_PMBUS_ENABLE_SHIFT, XSysMonPsv_ReadReg32(), and XSysMonPsv_WriteReg32().
| void XSysMonPsv_PMBusEnableCmd | ( | XSysMonPsv * | InstancePtr, |
| u8 | Enable | ||
| ) |
Restricts or de-restrict all PMBs commands.
| InstancePtr | Pointer to the driver instance. |
| Enable | Value which restrics or de-restrict the PMBus commands. |
References XSYSMONPSV_CONFIG0, XSYSMONPSV_CONFIG0_PMBUS_UNRESTRICTED_MASK, XSYSMONPSV_CONFIG0_PMBUS_UNRESTRICTED_SHIFT, XSysMonPsv_ReadReg32(), and XSysMonPsv_WriteReg32().
| u32 XSysMonPsv_ReadAlarmConfig | ( | XSysMonPsv * | InstancePtr, |
| XSysMonPsv_Supply | Supply | ||
| ) |
Reads the current supply Alarm Configuration.
| InstancePtr | Pointer to the driver instance. |
| Supply | Supply for which configuration is to be read. |
References XSysMonPsv::Config, XSysMonPsv_Config::Supply_List, XSYSMONPSV_ALARM_REG0, XSYSMONPSV_INVALID, XSYSMONPSV_INVALID_SUPPLY, and XSysMonPsv_ReadReg32().
| u32 XSysMonPsv_ReadDeviceTemp | ( | XSysMonPsv * | InstancePtr, |
| XSysMonPsv_Val | Value | ||
| ) |
Returns the temperature values for the device in signed Q8.7 format.
| InstancePtr | Pointer to the driver instance. |
| Value | Enum which indicates the type of temperature value to be read. |
References XSYSMONPSV_DEVICE_TEMP, XSYSMONPSV_DEVICE_TEMP_MAX, XSYSMONPSV_DEVICE_TEMP_MIN, XSYSMONPSV_INVALID, XSysMonPsv_ReadReg32(), XSYSMONPSV_VAL, XSYSMONPSV_VAL_MAX, XSYSMONPSV_VAL_MIN, XSYSMONPSV_VAL_VREF_MAX, and XSYSMONPSV_VAL_VREF_MIN.
| u16 XSysMonPsv_ReadDevTempThreshold | ( | XSysMonPsv * | InstancePtr, |
| XSysMonPsv_Threshold | ThresholdType | ||
| ) |
Returns the device temperature threshold for min and max values in signed Q8.7 format.
| InstancePtr | Pointer to the driver instance. |
| ThresholdType | Enum which indicates the type of threshold. |
References XSYSMONPSV_DEVICE_TEMP_TH, and XSysMonPsv_ReadReg32().
| u16 XSysMonPsv_ReadOTTempThreshold | ( | XSysMonPsv * | InstancePtr, |
| XSysMonPsv_Threshold | ThresholdType | ||
| ) |
Returns the OT temperature threshold for min and max values in signed Q8.7 format.
| InstancePtr | Pointer to the driver instance. |
| ThresholdType | Enum which indicates the type of threshold |
References XSYSMONPSV_OT_TEMP_TH, and XSysMonPsv_ReadReg32().
| int XSysMonPsv_ReadSupplyProcessed | ( | XSysMonPsv * | InstancePtr, |
| int | Supply, | ||
| float * | Val | ||
| ) |
Reads the voltage for the supply.
| InstancePtr | Pointer to the driver instance. |
| Supply | Voltage supply. |
| Val | Float value in Voltage. |
References XSysMonPsv_ReadReg32(), XSysMonPsv_SupplyOffset(), and XSysMonPsv_SupplyRawToProcessed().
Referenced by SysMonPsvIntrExample(), and SysMonPsvPolledExample().
| int XSysMonPsv_ReadSupplyRaw | ( | XSysMonPsv * | InstancePtr, |
| u32 | Supply, | ||
| u32 * | Val | ||
| ) |
Reads the voltage for the supply in raw.
| InstancePtr | Pointer to the driver instance. |
| Supply | Voltage supply. |
| Val | Raw voltage. |
References XSysMonPsv_ReadReg32(), and XSysMonPsv_SupplyOffset().
Referenced by SysMonPsvIntrExample().
| u32 XSysMonPsv_ReadSupplyThreshold | ( | XSysMonPsv * | InstancePtr, |
| XSysMonPsv_Supply | Supply, | ||
| XSysMonPsv_Threshold | ThresholdType | ||
| ) |
Reads the raw value for Supply Threshold.
| InstancePtr | Pointer to the driver instance. |
| Supply | Enum which indicates the desired supply to be read. |
| ThresholdType | Enum which indicates the type of threshold. |
References XSysMonPsv::Config, XSysMonPsv_Config::Supply_List, XSYSMONPSV_INVALID, XSYSMONPSV_INVALID_SUPPLY, XSysMonPsv_ReadReg32(), XSYSMONPSV_SUPPLY_TH_LOWER, XSYSMONPSV_SUPPLY_TH_UPPER, and XSYSMONPSV_TH_LOWER.
| u32 XSysMonPsv_ReadSupplyValue | ( | XSysMonPsv * | InstancePtr, |
| XSysMonPsv_Supply | Supply, | ||
| XSysMonPsv_Val | Value | ||
| ) |
Reads the raw supply value for requested.
| InstancePtr | Pointer to the driver instance. |
| Supply | Enum which indicates the desired supply to be read. |
| Value | Type of reading for the supply. |
References XSysMonPsv::Config, XSysMonPsv_Config::Supply_List, XSYSMONPSV_INVALID, XSYSMONPSV_INVALID_SUPPLY, XSysMonPsv_ReadReg32(), XSYSMONPSV_SUPPLY, XSYSMONPSV_SUPPLY_MAX, XSYSMONPSV_SUPPLY_MIN, XSYSMONPSV_VAL, and XSYSMONPSV_VAL_MIN.
| int XSysMonPsv_ReadTempProcessed | ( | XSysMonPsv * | InstancePtr, |
| XSysMonPsv_TempType | Type, | ||
| float * | Val | ||
| ) |
Reads the temperature and returns value in degree celsius.
| InstancePtr | Pointer to the driver instance. |
| Type | Minimum and maximum temperature type. |
| Val | Processed value in degree celsius. |
References XSysMonPsv_Q8P7ToCelsius(), XSysMonPsv_ReadReg32(), and XSysMonPsv_TempOffset().
Referenced by SysMonPsvIntrExample(), and SysMonPsvPolledExample().
| int XSysMonPsv_ReadTempProcessedSat | ( | XSysMonPsv * | InstancePtr, |
| int | SatId, | ||
| float * | Val | ||
| ) |
Reads the temperature of each satellite in degree celsius.
| InstancePtr | Pointer to the driver instance. |
| SatId | Satellite ID. |
| Val | Processed value. |
References XSysMonPsv_Q8P7ToCelsius(), XSysMonPsv_ReadReg32(), and XSYSMONPSV_TEMP_SAT.
| int XSysMonPsv_ReadTempRaw | ( | XSysMonPsv * | InstancePtr, |
| XSysMonPsv_TempType | Type, | ||
| u32 * | Val | ||
| ) |
Reads the temperature and returns value in raw format.
| InstancePtr | Pointer to the driver instance. |
| Type | Minimum and maximum temperature type. |
| Val | Value in raw format. |
References XSysMonPsv_ReadReg32(), and XSysMonPsv_TempOffset().
Referenced by SysMonPsvIntrExample().
| int XSysMonPsv_ReadTempRawSat | ( | XSysMonPsv * | InstancePtr, |
| int | SatId, | ||
| u32 * | Val | ||
| ) |
Reads the temperature of each satellite in raw format.
| InstancePtr | Pointer to the driver instance. |
| SatId | Satellite ID. |
| Val | Raw value. |
References XSysMonPsv_ReadReg32(), and XSYSMONPSV_TEMP_SAT.
| void XSysMonPsv_SelectExtInterface | ( | XSysMonPsv * | InstancePtr, |
| u8 | Interface | ||
| ) |
Selects I2C or PMBus interface to which traffic from SMBus is routed.
| InstancePtr | Pointer to the driver instance. |
| Interface | Value which determies where the SMBus traffic gets routed to. |
References XSYSMONPSV_CONFIG0, XSYSMONPSV_CONFIG0_I2C_NOT_PMBUS_MASK, XSYSMONPSV_CONFIG0_I2C_NOT_PMBUS_SHIFT, XSysMonPsv_ReadReg32(), and XSysMonPsv_WriteReg32().
| u32 XSysMonPsv_SetAlarmConfig | ( | XSysMonPsv * | InstancePtr, |
| XSysMonPsv_Supply | Supply, | ||
| u32 | Config | ||
| ) |
Sets the Alarm configuration for a supply.
| InstancePtr | Pointer to the driver instance. |
| Supply | Supply for which config is to be set. |
| Config | Alarm config value. XSYSMONPSV_ENABLE to enable XSYSMONPSV_DISABLE to disable |
References XSysMonPsv::Config, XSysMonPsv_Config::Supply_List, XSYSMONPSV_ALARM_REG0, XSYSMONPSV_INVALID, XSYSMONPSV_INVALID_SUPPLY, XSysMonPsv_ReadReg32(), and XSysMonPsv_WriteReg32().
| void XSysMonPsv_SetDevTempThreshold | ( | XSysMonPsv * | InstancePtr, |
| XSysMonPsv_Threshold | ThresholdType, | ||
| u16 | Value | ||
| ) |
Sets Device Temperature Threshold values.
| InstancePtr | Pointer to the driver instance. |
| ThresholdType | Enum which indicates the type of threshold. |
| Value | Raw ADC threshold value. |
References XSYSMONPSV_DEVICE_TEMP_TH, and XSysMonPsv_WriteReg32().
| void XSysMonPsv_SetNewDataIntSrc | ( | XSysMonPsv * | InstancePtr, |
| XSysMonPsv_Supply | Supply, | ||
| u32 | Mask | ||
| ) |
Sets a supply as a source new data interrupt.
| InstancePtr | Pointer to the XSysMonPsv instance. |
| Supply | Enum from the XSysMonPsv_Supply |
| Mask | 32 bit Mask for NEW_DATA_n fields in the interrupt registers |
References XSysMonPsv::Config, XSysMonPsv_Config::Supply_List, XSYSMONPSV_INTR_NEW_DATA_MASK, XSYSMONPSV_INTR_NEW_DATA_SHIFT, XSYSMONPSV_NEW_DATA_INT_SRC, XSYSMONPSV_NEW_DATA_INT_SRC_ADDR_ID1_SHIFT, XSysMonPsv_ReadReg32(), and XSysMonPsv_WriteReg32().
| void XSysMonPsv_SetOTMode | ( | XSysMonPsv * | InstancePtr, |
| u32 | Mode | ||
| ) |
Sets the alarm mode for OT alarm.
| InstancePtr | Pointer to the driver instance. |
| Mode | Sets the Hysteresis or Window mode. Mode = XSYSMONPSV_HYSTERESIS Hysteresis Mode Mode = XSYSMONPSV_WINDOW Window Mode |
References XSYSMONPSV_ALARM_CONFIG, XSYSMONPSV_ALARM_CONFIG_OT_ALARM_MODE_MASK, XSYSMONPSV_ALARM_CONFIG_OT_ALARM_MODE_SHIFT, XSysMonPsv_ReadReg32(), and XSysMonPsv_WriteReg32().
| void XSysMonPsv_SetOTTempThreshold | ( | XSysMonPsv * | InstancePtr, |
| XSysMonPsv_Threshold | ThresholdType, | ||
| u16 | Value | ||
| ) |
Sets OT Temperature Threshold values.
| InstancePtr | Pointer to the driver instance. |
| ThresholdType | Enum which indicates the type of threshold. |
| Value | Raw ADC threshold value. |
References XSYSMONPSV_OT_TEMP_TH, and XSysMonPsv_WriteReg32().
| void XSysMonPsv_SetPMBusAddress | ( | XSysMonPsv * | InstancePtr, |
| u8 | Address | ||
| ) |
Sets the PMBus address for the System Monitor.
| InstancePtr | Pointer to the device instance. |
| Address | Value at which the Sysmon will be addressed on the PMBus. |
References XSYSMONPSV_CONFIG0, XSYSMONPSV_CONFIG0_PMBUS_ADDRESS_MASK, XSysMonPsv_ReadReg32(), and XSysMonPsv_WriteReg32().
| void XSysMonPsv_SetSupplyAverageRate | ( | XSysMonPsv * | InstancePtr, |
| u8 | AverageRate | ||
| ) |
Sets voltage supplies average sampling rate value.
| InstancePtr | Pointer to the driver instance. |
| AverageRate | Average Sampling Rate Value to be set. |
References XSYSMONPSV_AVERAGE_0_SAMPLES, XSYSMONPSV_AVERAGE_16_SAMPLES, XSYSMONPSV_AVERAGE_2_SAMPLES, XSYSMONPSV_AVERAGE_4_SAMPLES, XSYSMONPSV_AVERAGE_8_SAMPLES, XSYSMONPSV_CONFIG0, XSYSMONPSV_CONFIG0_SUPPLY_AVERAGE_MASK, XSYSMONPSV_CONFIG0_SUPPLY_AVERAGE_SHIFT, and XSysMonPsv_UpdateReg32().
| u32 XSysMonPsv_SetSupplyLowerThreshold | ( | XSysMonPsv * | InstancePtr, |
| XSysMonPsv_Supply | Supply, | ||
| u32 | Value | ||
| ) |
Sets the raw value for Lower Supply Threshold.
| InstancePtr | Pointer to the driver instance. |
| Supply | Enum which indicates the desired supply to be configured. |
| Value | Lower threshold raw value. |
References XSysMonPsv::Config, XSysMonPsv_Config::Supply_List, XSYSMONPSV_INVALID, XSYSMONPSV_INVALID_SUPPLY, XSYSMONPSV_SUPPLY_TH_LOWER, and XSysMonPsv_WriteReg32().
| int XSysMonPsv_SetSupplyThresholdLower | ( | XSysMonPsv * | InstancePtr, |
| int | Supply, | ||
| u32 | Val | ||
| ) |
Sets loser threshold voltage for the supply.
| InstancePtr | Pointer to the driver instance. |
| Supply | Voltage supply. |
| Val | Threshold Value. |
References XSYSMONPSV_EV_DIR_FALLING, XSysMonPsv_SupplyThreshOffset(), and XSysMonPsv_WriteReg32().
Referenced by SysMonPsvIntrExample().
| int XSysMonPsv_SetSupplyThresholdUpper | ( | XSysMonPsv * | InstancePtr, |
| u32 | Supply, | ||
| u32 | Val | ||
| ) |
Sets the upper threshold voltage for the supply.
| InstancePtr | Pointer to the driver instance. |
| Supply | Voltage supply. |
| Val | Upper Threshold Value. |
References XSYSMONPSV_EV_DIR_RISING, XSysMonPsv_SupplyThreshOffset(), and XSysMonPsv_WriteReg32().
Referenced by SysMonPsvIntrExample().
| u32 XSysMonPsv_SetSupplyUpperThreshold | ( | XSysMonPsv * | InstancePtr, |
| XSysMonPsv_Supply | Supply, | ||
| u32 | Value | ||
| ) |
Sets the raw value for upper supply threshold.
| InstancePtr | Pointer to the driver instance. |
| Supply | Enum which indicates the desired supply to be configured |
| Value | Upper threshold raw value |
References XSysMonPsv::Config, XSysMonPsv_Config::Supply_List, XSYSMONPSV_INVALID, XSYSMONPSV_INVALID_SUPPLY, XSYSMONPSV_SUPPLY_TH_UPPER, and XSysMonPsv_WriteReg32().
| void XSysMonPsv_SetTempAverageRate | ( | XSysMonPsv * | InstancePtr, |
| u8 | AverageRate | ||
| ) |
Sets temperature satellites average sampling rate value.
| InstancePtr | Pointer to the driver instance. |
| AverageRate | Average Sampling Rate Value to be set. |
References XSYSMONPSV_AVERAGE_0_SAMPLES, XSYSMONPSV_AVERAGE_16_SAMPLES, XSYSMONPSV_AVERAGE_2_SAMPLES, XSYSMONPSV_AVERAGE_4_SAMPLES, XSYSMONPSV_AVERAGE_8_SAMPLES, XSYSMONPSV_CONFIG0, XSYSMONPSV_CONFIG0_TEMP_AVERAGE_MASK, XSYSMONPSV_CONFIG0_TEMP_AVERAGE_SHIFT, and XSysMonPsv_UpdateReg32().
| void XSysMonPsv_SetTempMode | ( | XSysMonPsv * | InstancePtr, |
| u32 | Mode | ||
| ) |
Sets the alarm mode for temperature alarms.
| InstancePtr | Pointer to the driver instance. |
| Mode | Sets the Hysteresis or window mode. Mode = 1 Hysteresis Mode Mode = 0 Window Mode |
References XSYSMONPSV_ALARM_CONFIG, XSYSMONPSV_ALARM_CONFIG_DEV_ALARM_MODE_MASK, XSYSMONPSV_ALARM_CONFIG_DEV_ALARM_MODE_SHIFT, XSysMonPsv_ReadReg32(), and XSysMonPsv_WriteReg32().
Referenced by SysMonPsvIntrExample().
| int XSysMonPsv_SetTempThresholdLower | ( | XSysMonPsv * | InstancePtr, |
| XSysMonPsv_TempEvt | Event, | ||
| u32 | Val | ||
| ) |
Sets the temperature lower threshold.
| InstancePtr | Pointer to the driver instance. |
| Event | Temp or OT event type. |
| Val | Threshold value to be set. |
References XSYSMONPSV_DEVICE_TEMP_TH, XSYSMONPSV_OT_EVENT, XSYSMONPSV_OT_TEMP_TH, XSYSMONPSV_TEMP_EVENT, and XSysMonPsv_WriteReg32().
Referenced by SysMonPsvIntrExample().
| int XSysMonPsv_SetTempThresholdUpper | ( | XSysMonPsv * | InstancePtr, |
| XSysMonPsv_TempEvt | Event, | ||
| u32 | Val | ||
| ) |
Sets the temperature upper threshold.
| InstancePtr | Pointer to the driver instance. |
| Event | Temp or OT event type |
| Val | Threshold value to be set. |
References XSYSMONPSV_DEVICE_TEMP_TH, XSYSMONPSV_OT_EVENT, XSYSMONPSV_OT_TEMP_TH, XSYSMONPSV_TEMP_EVENT, and XSysMonPsv_WriteReg32().
Referenced by SysMonPsvIntrExample().
| 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.
| InstancePtr | Pointer to the driver instance. |
| ResetSupply | Resets the MIN and MAX values reached by the internal supplies since the last reset. |
| ResetTemperature | Resets the MIN and MAX values reached by the device since the last reset. |
References XSYSMONPSV_STATUS_RESET, XSYSMONPSV_STATUS_RESET_SUPPLY_SHIFT, and XSysMonPsv_WriteReg32().
| void XSysMonPsv_SystemReset | ( | XSysMonPsv * | InstancePtr | ) |
Resets the SystemMonitor.
| InstancePtr | Pointer to the XSysMonPsv instance. |
References XSYSMONPSV_PCSR_CONTROL, XSYSMONPSV_PCSR_CONTROL_SYS_RST_MASK_MASK, XSYSMONPSV_PCSR_MASK, XSYSMONPSV_PCSR_MASK_SYS_RST_MASK_MASK, and XSysMonPsv_WriteReg32().
| int XSysMonPsv_Xilpm_Init | ( | XSysMonPsv * | Instanceptr, |
| XScuGic *const | GicInst, | ||
| XIpiPsu *const | IpiInst | ||
| ) |
Initializes the XIL PM.
| Instanceptr | Pointer to the XSysMonPsv instance. |
| GicInst | Pointer to XScuGic. |
| IpiInst | Pointer to XIpiPsu. |
| XSysMonPsv_Config XSysMonPsv_ConfigTable[] |
Config Table for sysmon device.