Measurement data group.
More...
#include <unit_STHS34PF80.hpp>
|
|
int16_t | object () const |
| | TOBJECT raw value.
|
| |
|
float | objectTemperature () const |
| | Object temperature (degrees Celsius)
|
| |
|
int16_t | ambient () const |
| | TAMBIENT raw value.
|
| |
|
float | ambientTemperature () const |
| | Ambient temperature (degrees Celsius)
|
| |
|
int16_t | compensated_object () const |
| | TOBJ_COMP raw value (Disabled if wide mode)
|
| |
|
float | compensatedObjectTemperature () const |
| | Compensated object temperature (degrees Celsius)
|
| |
|
int16_t | presence () const |
| | TPRESENCE raw value.
|
| |
|
int16_t | motion () const |
| | TMOTION raw value.
|
| |
|
int16_t | ambient_shock () const |
| | TAMB_SHOCK raw value.
|
| |
|
bool | isPresence () const |
| | Presence detection flag.
|
| |
|
bool | isMotion () const |
| | Motion detection flag.
|
| |
|
bool | isAmbientShock () const |
| | Ambient shock detection flag.
|
| |
|
| std::array< uint8_t, 13 > | raw {} |
| |
|
uint16_t | sensitivity {} |
| | Sensitivity value (NOT RAW)
|
| |
|
|
static constexpr uint8_t | PRES_FLAG {0x04} |
| | Presence detection flag (bit in raw[12])
|
| |
|
static constexpr uint8_t | MOT_FLAG {0x02} |
| | Motion detection flag (bit in raw[12])
|
| |
|
static constexpr uint8_t | TAMB_SHOCK_FLAG {0x01} |
| | Ambient temperature shock flag (bit in raw[12])
|
| |
◆ raw
| std::array<uint8_t, 13> m5::unit::sths34pf80::Data::raw {} |
Raw data
| From | To | Description |
| 0 | 1 | TOBJECT |
| 2 | 3 | TAMBIENT |
| 4 | 5 | TOBJ_COMP (Disabled if wide mode) |
| 6 | 7 | TPRESENCE |
| 8 | 9 | TMOTION |
| 10 | 11 | TAMB_SHOCK |
| 12 | 12 | Detection flags |