REDAC HybridController
Firmware for LUCIDAC/REDAC Teensy
Loading...
Searching...
No Matches
blocks::TBlockBackplaneHAL_V_1_0_X Class Reference

HAL class for TBlockBackplane version 1.0.1. More...

#include <tblock.h>

Inheritance diagram for blocks::TBlockBackplaneHAL_V_1_0_X:
Collaboration diagram for blocks::TBlockBackplaneHAL_V_1_0_X:

Public Member Functions

 TBlockBackplaneHAL_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< TBlockBackplaneHAL >
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::SR74HCT595 f_connections
 
const functions::TriggerFunction f_reset_connections
 
const functions::TriggerFunction f_connections_sync
 
- Protected Attributes inherited from entities::EntitySharedHardware< TBlockBackplaneHAL >
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< TBlockBackplaneHAL >
 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 TBlockBackplane version 1.0.1.

Definition at line 45 of file tblock.h.

Constructor & Destructor Documentation

◆ TBlockBackplaneHAL_V_1_0_X()

TBlockBackplaneHAL_V_1_0_X::TBlockBackplaneHAL_V_1_0_X ( bus::addr_t block_address)
explicit

Member Function Documentation

◆ get_entity_eui()

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

◆ reset_mux_disable()

void TBlockBackplaneHAL_V_1_0_X::reset_mux_disable ( )
override

Definition at line 135 of file tblock.cpp.

References f_reset_mux_disable.

◆ reset_muxes()

bool TBlockBackplaneHAL_V_1_0_X::reset_muxes ( )
override

Definition at line 122 of file tblock.cpp.

References f_connections, and f_reset_connections.

◆ set_mux_disable()

void TBlockBackplaneHAL_V_1_0_X::set_mux_disable ( )
override

Definition at line 133 of file tblock.cpp.

References f_set_mux_disable.

◆ write_muxes()

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

Definition at line 101 of file tblock.cpp.

References bitset2array(), f_connections, f_connections_sync, and success.

Member Data Documentation

◆ F_CONNECTION_SPI_SETTINGS

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

Definition at line 54 of file tblock.h.

Referenced by TBlockBackplaneHAL_V_1_0_X().

◆ f_connections

const functions::SR74HCT595 blocks::TBlockBackplaneHAL_V_1_0_X::f_connections
protected

Definition at line 50 of file tblock.h.

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

◆ f_connections_sync

const functions::TriggerFunction blocks::TBlockBackplaneHAL_V_1_0_X::f_connections_sync
protected

Definition at line 52 of file tblock.h.

Referenced by TBlockBackplaneHAL_V_1_0_X(), and write_muxes().

◆ f_reset_connections

const functions::TriggerFunction blocks::TBlockBackplaneHAL_V_1_0_X::f_reset_connections
protected

Definition at line 51 of file tblock.h.

Referenced by reset_muxes(), and TBlockBackplaneHAL_V_1_0_X().

◆ f_reset_mux_disable

const functions::TriggerFunction blocks::TBlockBackplaneHAL_V_1_0_X::f_reset_mux_disable
protected

Definition at line 48 of file tblock.h.

Referenced by reset_mux_disable(), and TBlockBackplaneHAL_V_1_0_X().

◆ f_set_mux_disable

const functions::TriggerFunction blocks::TBlockBackplaneHAL_V_1_0_X::f_set_mux_disable
protected

Definition at line 47 of file tblock.h.

Referenced by set_mux_disable(), and TBlockBackplaneHAL_V_1_0_X().


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