sarmfsw: SMFSW Toolbox (for ARM & compatible with Arduino platform) 3.7
SMFSW collection of miscellaneous functions & macros (for ARM & compatible with Arduino platform)
|
Temperature conversion inlines. More...
Macros | |
#define | M_5_9 (5.0 / 9.0) |
5/9 constant approximation | |
#define | M_9_5 (9.0 / 5.0) |
9/5 constant approximation | |
Functions | |
float | celsius2kelvin (const float cel) |
Convert degrees Celsius to Kelvin. | |
float | kelvin2celsius (const float kel) |
Convert degrees Kelvin to Celsius. | |
float | celsius2fahrenheit (const float cel) |
Convert degrees Celsius to Fahrenheit. | |
float | fahrenheit2celsius (const float fah) |
Convert degrees Fahrenheit to Celsius. | |
float | fahrenheit2kelvin (const float fah) |
Convert degrees Fahrenheit to Kelvin. | |
float | kelvin2fahrenheit (const float kel) |
Convert degrees Kelvin to Fahrenheit. | |
Temperature conversion inlines.
#define M_5_9 (5.0 / 9.0) |
5/9 constant approximation
#define M_9_5 (9.0 / 5.0) |
9/5 constant approximation
|
inline |
Convert degrees Celsius to Fahrenheit.
[in] | cel | - Celsius degrees value |
|
inline |
Convert degrees Celsius to Kelvin.
[in] | cel | - Celsius degrees value |
|
inline |
Convert degrees Fahrenheit to Celsius.
[in] | fah | - Fahrenheit degrees value |
|
inline |
Convert degrees Fahrenheit to Kelvin.
[in] | fah | - Fahrenheit degrees value |
|
inline |
Convert degrees Kelvin to Celsius.
[in] | kel | - Kelvin degrees value |
|
inline |
Convert degrees Kelvin to Fahrenheit.
[in] | kel | - Kelvin degrees value |