M5Unit-INFRARED 0.1.1 git rev:238d2a7
Loading...
Searching...
No Matches
m5::unit::sths34pf80::Data Struct Reference

Measurement data group. More...

#include <unit_STHS34PF80.hpp>

Public Member Functions

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.
 

Public Attributes

std::array< uint8_t, 13 > raw {}
 
uint16_t sensitivity {}
 Sensitivity value (NOT RAW)
 

Static Public Attributes

static constexpr uint8_t PRES_FLAG {0x04}
 
static constexpr uint8_t MOT_FLAG {0x02}
 
static constexpr uint8_t TAMB_SHOCK_FLAG {0x01}
 

Detailed Description

Measurement data group.

Member Data Documentation

◆ 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