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 ()
 
bool calibrate (platform::Cluster *cluster, carrier::Carrier *carrier) override
 

Protected Member Functions

bool _gain_calibration (bool use_slow_integration)
 

Protected Attributes

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

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 200 of file mblock_int.cpp.

Member Function Documentation

◆ _gain_calibration()

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

◆ calibrate()

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

Definition at line 79 of file mblock_int.cpp.

References success.

◆ get_calibration() [1/2]

FLASHMEM 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 61 of file mblock_int.cpp.

◆ get_calibration() [2/2]

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

Definition at line 65 of file mblock_int.cpp.

◆ reset()

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

Definition at line 50 of file mblock_int.cpp.

References calibration.

◆ write_calibration_to_hardware()

FLASHMEM utils::status blocks::MIntBlock_V_1_1_X::write_calibration_to_hardware ( )

Definition at line 129 of file mblock_int.cpp.

◆ write_to_hardware()

FLASHMEM utils::status blocks::MIntBlock_V_1_1_X::write_to_hardware ( )
nodiscardoverride

Definition at line 71 of file mblock_int.cpp.

Member Data Documentation

◆ calibration

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

Definition at line 76 of file mblock_int.h.

Referenced by reset().

◆ hardware

MIntBlockHAL_V_1_1_X* blocks::MIntBlock_V_1_1_X::hardware
protected

Definition at line 74 of file mblock_int.h.


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