REDAC HybridController
Firmware for LUCIDAC/REDAC Teensy
Loading...
Searching...
No Matches

#include <mblock_int.h>

Inheritance diagram for blocks::MIntBlock_V_1_1_X:
Collaboration diagram for blocks::MIntBlock_V_1_1_X:

Public Member Functions

 MIntBlock_V_1_1_X (SLOT slot, MIntBlockHAL_V_1_1_X *hardware)
 
utils::status write_to_hardware () override
 
void reset (entities::ResetAction action) override
 
const std::array< IntegratorCalibration, NUM_INTEGRATORS > & get_calibration () const
 
blocks::IntegratorCalibration get_calibration (uint8_t int_idx) const
 
utils::status write_calibration_to_hardware ()
 
status calibrate (platform::Cluster *cluster, carrier::Carrier *carrier) override
 
ConfigResult config (const pb_Config &cfg) override
 

Protected Member Functions

status _gain_calibration (bool use_slow_integration)
 

Protected Attributes

MIntBlockHAL_V_1_1_Xhardware
 
std::array< IntegratorCalibration, NUM_INTEGRATORS > calibration {}
 
std::bitset< NUM_INTEGRATORS > _limiters_enabled {}
 

Detailed Description

Definition at line 60 of file mblock_int.h.

Constructor & Destructor Documentation

◆ MIntBlock_V_1_1_X()

blocks::MIntBlock_V_1_1_X::MIntBlock_V_1_1_X ( SLOT slot,
blocks::MIntBlockHAL_V_1_1_X * hardware )

Definition at line 210 of file mblock_int.cpp.

References hardware.

Member Function Documentation

◆ _gain_calibration()

status blocks::MIntBlock_V_1_1_X::_gain_calibration ( bool use_slow_integration)
protected

◆ calibrate()

status blocks::MIntBlock_V_1_1_X::calibrate ( platform::Cluster * cluster,
carrier::Carrier * carrier )
override

Definition at line 96 of file mblock_int.cpp.

References _gain_calibration(), _limiters_enabled, success, and write_to_hardware().

◆ config()

ConfigResult blocks::MIntBlock_V_1_1_X::config ( const pb_Config & cfg)
override

Definition at line 213 of file mblock_int.cpp.

References _limiters_enabled, and config().

Referenced by config().

◆ get_calibration() [1/2]

const std::array< blocks::IntegratorCalibration, blocks::MIntBlock_V_1_1_X::NUM_INTEGRATORS > & blocks::MIntBlock_V_1_1_X::get_calibration ( ) const
nodiscard

Definition at line 63 of file mblock_int.cpp.

References calibration.

◆ get_calibration() [2/2]

blocks::IntegratorCalibration blocks::MIntBlock_V_1_1_X::get_calibration ( uint8_t int_idx) const
nodiscard

Definition at line 67 of file mblock_int.cpp.

References calibration.

◆ reset()

void blocks::MIntBlock_V_1_1_X::reset ( entities::ResetAction action)
override

Definition at line 49 of file mblock_int.cpp.

References _limiters_enabled, and calibration.

◆ write_calibration_to_hardware()

status blocks::MIntBlock_V_1_1_X::write_calibration_to_hardware ( )

Definition at line 142 of file mblock_int.cpp.

References calibration, and hardware.

Referenced by write_to_hardware().

◆ write_to_hardware()

status blocks::MIntBlock_V_1_1_X::write_to_hardware ( )
nodiscardoverride

Definition at line 73 of file mblock_int.cpp.

References _limiters_enabled, hardware, and write_calibration_to_hardware().

Referenced by calibrate().

Member Data Documentation

◆ _limiters_enabled

std::bitset<NUM_INTEGRATORS> blocks::MIntBlock_V_1_1_X::_limiters_enabled {}
protected

Definition at line 79 of file mblock_int.h.

Referenced by calibrate(), config(), reset(), and write_to_hardware().

◆ calibration

std::array<IntegratorCalibration, NUM_INTEGRATORS> blocks::MIntBlock_V_1_1_X::calibration {}
protected

◆ hardware

MIntBlockHAL_V_1_1_X* blocks::MIntBlock_V_1_1_X::hardware
protected

The documentation for this class was generated from the following files: