Functions | |
| float32_t | mtb_pmbus_lin11_to_float (uint16_t linear_11) |
| Converts the argument "linear11" to floating point and returns it. More... | |
| uint16_t | mtb_pmbus_float_to_lin11 (float32_t float_var) |
| Takes the argument "floatvar" (a floating point number) and converts it to a 16-bit LINEAR11 value (11-bit mantissa + 5-bit exponent), which it returns. More... | |
| float32_t | mtb_pmbus_lin16_to_float (uint16_t linear_16, int8_t int_exp) |
| Converts the argument "linear16" to floating point and returns it. More... | |
| uint16_t | mtb_pmbus_float_to_lin16 (float32_t float_var, int8_t out_exp) |
| Takes the argument "floatvar" (a floating point number) and converts it to a 16-bit LINEAR16 value (16-bit mantissa), which it returns. More... | |
| float32_t mtb_pmbus_lin11_to_float | ( | uint16_t | linear_11 | ) |
Converts the argument "linear11" to floating point and returns it.
| linear_11 | A number in LINEAR11 format |
| uint16_t mtb_pmbus_float_to_lin11 | ( | float32_t | float_var | ) |
Takes the argument "floatvar" (a floating point number) and converts it to a 16-bit LINEAR11 value (11-bit mantissa + 5-bit exponent), which it returns.
| float_var | A floating point number |
| float32_t mtb_pmbus_lin16_to_float | ( | uint16_t | linear_16, |
| int8_t | int_exp | ||
| ) |
Converts the argument "linear16" to floating point and returns it.
| linear_16 | The 16-bit mantissa of a LINEAR16 number |
| int_exp | The 5-bit exponent of a LINEAR16 number. Packed in the lower 5 bits. 2's Complement. |
| uint16_t mtb_pmbus_float_to_lin16 | ( | float32_t | float_var, |
| int8_t | out_exp | ||
| ) |
Takes the argument "floatvar" (a floating point number) and converts it to a 16-bit LINEAR16 value (16-bit mantissa), which it returns.
| float_var | A floating point number to be converted to LINEAR16 |
| out_exp | User provided 5-bit exponent to use in the conversion. |