STAR
Cal STAR — firmware, DAQ server, and engine design
Loading...
Searching...
No Matches
SensorTables.cpp File Reference
Include dependency graph for SensorTables.cpp:

Go to the source code of this file.

Namespaces

namespace  fsw
 Motorized ball valve position: raw ADC counts -> % open.
namespace  fsw::config
namespace  fsw::config::anonymous_namespace{SensorTables.cpp}

Functions

std::string fsw::config::board_key_of (const BoardConfig &b)
 The board's section name minus a leading "boards.", e.g.
PtRoleRef fsw::config::anonymous_namespace{SensorTables.cpp}::makeRef (const BoardConfig &b, std::string board_key, std::string role, int channel)
 Fill in the derived half of a ref once board/role/channel are known.
bool fsw::config::anonymous_namespace{SensorTables.cpp}::usablePtBoard (const BoardConfig &b)
 The boards a PT role can live on.
PtRoleRef fsw::config::anonymous_namespace{SensorTables.cpp}::makeT7Ref (const T7Board &b, const T7Channel &c)
 A PT input on a LabJack T7: calibration_service publishes it on the T7 calibrated table in the same CalibratedPTMessage layout as an ESP32 PT, so a reader cannot tell them apart.
std::vector< PtRoleRef > fsw::config::anonymous_namespace{SensorTables.cpp}::t7PtRefs (const Config &cfg)
 Every PT input t7_bridge will actually stream.
std::vector< PtRoleRef > fsw::config::pt_role_tables (const Config &cfg)
 Every PT sensor role declared by an enabled PT board, in board-declaration order, then every PT input on an enabled LabJack T7 (none while the T7 config has errors, as t7_bridge then refuses to stream).
std::optional< PtRoleRef > fsw::config::find_pt_role (const Config &cfg, const std::string &role)
 Resolve one role by its canonical config name.