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

Scale factor / offset / unit for one gas lookup table (data sheet §4.3.6). More...

#include <sfm_types.hpp>

Public Member Functions

constexpr float FullScaleFlow () const noexcept
 Full-scale flow in the device unit (SFx6000; 0 when not reported).
 
constexpr float ToFlow (int16_t raw) const noexcept
 raw → flow in the device unit (slm for SFM4300).
 

Public Attributes

int16_t scale {1}
 counts per flow unit (SFM4300: 1000 per slm)
 
int16_t offset {0}
 counts at zero flow (SFM4300: −28672)
 
uint16_t unit {0}
 unit code (SFM4300: 0x0148 = slm @ 20 °C)
 
int16_t full_scale_raw {0}
 SFx6000 only: full-scale flow, raw counts.
 
uint16_t gas_id {0}
 SFx6000 only: SEMI gas ID.
 
bool valid {false}
 

Detailed Description

Scale factor / offset / unit for one gas lookup table (data sheet §4.3.6).

Member Function Documentation

◆ FullScaleFlow()

constexpr float sfm::Scaling::FullScaleFlow ( ) const
inlineconstexprnoexcept

Full-scale flow in the device unit (SFx6000; 0 when not reported).

◆ ToFlow()

constexpr float sfm::Scaling::ToFlow ( int16_t  raw) const
inlineconstexprnoexcept

raw → flow in the device unit (slm for SFM4300).

Member Data Documentation

◆ full_scale_raw

int16_t sfm::Scaling::full_scale_raw {0}

SFx6000 only: full-scale flow, raw counts.

◆ gas_id

uint16_t sfm::Scaling::gas_id {0}

SFx6000 only: SEMI gas ID.

◆ offset

int16_t sfm::Scaling::offset {0}

counts at zero flow (SFM4300: −28672)

◆ scale

int16_t sfm::Scaling::scale {1}

counts per flow unit (SFM4300: 1000 per slm)

◆ unit

uint16_t sfm::Scaling::unit {0}

unit code (SFM4300: 0x0148 = slm @ 20 °C)

◆ valid

bool sfm::Scaling::valid {false}

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