STAR
Cal STAR — firmware, DAQ server, and engine design
Loading...
Searching...
No Matches
LoadActiveBoards.hpp File Reference
#include <cstdint>
#include <map>
#include <string>
#include <vector>
#include "elodin/DatabaseConfig.hpp"
Include dependency graph for LoadActiveBoards.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  fsw::config::PtBoardConfig
 Per-board 4-20 mA conversion parameters, keyed by Elodin slot (board_number). More...

Namespaces

namespace  fsw
 Motorized ball valve position: raw ADC counts -> % open.
namespace  fsw::config

Enumerations

enum class  fsw::config::ActiveBoardKind : uint8_t {
  fsw::config::PT , fsw::config::LC , fsw::config::TC , fsw::config::RTD ,
  fsw::config::ACTUATOR , fsw::config::ENCODER , fsw::config::ENVIRONMENTAL , fsw::config::BALL_VALVE ,
  fsw::config::UNKNOWN
}
 Board kinds from [boards. More...
enum class  fsw::config::PtInterface : uint8_t { fsw::config::RATIOMETRIC_0_5V , fsw::config::CURRENT_LOOP_4_20MA , fsw::config::ABSOLUTE_0_5V }
 Sensor interface of a PT board, declared by pt_type in its [boards. More...

Functions

bool fsw::config::is_current_loop (const PtBoardConfig &b)
 True when this board's channels convert through the 4-20 mA current-loop path.
std::map< ActiveBoardKind, std::vector< elodin::BoardChannels > > fsw::config::load_active_boards (const std::string &config_path)
 Parse [boards.
std::map< uint8_t, PtBoardConfig > fsw::config::load_pt_boards (const std::string &config_path)
 Parse the PT boards' sensor interface and 4-20 mA conversion parameters, keyed by Elodin slot.