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

#include <cblock.h>

Inheritance diagram for blocks::CBlockHAL_Common:
Collaboration diagram for blocks::CBlockHAL_Common:

Public Member Functions

 CBlockHAL_Common (bus::addr_t block_address, bus::addr_t temperature_sensor_address, std::array< const uint8_t, 32 > f_coeffs_cs, uint8_t alt_function_idx)
 
bool write_factor (uint8_t idx, float value) override
 
- Public Member Functions inherited from entities::EntitySharedHardware< CBlockHAL >
metadata::eui_t get_entity_eui () const
 
float read_temperature () const
 
metadata::eui_t get_entity_eui () const
 
float read_temperature () const
 

Static Public Member Functions

static std::array< functions::AD5452, 32 > make_f_coeffs (bus::addr_t block_address, std::array< const uint8_t, 32 > f_coeffs_cs, uint8_t alt_function_idx)
 

Protected Attributes

std::array< functions::AD5452, 32 > f_coeffs
 
- Protected Attributes inherited from entities::EntitySharedHardware< CBlockHAL >
const metadata::MetadataEditor f_meta
 
const functions::TMP127Q1 temperature_sensor
 
const metadata::MetadataEditor f_meta
 
const functions::TMP127Q1 temperature_sensor
 

Additional Inherited Members

- Protected Member Functions inherited from entities::EntitySharedHardware< CBlockHAL >
 EntitySharedHardware (bus::addr_t f_meta_addr, bus::addr_t temperature_sensor_addr, uint8_t alt_function_idx)
 
 EntitySharedHardware (bus::addr_t block_address, uint8_t alt_function_idx)
 
 EntitySharedHardware (bus::addr_t f_meta_addr, bus::addr_t temperature_sensor_addr, uint8_t alt_function_idx)
 
 EntitySharedHardware (bus::addr_t block_address, uint8_t alt_function_idx)
 

Detailed Description

Definition at line 15 of file cblock.h.

Constructor & Destructor Documentation

◆ CBlockHAL_Common()

blocks::CBlockHAL_Common::CBlockHAL_Common ( bus::addr_t block_address,
bus::addr_t temperature_sensor_address,
std::array< const uint8_t, 32 > f_coeffs_cs,
uint8_t alt_function_idx )

Member Function Documentation

◆ make_f_coeffs()

std::array< functions::AD5452, 32 > blocks::CBlockHAL_Common::make_f_coeffs ( bus::addr_t block_address,
std::array< const uint8_t, 32 > f_coeffs_cs,
uint8_t alt_function_idx )
static

Definition at line 38 of file cblock.cpp.

Referenced by CBlockHAL_Common().

◆ write_factor()

bool blocks::CBlockHAL_Common::write_factor ( uint8_t idx,
float value )
override

Definition at line 81 of file cblock.cpp.

References f_coeffs.

Member Data Documentation

◆ f_coeffs

std::array<functions::AD5452, 32> blocks::CBlockHAL_Common::f_coeffs
protected

Definition at line 18 of file cblock.h.

Referenced by CBlockHAL_Common(), and write_factor().


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