|
STAR
Cal STAR — firmware, DAQ server, and engine design
|
Every PT / LC / TC input on every enabled T7, from config. More...
#include <T7Calibration.hpp>
Public Member Functions | |
| T7CalibrationMap ()=default | |
| T7CalibrationMap (const config::Config &cfg) | |
| const T7CalChannel * | by_uid (uint16_t uid) const |
| const T7CalChannel * | by_table (uint8_t slot, uint8_t ain) const |
| The input behind raw table {0x26, (slot-1)*0x20 + ain}, or nullptr. | |
| const std::vector< T7CalChannel > & | all () const |
| std::vector< uint8_t > | tc_slots () const |
| Slots with at least one TC (they publish a cold-junction table). | |
| std::vector< std::pair< uint8_t, uint8_t > > | raw_tables () const |
| Raw tables calibration_service subscribes to: every input above, plus each TC slot's CJC. | |
| bool | empty () const |
Private Attributes | |
| std::vector< T7CalChannel > | channels_ |
| std::map< uint16_t, size_t > | by_uid_ |
| std::map< std::pair< uint8_t, uint8_t >, size_t > | by_table_ |
Every PT / LC / TC input on every enabled T7, from config.
VOLTAGE inputs are left out (they have nothing to calibrate). Built only from a config t7_bridge would accept: when Config::t7_errors is non-empty the map is empty, because the bridge is not streaming either.
Definition at line 68 of file T7Calibration.hpp.
|
default |
|
explicit |
Definition at line 37 of file T7Calibration.cpp.
References b, by_table_, by_uid_, channels_, fsw::t7::t7_logical_channel(), and fsw::t7::t7_uid().
|
inline |
Definition at line 76 of file T7Calibration.hpp.
References channels_.
| const T7CalChannel * fsw::t7::T7CalibrationMap::by_table | ( | uint8_t | slot, |
| uint8_t | ain ) const |
| const T7CalChannel * fsw::t7::T7CalibrationMap::by_uid | ( | uint16_t | uid | ) | const |
|
inline |
Definition at line 83 of file T7Calibration.hpp.
References channels_.
| std::vector< std::pair< uint8_t, uint8_t > > fsw::t7::T7CalibrationMap::raw_tables | ( | ) | const |
Raw tables calibration_service subscribes to: every input above, plus each TC slot's CJC.
Definition at line 80 of file T7Calibration.cpp.
References channels_, fsw::t7::cjc_table_id(), fsw::t7::table_id(), and tc_slots().
| std::vector< uint8_t > fsw::t7::T7CalibrationMap::tc_slots | ( | ) | const |
Slots with at least one TC (they publish a cold-junction table).
Definition at line 72 of file T7Calibration.cpp.
References channels_.
Referenced by raw_tables().
|
private |
Definition at line 90 of file T7Calibration.hpp.
Referenced by by_table(), and T7CalibrationMap().
|
private |
Definition at line 89 of file T7Calibration.hpp.
Referenced by by_uid(), and T7CalibrationMap().
|
private |
Definition at line 88 of file T7Calibration.hpp.
Referenced by all(), by_table(), by_uid(), empty(), raw_tables(), T7CalibrationMap(), and tc_slots().