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

HAL class for TBlock version 1.0.1. More...

#include <tblock.h>

Inheritance diagram for blocks::TBlockHAL_V_1_0_X:
Collaboration diagram for blocks::TBlockHAL_V_1_0_X:

Public Member Functions

 TBlockHAL_V_1_0_X (bus::addr_t block_address)
 
std::array< uint8_t, 8 > get_entity_eui () const override
 
bool write_muxes (std::array< uint8_t, NUM_SWITCHES > muxes) override
 
bool reset_muxes () override
 
void set_mux_disable () override
 
void reset_mux_disable () override
 
- Public Member Functions inherited from entities::EntitySharedHardware< TBlockHAL >
metadata::eui_t get_entity_eui () const
 
float read_temperature () const
 
metadata::eui_t get_entity_eui () const
 
float read_temperature () const
 

Protected Attributes

const functions::TriggerFunction f_set_mux_disable
 
const functions::TriggerFunction f_reset_mux_disable
 
const functions::TriggerFunction f_reset_connections
 
const functions::SR74HCT595 f_connections
 
const functions::TriggerFunction f_connections_sync
 
- Protected Attributes inherited from entities::EntitySharedHardware< TBlockHAL >
const metadata::MetadataEditor f_meta
 
const functions::TMP127Q1 temperature_sensor
 
const metadata::MetadataEditor f_meta
 
const functions::TMP127Q1 temperature_sensor
 

Static Protected Attributes

static const SPISettings F_CONNECTION_SPI_SETTINGS
 

Additional Inherited Members

- Protected Member Functions inherited from entities::EntitySharedHardware< TBlockHAL >
 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

HAL class for TBlock version 1.0.1.

Definition at line 19 of file tblock.h.

Constructor & Destructor Documentation

◆ TBlockHAL_V_1_0_X()

TBlockHAL_V_1_0_X::TBlockHAL_V_1_0_X ( bus::addr_t block_address)
explicit

Member Function Documentation

◆ get_entity_eui()

std::array< uint8_t, 8 > blocks::TBlockHAL_V_1_0_X::get_entity_eui ( ) const
inlineoverride

Definition at line 32 of file tblock.h.

References entities::EntitySharedHardware< TBlockHAL >::f_meta.

◆ reset_mux_disable()

void TBlockHAL_V_1_0_X::reset_mux_disable ( )
override

Definition at line 18 of file tblock.cpp.

References f_reset_mux_disable.

◆ reset_muxes()

bool TBlockHAL_V_1_0_X::reset_muxes ( )
override

Definition at line 35 of file tblock.cpp.

References f_connections, and f_reset_connections.

◆ set_mux_disable()

void TBlockHAL_V_1_0_X::set_mux_disable ( )
override

Definition at line 16 of file tblock.cpp.

References f_set_mux_disable.

◆ write_muxes()

bool TBlockHAL_V_1_0_X::write_muxes ( std::array< uint8_t, NUM_SWITCHES > muxes)
override

Definition at line 20 of file tblock.cpp.

References f_connections, f_connections_sync, and success.

Member Data Documentation

◆ F_CONNECTION_SPI_SETTINGS

const SPISettings TBlockHAL_V_1_0_X::F_CONNECTION_SPI_SETTINGS
staticprotected
Initial value:
{
4'000'000, MSBFIRST, SPI_MODE2 }

Definition at line 27 of file tblock.h.

Referenced by TBlockHAL_V_1_0_X().

◆ f_connections

const functions::SR74HCT595 blocks::TBlockHAL_V_1_0_X::f_connections
protected

Definition at line 24 of file tblock.h.

Referenced by reset_muxes(), TBlockHAL_V_1_0_X(), and write_muxes().

◆ f_connections_sync

const functions::TriggerFunction blocks::TBlockHAL_V_1_0_X::f_connections_sync
protected

Definition at line 25 of file tblock.h.

Referenced by TBlockHAL_V_1_0_X(), and write_muxes().

◆ f_reset_connections

const functions::TriggerFunction blocks::TBlockHAL_V_1_0_X::f_reset_connections
protected

Definition at line 23 of file tblock.h.

Referenced by reset_muxes(), and TBlockHAL_V_1_0_X().

◆ f_reset_mux_disable

const functions::TriggerFunction blocks::TBlockHAL_V_1_0_X::f_reset_mux_disable
protected

Definition at line 22 of file tblock.h.

Referenced by reset_mux_disable(), and TBlockHAL_V_1_0_X().

◆ f_set_mux_disable

const functions::TriggerFunction blocks::TBlockHAL_V_1_0_X::f_set_mux_disable
protected

Definition at line 21 of file tblock.h.

Referenced by set_mux_disable(), and TBlockHAL_V_1_0_X().


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