SFM_FLOW_METER Driver 0.1.0
API reference
Loading...
Searching...
No Matches
Public Attributes | List of all members
sfm::Sample Struct Reference

One measurement. Flow is in millilitres per minute at the part's reference conditions. More...

#include <sfm_flow_meter_types.hpp>

Public Attributes

int32_t flow_raw {0}
 As received, after the CRC: 16, 24 bits, or 14 bits in 16.
 
int32_t flow_ml_per_min {0}
 Round-to-nearest of (raw - offset) * 1000 / scale.
 
int32_t flow2_ml_per_min {0}
 Sf06Dual: the oxygen channel; 0 otherwise.
 
int32_t temperature_mdegc {0}
 
uint32_t timestamp_us {0}
 NowUs() at the read; 0 without a clock.
 
uint16_t status {0}
 The raw status word; 0 unless has_status.
 
uint16_t o2_permille {0}
 Oxygen fraction of a mixture, in per mille.
 
Gas gas {Gas::Air}
 The running gas.
 
bool pure_gas {true}
 The running measurement is a pure gas.
 
bool settled {false}
 The warm-up time has passed (false without a clock).
 
bool smoothed {false}
 Status bit 11: exponential smoothing took over.
 
bool has_temperature {false}
 temperature_mdegc is valid.
 
bool has_flow2 {false}
 flow2_ml_per_min is valid.
 
bool has_status {false}
 status is valid.
 
bool out_of_range {false}
 

Detailed Description

One measurement. Flow is in millilitres per minute at the part's reference conditions.

Member Data Documentation

◆ out_of_range

bool sfm::Sample::out_of_range {false}

RangePolicy::Flag only: the flow is outside the part's span.

◆ temperature_mdegc

int32_t sfm::Sample::temperature_mdegc {0}

Milli-degrees Celsius of the temperature the frame carries; 0 unless has_temperature.


The documentation for this struct was generated from the following file: