STAR
Cal STAR — firmware, DAQ server, and engine design
Loading...
Searching...
No Matches
LoadActiveBoards.cpp
Go to the documentation of this file.
2
3#include "config/Config.hpp"
4
5// The board parsing + slot-collision validation now lives in Config.cpp (active_boards/pt_boards),
6// fed by the single toml++ parser. These free functions remain as thin wrappers so their existing
7// callers (daq_bridge, calibration_service, sequencer_service) need no change.
8
9namespace fsw {
10namespace config {
11
12std::map<ActiveBoardKind, std::vector<elodin::BoardChannels>> load_active_boards(
13 const std::string& config_path) {
14 return active_boards(load(config_path));
15}
16
17std::map<uint8_t, PtBoardConfig> load_pt_boards(const std::string& config_path) {
18 return pt_boards(load(config_path));
19}
20
21} // namespace config
22} // namespace fsw
std::map< ActiveBoardKind, std::vector< elodin::BoardChannels > > load_active_boards(const std::string &config_path)
Parse [boards.
std::map< uint8_t, PtBoardConfig > load_pt_boards(const std::string &config_path)
Parse the PT boards' sensor interface and 4-20 mA conversion parameters, keyed by Elodin slot.
std::map< uint8_t, PtBoardConfig > pt_boards(const Config &cfg)
Derive PT board 4-20 mA parameters keyed by Elodin slot (mirrors old load_pt_boards()).
Definition Config.cpp:496
std::map< ActiveBoardKind, std::vector< elodin::BoardChannels > > active_boards(const Config &cfg)
Derive the active-board table (enabled boards -> Elodin BoardChannels), with the same slot-collision ...
Definition Config.cpp:468
Config load(const std::string &path)
Parse config.toml.
Definition Config.cpp:442
Motorized ball valve position: raw ADC counts -> % open.