|
SFM Flow Meter Driver 1.0.0
API reference
|
Flow-meter types: families, gases, variants, readings, status word, results. More...
Go to the source code of this file.
Classes | |
| struct | sfm::DriverResult< T > |
| struct | sfm::DriverResult< void > |
| struct | sfm::ProductInfo |
| Product identifier + 8-byte serial number (data sheet §4.3.9). More... | |
| struct | sfm::Scaling |
| Scale factor / offset / unit for one gas lookup table (data sheet §4.3.6). More... | |
| struct | sfm::StatusWord |
| Decoded status word (data sheet §4.3.2, Table 5). More... | |
| struct | sfm::Measurement |
| One continuous-mode sample (data sheet §4.3.1 read frame). More... | |
Namespaces | |
| namespace | sfm |
Functions | |
| constexpr std::string_view | sfm::ToString (DriverError e) noexcept |
| constexpr std::string_view | sfm::ToString (Family f) noexcept |
| constexpr std::string_view | sfm::ToString (Gas g) noexcept |
| constexpr uint16_t | sfm::StartCommandFor (Family family, Gas g) noexcept |
Start-measurement command code for g on family. | |
| constexpr bool | sfm::IsMixture (Gas g) noexcept |
| constexpr std::string_view | sfm::ToString (Variant v) noexcept |
| constexpr Family | sfm::FamilyOf (Variant v) noexcept |
| Family of a known variant (Sf06 for Unknown — the caller's assumption). | |
| constexpr Variant | sfm::VariantFromProductId (uint32_t product_id) noexcept |
| Decode a 32-bit product identifier. | |
| constexpr float | sfm::FullScaleSlm (Variant v) noexcept |
| Full-scale Air / O2 flow [slm] for a known variant (0 when unknown). | |
| constexpr bool | sfm::SupportsGas (Variant v, Gas g) noexcept |
Whether a variant carries a factory calibration for g. | |
| constexpr bool | sfm::GasNeedsKnownFamily (Gas g) noexcept |
True when g's start code differs between families (needs a known variant). | |
| constexpr bool | sfm::StatusNibbleIsKnown (Family family, uint8_t nibble) noexcept |
Whether nibble (status bits 15:12) names a start command of family. | |
| constexpr Gas | sfm::GasFromStatusNibble (Family family, uint8_t nibble) noexcept |
| Map the status command nibble back onto a gas selector (per family). | |
| constexpr Gas | sfm::GasFromStatusNibble (Variant variant, uint8_t nibble) noexcept |
| Variant-aware status decode: as the family overload, except that on the SFM3013-300-CLM nibble 2 is HeOx and 7 is HeOx/O2. | |
Flow-meter types: families, gases, variants, readings, status word, results.
Two Sensirion families share framing and CRC but not gas codes: