Lines Matching full:exponent
50 * exponent.
57 * exponent. The exponent is not stored within the two bytes.
101 * - Linear format: value is an exponent
134 * - 5-bit two's complement exponent value stored in the two bytes
141 // extract exponent from most significant 5 bits in convertFromLinear()
147 // sign extend exponent in convertFromLinear()
159 int8_t exponent = static_cast<int8_t>(exponentField); in convertFromLinear() local
162 // compute value as mantissa * 2^(exponent) in convertFromLinear()
163 double decimal = mantissa * std::pow(2.0, exponent); in convertFromLinear()
173 * - 5-bit signed exponent value that is not stored in the two bytes
176 * @param exponent exponent value obtained from VOUT_MODE or device
180 inline double convertFromVoutLinear(uint16_t value, int8_t exponent) in convertFromVoutLinear() argument
182 // compute value as mantissa * 2^(exponent) in convertFromVoutLinear()
183 double decimal = value * std::pow(2.0, exponent); in convertFromVoutLinear()
193 * - 5-bit signed exponent value that is not stored in the two bytes
195 * The exponent value is typically obtained from the PMBus VOUT_MODE command
202 * @param exponent 5-bit signed exponent used to convert value
205 inline uint16_t convertToVoutLinear(double volts, int8_t exponent) in convertToVoutLinear() argument
207 // Obtain mantissa using equation 'mantissa = volts / 2^exponent' in convertToVoutLinear()
208 double mantissa = volts / std::pow(2.0, static_cast<double>(exponent)); in convertToVoutLinear()