BASIS 2 Driver 0.1.0
API reference
Loading...
Searching...
No Matches
Public Member Functions | Public Attributes | Friends | List of all members
alicat_basis2::StatusFlags Struct Reference

Status flags of a data frame or of Modbus register 2101 (M p.10, p.21). More...

#include <alicat_basis2_types.hpp>

Public Member Functions

constexpr bool AnyFault () const noexcept
 

Public Attributes

bool mass_flow_over {false}
 MOV, Modbus +1.
 
bool temperature_over {false}
 TOV, Modbus +2.
 
bool totalizer_over {false}
 OVR, Modbus +4.
 
bool valve_hold {false}
 HLD, Modbus +8: valve held by the user (an override, not a fault).
 
bool valve_thermal {false}
 VTM, Modbus +16: thermal management (an override, not a fault).
 
uint8_t unknown_count {0}
 Flag tokens or bits the manual does not list.
 

Friends

constexpr bool operator== (const StatusFlags &, const StatusFlags &)=default
 Hidden-friend equality.
 

Detailed Description

Status flags of a data frame or of Modbus register 2101 (M p.10, p.21).

Member Function Documentation

◆ AnyFault()

constexpr bool alicat_basis2::StatusFlags::AnyFault ( ) const
inlineconstexprnoexcept
Returns
true for MOV, TOV or OVR, the three conditions the manual calls errors (M p.5).

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