|
roo_transceivers
API Documentation for roo_transceivers
|
Measurement of a quantity at a specific time. More...
#include <measurement.h>
Public Member Functions | |
| Measurement () | |
| bool | isInitial () const |
| Returns true if this is the initial/empty measurement. | |
| bool | isDefined () const |
| Returns true if quantity and value are defined. | |
| Measurement (roo_transceivers_Quantity quantity, roo_time::Uptime time, float value=nanf("")) | |
| roo_transceivers_Quantity | quantity () const |
| Returns the quantity type. | |
| roo_time::Uptime | time () const |
| Returns the measurement timestamp. | |
| float | value () const |
| Returns the measurement value. | |
| bool | isUnknown () const |
| Returns true if value is unknown (NaN). | |
Measurement of a quantity at a specific time.
Definition at line 11 of file measurement.h.
|
inline |
Definition at line 13 of file measurement.h.
|
inline |
Definition at line 27 of file measurement.h.
|
inline |
Returns true if quantity and value are defined.
Definition at line 22 of file measurement.h.
References quantity_, and roo_transceivers_Quantity_kUnspecifiedQuantity.
|
inline |
Returns true if this is the initial/empty measurement.
Definition at line 19 of file measurement.h.
References time_micros_.
|
inline |
Returns true if value is unknown (NaN).
Definition at line 46 of file measurement.h.
|
inline |
Returns the quantity type.
Definition at line 35 of file measurement.h.
References quantity_.
Referenced by roo_transceivers::Multiverse::read().
|
inline |
Returns the measurement timestamp.
Definition at line 38 of file measurement.h.
References time_micros_.
|
inline |
Returns the measurement value.
Definition at line 43 of file measurement.h.
| roo_transceivers_Quantity roo_transceivers::Measurement::quantity_ |
Definition at line 50 of file measurement.h.
Referenced by isDefined(), and quantity().
| uint64_t roo_transceivers::Measurement::time_micros_ |
Definition at line 51 of file measurement.h.
Referenced by isInitial(), and time().