|
RMM API 2.0.0
|
Class for managing power monitoring and temperature sensing on the RMM FPGA. More...
#include <RMMRails.h>

Public Member Functions | |
| RMMRails (RMMRegisterAccess &RMMRegs) | |
| Constructor of the RMMRails. | |
| double | getTemperature () |
| Gets the temperature of the RMM FPGA. | |
| rmmStatus | enablePowerMonitoring (int interval_ms) |
| Enables the internal state machine to start reading out the Voltage, Current, and Power of various power rails on the VCU118. | |
| rmmStatus | disablePowerMonitoring () |
| Disables the internal state machine that reads out the power rail information. | |
| rmmStatus | getPowerVoltageCurrent (float voltageTolerancePercent, PowerResultsMap *result) |
| Gets the power, voltage, and current for all INA226 sensors on the VCU118. | |
Public Attributes | |
| RMMLog | rmmLog |
| Log handler for RMMRails messages. | |
Class for managing power monitoring and temperature sensing on the RMM FPGA.
The RMMRails class provides methods for enabling and disabling power monitoring, retrieving temperature readings, and accessing power, voltage, and current data for various power rails.
| RMMRails::RMMRails | ( | RMMRegisterAccess & | RMMRegs | ) |
Constructor of the RMMRails.
Initializes the RMMRails instance with a reference to an RMMRegisterAccess object for interacting with hardware registers. It also initializes the logging system and sets internal flags for power monitoring.
| RMMRegs | Reference to an RMMRegisterAccess instance for register access. |
| rmmStatus RMMRails::disablePowerMonitoring | ( | ) |
Disables the internal state machine that reads out the power rail information.
| rmmStatus RMMRails::enablePowerMonitoring | ( | int | interval_ms | ) |
Enables the internal state machine to start reading out the Voltage, Current, and Power of various power rails on the VCU118.
| interval_ms | interval between updates. |
| rmmStatus RMMRails::getPowerVoltageCurrent | ( | float | voltageTolerancePercent, |
| PowerResultsMap * | result ) |
Gets the power, voltage, and current for all INA226 sensors on the VCU118.
Internal power monitoring must be enabled first using enablePowerMonitoring(interval_ms) to set the internal polling interval.
| voltageTolerancePercent | Percent tolerance of voltage from expected values (default = 1.0). |
| result | Pointer to a PowerResultsMap that will be filled with power, voltage, and current data for all sensors. |
| double RMMRails::getTemperature | ( | ) |
Gets the temperature of the RMM FPGA.