|
STAR
Cal STAR — firmware, DAQ server, and engine design
|
#include <array>#include <cstdint>#include <map>#include <optional>#include <string>#include <vector>#include "config/Config.hpp"Go to the source code of this file.
Classes | |
| struct | fsw::t7::T7CalChannel |
| One T7 input as calibration sees it. More... | |
| class | fsw::t7::T7CalibrationMap |
| Every PT / LC / TC input on every enabled T7, from config. More... | |
Namespaces | |
| namespace | fsw |
| Motorized ball valve position: raw ADC counts -> % open. | |
| namespace | fsw::t7 |
Functions | |
| uint8_t | fsw::t7::t7_logical_channel (uint8_t slot, uint8_t ain) |
| Logical calibration channel for a T7 input. | |
| uint16_t | fsw::t7::t7_uid (int board_id, int ain) |
| uid of a T7 input: board_id * 100 + ain, the ESP32 scheme with the AIN as connector. | |
| int32_t | fsw::t7::t7_counts (double volts) |
| The calibration "ADC code" for a T7 reading: microvolts, rounded and clamped to int32. | |
| double | fsw::t7::t7_volts (double counts) |
| Volts from a calibration code. | |
| std::array< uint8_t, 2 > | fsw::t7::cjc_table_id (uint8_t slot) |
| Cold-junction table id for a slot. | |
Variables | |
| constexpr uint8_t | fsw::t7::kCjcTableOffset = 0x0F |
| Raw-table offset (within a slot's 32-entry block) of the cold-junction table: AIN15 does not exist on a T7, so the slot is free. | |
| constexpr uint8_t | fsw::t7::kT7LogicalBase = 128 |
| First logical calibration channel for T7 inputs. | |