Home
last modified time | relevance | path

Searched refs:pwmMax (Results 1 – 2 of 2) sorted by relevance

/openbmc/dbus-sensors/src/
H A DPwmSensor.cpp55 pwmMax = psuPwmMax; in PwmSensor()
59 pwmMax = sysPwmMax; in PwmSensor()
65 pwmValue = static_cast<uint32_t>(pwmMax * (defaultPwm / 100.0)); in PwmSensor()
68 double fValue = 100.0 * (static_cast<double>(pwmValue) / pwmMax); in PwmSensor()
85 double reqValue = (req / 100.0) * pwmMax; in PwmSensor()
86 double respValue = (resp / 100.0) * pwmMax; in PwmSensor()
102 double currScaled = (curVal / 100.0) * pwmMax; in PwmSensor()
109 100.0 * (static_cast<double>(getInt) / pwmMax); in PwmSensor()
137 auto roundValue = std::round(scaledValue * pwmMax); in PwmSensor()
147 auto scaledValue = static_cast<double>(getInt) / pwmMax; in PwmSensor()
H A DPwmSensor.hpp28 double pwmMax; member in PwmSensor