M5Unit-INFRARED 0.1.0 git rev:aed3018
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
 
float objectTemperature () const
 
int16_t ambient () const
 
float ambientTemperature () const
 
int16_t compensated_object () const
 
float compensatedObjectTemperature () const
 
int16_t presence () const
 
int16_t motion () const
 
int16_t ambient_shock () const
 
bool isPresence () const
 
bool isMotion () const
 
bool isAmbientShock () const
 

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