STAR
Cal STAR — firmware, DAQ server, and engine design
Loading...
Searching...
No Matches
fsw::config::Config Struct Reference

The whole parsed config.toml, restricted to what C++ consumes. More...

#include <Config.hpp>

Collaboration diagram for fsw::config::Config:
[legend]

Public Member Functions

const std::map< std::string, int > * sensor_roles_for (const std::string &board_key) const
 [sensor_roles_<board>] with a legacy [sensor_roles] fallback.
const std::map< std::string, std::string > * calibration_model_for (const std::string &section_key) const
 [calibration_model_<board>] role->model map, or nullptr when absent/empty.
const std::map< std::string, double > * full_scale_for (const std::string &section_key) const
 [calibration_full_scale_<board>] role->PSI map, or nullptr when absent/empty.
const std::map< std::string, double > * sense_resistor_for (const std::string &section_key) const
 [calibration_sense_resistor_<board>] role->Ω map, or nullptr when absent/empty.
const std::map< std::string, double > * sensitivity_for (const std::string &section_key) const
 [calibration_sensitivity_<board>] role->mV/V map, or nullptr when absent/empty.
const std::map< std::string, double > * pga_gain_for (const std::string &section_key) const
 [calibration_pga_<board>] role->gain map, or nullptr when absent/empty.

Public Attributes

NetworkConfig network
DatabaseConfig database
ServerHeartbeatConfig server_heartbeat
HeartbeatServiceConfig heartbeat_service
LogsConfig logs
fsw::time::TimeSyncConfig time_sync
uint32_t config_broadcast_interval_ms = 1000
std::vector< BoardConfig > boards
std::vector< T7Board > t7_boards
std::vector< std::string > t7_errors
std::map< std::string, ActuatorRole > actuator_roles
FireConfig fire
FlowConfig flow
ControllerServiceConfig controller_service
ControllerConfig controller
ActuatorServiceConfig actuator_service
CalibrationConfig calibration
StateMachinePaths state_machine
std::vector< StateDef > states
std::map< std::string, std::map< std::string, int > > sensor_roles
std::map< std::string, double > abort_pts
std::map< std::string, std::map< std::string, std::string > > calibration_models
std::map< std::string, std::map< std::string, double > > calibration_full_scale
std::map< std::string, std::map< std::string, double > > calibration_sense_resistor
std::map< std::string, std::map< std::string, double > > calibration_sensitivity
std::map< std::string, std::map< std::string, double > > calibration_pga_gain

Detailed Description

The whole parsed config.toml, restricted to what C++ consumes.

Definition at line 264 of file Config.hpp.

Member Function Documentation

◆ calibration_model_for()

const std::map< std::string, std::string > * Config::calibration_model_for ( const std::string & section_key) const

[calibration_model_<board>] role->model map, or nullptr when absent/empty.

Definition at line 405 of file Config.cpp.

References calibration_models.

Referenced by main().

◆ full_scale_for()

const std::map< std::string, double > * Config::full_scale_for ( const std::string & section_key) const

[calibration_full_scale_<board>] role->PSI map, or nullptr when absent/empty.

Definition at line 413 of file Config.cpp.

References calibration_full_scale.

Referenced by main().

◆ pga_gain_for()

const std::map< std::string, double > * Config::pga_gain_for ( const std::string & section_key) const

[calibration_pga_<board>] role->gain map, or nullptr when absent/empty.

Definition at line 435 of file Config.cpp.

References calibration_pga_gain.

Referenced by main().

◆ sense_resistor_for()

const std::map< std::string, double > * Config::sense_resistor_for ( const std::string & section_key) const

[calibration_sense_resistor_<board>] role->Ω map, or nullptr when absent/empty.

Definition at line 420 of file Config.cpp.

References calibration_sense_resistor.

Referenced by main().

◆ sensitivity_for()

const std::map< std::string, double > * Config::sensitivity_for ( const std::string & section_key) const

[calibration_sensitivity_<board>] role->mV/V map, or nullptr when absent/empty.

Definition at line 428 of file Config.cpp.

References calibration_sensitivity.

Referenced by main().

◆ sensor_roles_for()

const std::map< std::string, int > * Config::sensor_roles_for ( const std::string & board_key) const

[sensor_roles_<board>] with a legacy [sensor_roles] fallback.

Definition at line 395 of file Config.cpp.

References sensor_roles.

Referenced by main().

Member Data Documentation

◆ abort_pts

std::map<std::string, double> fsw::config::Config::abort_pts

Definition at line 289 of file Config.hpp.

Referenced by fsw::config::anonymous_namespace{Config.cpp}::from_table(), and main().

◆ actuator_roles

std::map<std::string, ActuatorRole> fsw::config::Config::actuator_roles

◆ actuator_service

ActuatorServiceConfig fsw::config::Config::actuator_service

◆ boards

std::vector<BoardConfig> fsw::config::Config::boards

◆ calibration

CalibrationConfig fsw::config::Config::calibration

Definition at line 284 of file Config.hpp.

Referenced by fsw::config::anonymous_namespace{Config.cpp}::from_table(), and main().

◆ calibration_full_scale

std::map<std::string, std::map<std::string, double> > fsw::config::Config::calibration_full_scale

◆ calibration_models

std::map<std::string, std::map<std::string, std::string> > fsw::config::Config::calibration_models

◆ calibration_pga_gain

std::map<std::string, std::map<std::string, double> > fsw::config::Config::calibration_pga_gain

◆ calibration_sense_resistor

std::map<std::string, std::map<std::string, double> > fsw::config::Config::calibration_sense_resistor

◆ calibration_sensitivity

std::map<std::string, std::map<std::string, double> > fsw::config::Config::calibration_sensitivity

◆ config_broadcast_interval_ms

uint32_t fsw::config::Config::config_broadcast_interval_ms = 1000

◆ controller

◆ controller_service

ControllerServiceConfig fsw::config::Config::controller_service

◆ database

DatabaseConfig fsw::config::Config::database

◆ fire

FireConfig fsw::config::Config::fire

◆ flow

FlowConfig fsw::config::Config::flow

◆ heartbeat_service

HeartbeatServiceConfig fsw::config::Config::heartbeat_service

◆ logs

◆ network

NetworkConfig fsw::config::Config::network

◆ sensor_roles

std::map<std::string, std::map<std::string, int> > fsw::config::Config::sensor_roles

◆ server_heartbeat

ServerHeartbeatConfig fsw::config::Config::server_heartbeat

◆ state_machine

StateMachinePaths fsw::config::Config::state_machine

◆ states

std::vector<StateDef> fsw::config::Config::states

◆ t7_boards

std::vector<T7Board> fsw::config::Config::t7_boards

◆ t7_errors

std::vector<std::string> fsw::config::Config::t7_errors

◆ time_sync

fsw::time::TimeSyncConfig fsw::config::Config::time_sync

The documentation for this struct was generated from the following files:
  • daq-server/diablo_server/lib/include/config/Config.hpp
  • daq-server/diablo_server/lib/src/config/Config.cpp