STAR
Cal STAR — firmware, DAQ server, and engine design
Loading...
Searching...
No Matches
T7Config.cpp File Reference
#include "config/T7Config.hpp"
#include <arpa/inet.h>
#include <algorithm>
#include <cmath>
#include <map>
#include <set>
#include <toml++/toml.hpp>
Include dependency graph for T7Config.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::detail::anonymous_namespace{T7Config.cpp}

Functions

double fsw::config::detail::anonymous_namespace{T7Config.cpp}::interchannel_delay_us (double range_v, int res)
bool fsw::config::detail::anonymous_namespace{T7Config.cpp}::is_ipv4 (const std::string &s)
std::string fsw::config::detail::anonymous_namespace{T7Config.cpp}::at (const std::string &section, int idx)
std::vector< std::string > fsw::config::detail::anonymous_namespace{T7Config.cpp}::stream_limit_issues (const T7Board &b)
std::vector< T7Board > fsw::config::detail::parse_t7_boards (const toml::table &root, std::vector< std::string > &errors)

Variables

constexpr double fsw::config::detail::anonymous_namespace{T7Config.cpp}::kRanges [] = {10.0, 1.0, 0.1, 0.01}
const std::set< std::string > fsw::config::detail::anonymous_namespace{T7Config.cpp}::kKinds = {"PT", "TC", "LC", "RTD", "VOLTAGE"}
const std::set< std::string > fsw::config::detail::anonymous_namespace{T7Config.cpp}::kTcTypes = {"K"}
const std::set< std::string > fsw::config::detail::anonymous_namespace{T7Config.cpp}::kPtSignals = {"0-5V", "0.5-4.5V", "1-5V", "0-10V", "4-20mA"}
constexpr double fsw::config::detail::anonymous_namespace{T7Config.cpp}::kMaxAggregateSamplesPerS = 100000.0
constexpr int fsw::config::detail::anonymous_namespace{T7Config.cpp}::kMaxStreamResolutionIndex = 8
constexpr double fsw::config::detail::anonymous_namespace{T7Config.cpp}::kSingleAddressMaxHz [8] = {100000, 48000, 22000, 11000, 5500, 2500, 1200, 600}