REDAC HybridController
Firmware for LUCIDAC/REDAC Teensy
|
Loading...
Searching...
No Matches
cblock.cpp
Go to the documentation of this file.
27FLASHMEM const std::array<float, blocks::CBlock::NUM_COEFF> &blocks::CBlock::get_factors() const {
41FLASHMEM void blocks::CBlock::set_factors(const std::array<float, NUM_COEFF> &factors) { factors_ = factors; }
76FLASHMEM const std::array<float, blocks::CBlock::NUM_COEFF> &blocks::CBlock::get_gain_corrections() const {
84FLASHMEM void blocks::CBlock::set_gain_corrections(const std::array<float, NUM_COEFF> &corrections) {
88FLASHMEM bool blocks::CBlock::set_gain_correction(const uint8_t coeff_idx, const float correction) {
161FLASHMEM blocks::CBlock *blocks::CBlock::from_entity_classifier(entities::EntityClassifier classifier,
184blocks::CBlockHAL_Common::make_f_coeffs(bus::addr_t block_address, std::array<const uint8_t, 32> f_coeffs_cs) {
Definition cblock.h:32
Definition cblock.h:39
CBlockHAL_Common(bus::addr_t block_address, std::array< const uint8_t, 32 > f_coeffs_cs)
Definition cblock.cpp:219
static std::array< const functions::AD5452, 32 > make_f_coeffs(bus::addr_t block_address, std::array< const uint8_t, 32 > f_coeffs_cs)
Definition cblock.cpp:184
bool write_factor(uint8_t idx, float value) override
Definition cblock.cpp:223
Definition cblock.h:60
CBlockHAL_V_1_0_X(bus::addr_t block_address)
Definition cblock.cpp:242
Definition cblock.h:55
CBlockHAL_V_1_1_X(bus::addr_t block_address)
Definition cblock.cpp:231
Definition cblock.h:27
The Lucidac Coefficient Block (C-Block) is represented by this class.
Definition cblock.h:83
void config_self_to_json(JsonObject &cfg) override
Serialize the configuration of this entity to a JsonObject.
Definition cblock.cpp:153
void set_factors(const std::array< float, NUM_COEFF > &factors)
Definition cblock.cpp:41
const std::array< float, NUM_COEFF > & get_gain_corrections() const
Definition cblock.cpp:76
const std::array< float, NUM_COEFF > & get_factors() const
Definition cblock.cpp:27
bool set_gain_correction(uint8_t coeff_idx, const float correction)
Definition cblock.cpp:88
utils::status config_self_from_json(JsonObjectConst cfg) override
Deserialize a new configuration for this entity from a JsonObject.
Definition cblock.cpp:98
void set_gain_corrections(const std::array< float, NUM_COEFF > &corrections)
Definition cblock.cpp:84
float get_gain_correction(uint8_t idx) const
Definition cblock.cpp:70
utils::status _config_elements_form_json(const JsonVariantConst &cfg)
Definition cblock.cpp:114
static CBlock * from_entity_classifier(entities::EntityClassifier classifier, bus::addr_t block_address)
Definition cblock.cpp:161
metadata::eui_t get_entity_eui() const override
Definition cblock.cpp:21
A function block represents one module in a cluster, such as an M-Block, C-Block, I-Block or U-Block.
Definition base.h:29
The AD5452 is the 12-Bit Multiplying DAC, used in the C-Block (one AD5452 per lane).
Definition AD5452.h:16
A recoverable error, inspired from https://abseil.io/docs/cpp/guides/status and https://github....
Definition error.h:35
constexpr addr_t replace_function_idx(addr_t address, uint8_t func_idx)
Definition bus.h:88
Definition base.h:101
static constexpr uint8_t CALIBRATION_RESET
Definition base.h:103