STAR
Cal STAR — firmware, DAQ server, and engine design
Loading...
Searching...
No Matches
Config.cpp File Reference
#include "config/Config.hpp"
#include <algorithm>
#include <iostream>
#include <stdexcept>
#include <toml++/toml.hpp>
Include dependency graph for Config.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::detail
namespace  fsw::config::anonymous_namespace{Config.cpp}

Typedefs

using fsw::config::anonymous_namespace{Config.cpp}::CNV = toml::node_view<const toml::node>

Functions

std::vector< T7Board > fsw::config::detail::parse_t7_boards (const toml::table &root, std::vector< std::string > &errors)
std::string fsw::config::anonymous_namespace{Config.cpp}::s_or (CNV n, const std::string &d)
int64_t fsw::config::anonymous_namespace{Config.cpp}::i_or (CNV n, int64_t d)
double fsw::config::anonymous_namespace{Config.cpp}::d_or (CNV n, double d)
bool fsw::config::anonymous_namespace{Config.cpp}::b_or (CNV n, bool d)
void fsw::config::anonymous_namespace{Config.cpp}::check_board_slots (std::map< ActiveBoardKind, std::map< uint8_t, std::string > > &slot_owner, ActiveBoardKind kind, uint8_t slot, const std::string &section, int board_id)
ActiveBoardKind fsw::config::kind_of (const std::string &type_str)
 [boards.
BoardConfig fsw::config::anonymous_namespace{Config.cpp}::parse_board (const std::string &section, const toml::table &bt)
void fsw::config::anonymous_namespace{Config.cpp}::validate_environmental_boards (const Config &cfg)
Config fsw::config::anonymous_namespace{Config.cpp}::from_table (const toml::table &t)
Config fsw::config::load (const std::string &path)
 Parse config.toml.
Config fsw::config::load_from_string (const std::string &text)
 Parse config from an in-memory TOML string (SequencerService / ActuatorCommander hold it so).
std::map< ActiveBoardKind, std::vector< elodin::BoardChannels > > fsw::config::active_boards (const Config &cfg)
 Derive the active-board table (enabled boards -> Elodin BoardChannels), with the same slot-collision validation the old load_active_boards() logged.
std::map< uint8_t, PtBoardConfig > fsw::config::pt_boards (const Config &cfg)
 Derive PT board 4-20 mA parameters keyed by Elodin slot (mirrors old load_pt_boards()).