Home
last modified time | relevance | path

Searched refs:convertFromLinear (Results 1 – 3 of 3) sorted by relevance

/openbmc/phosphor-power/phosphor-regulators/test/
H A Dpmbus_utils_tests.cpp154 EXPECT_DOUBLE_EQ(pmbus_utils::convertFromLinear(value), 0.0077972412109375); in TEST()
159 EXPECT_DOUBLE_EQ(pmbus_utils::convertFromLinear(value), 65536); in TEST()
164 EXPECT_DOUBLE_EQ(pmbus_utils::convertFromLinear(value), -2048); in TEST()
169 EXPECT_DOUBLE_EQ(pmbus_utils::convertFromLinear(value), 0.49951171875); in TEST()
174 EXPECT_DOUBLE_EQ(pmbus_utils::convertFromLinear(value), 1); in TEST()
179 EXPECT_DOUBLE_EQ(pmbus_utils::convertFromLinear(value), 4); in TEST()
184 EXPECT_DOUBLE_EQ(pmbus_utils::convertFromLinear(value), 7.5); in TEST()
189 EXPECT_DOUBLE_EQ(pmbus_utils::convertFromLinear(value), 0); in TEST()
194 EXPECT_DOUBLE_EQ(pmbus_utils::convertFromLinear(value), -16); in TEST()
/openbmc/phosphor-power/phosphor-regulators/src/
H A Dpmbus_utils.hpp139 inline double convertFromLinear(uint16_t value) in convertFromLinear() function
/openbmc/phosphor-power/phosphor-regulators/src/actions/
H A Dpmbus_read_sensor_action.cpp48 sensorValue = pmbus_utils::convertFromLinear(value); in execute()