|
M5Unit-WEIGHT 0.1.1 git rev:97a7989
|
Measurement data group. More...
#include <unit_WeightI2C.hpp>
Public Member Functions | |
| float | weight () const |
| Get the measured weight as a floating-point value. | |
| int32_t | iweight () const |
| Get the measured weight as an integer value multiplied by 100. | |
Public Attributes | |
| std::array< uint8_t, 4 > | raw {} |
| True if the payload should be interpreted with weight() | |
| bool | is_float {} |
Measurement data group.
|
inline |
Get the measured weight as an integer value multiplied by 100.
is_float is false, otherwise INT32_MIN
|
inline |
Get the measured weight as a floating-point value.
is_float is true, otherwise NaN | std::array<uint8_t, 4> m5::unit::weighti2c::Data::raw {} |
True if the payload should be interpreted with weight()
RAW data