SFM Flow Meter Driver 1.0.0
API reference
Loading...
Searching...
No Matches
Public Member Functions | Public Attributes | List of all members
sfm::StatusWord Struct Reference

Decoded status word (data sheet §4.3.2, Table 5). More...

#include <sfm_types.hpp>

Public Member Functions

constexpr uint8_t command_nibble () const noexcept
 
constexpr bool exponential_smoothing () const noexcept
 
constexpr bool fixed_n_averaging () const noexcept
 
constexpr uint16_t gas_fraction_permille () const noexcept
 
constexpr bool pure_gas () const noexcept
 

Public Attributes

uint16_t raw {0}
 

Detailed Description

Decoded status word (data sheet §4.3.2, Table 5).

bits 15:12 — index of the running start command (0b0000 O2 … 0b1000 CO2/O2), bit 11 — exponential smoothing active (avg-until-read idle > 64 ms), bit 10 — fixed-N averaging active, bits 9:0 — gas fraction (‰) or 0x3FF for pure gas.

Member Function Documentation

◆ command_nibble()

constexpr uint8_t sfm::StatusWord::command_nibble ( ) const
inlineconstexprnoexcept

◆ exponential_smoothing()

constexpr bool sfm::StatusWord::exponential_smoothing ( ) const
inlineconstexprnoexcept

◆ fixed_n_averaging()

constexpr bool sfm::StatusWord::fixed_n_averaging ( ) const
inlineconstexprnoexcept

◆ gas_fraction_permille()

constexpr uint16_t sfm::StatusWord::gas_fraction_permille ( ) const
inlineconstexprnoexcept

◆ pure_gas()

constexpr bool sfm::StatusWord::pure_gas ( ) const
inlineconstexprnoexcept

Member Data Documentation

◆ raw

uint16_t sfm::StatusWord::raw {0}

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