|
REDAC HybridController
Firmware for LUCIDAC/REDAC Teensy
|
#include <redac.h>


Public Member Functions | |
| REDAC_HAL_V_1_0_X () | |
| uint16_t | read_backplane_and_slot_id () const override |
| bool | write_adc_bus_mux (const std::array< int8_t, 8 > &channels) override |
| void | reset_adc_bus_mux () override |
Public Member Functions inherited from entities::EntitySharedHardware< REDAC_HAL > | |
| metadata::eui_t | get_entity_eui () const |
| float | read_temperature () const |
| metadata::eui_t | get_entity_eui () const |
| float | read_temperature () const |
Static Public Attributes | |
| static constexpr uint8_t | METADATA_FADDR = bus::METADATA_FUNC_IDX |
| static constexpr uint8_t | TEMPERATURE_FADDR = 1 |
| static constexpr uint8_t | ADC_PRG_FADDR = 0 |
| static constexpr uint8_t | ADC_RESET_FADDR = 1 |
| static constexpr uint8_t | ADC_STROBE_FADDR = 2 |
| static constexpr uint8_t | STANDBY_SET_FADDR = 3 |
| static constexpr uint8_t | STANDBY_UNSET_FADDR = 2 |
| static const SPISettings | BP_REDAC_ID_SPI_SETTINGS |
| static constexpr uint8_t | BP_REDAC_ID_FADDR = 2 |
Protected Attributes | |
| const functions::DataFunction | bp_redac_id |
| const functions::TriggerFunction | f_set_standby |
| const functions::TriggerFunction | f_unset_standby |
| const functions::ICommandRegisterFunction | f_adc0_switcher_prg |
| const functions::TriggerFunction | f_adc0_switcher_reset |
| const functions::TriggerFunction | f_adc0_switcher_sync |
| const functions::ICommandRegisterFunction | f_adc1_switcher_prg |
| const functions::TriggerFunction | f_adc1_switcher_reset |
| const functions::TriggerFunction | f_adc1_switcher_sync |
| const functions::ICommandRegisterFunction | f_adc2_switcher_prg |
| const functions::TriggerFunction | f_adc2_switcher_reset |
| const functions::TriggerFunction | f_adc2_switcher_sync |
Protected Attributes inherited from entities::EntitySharedHardware< REDAC_HAL > | |
| 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_ADC_SWITCHER_PRG_SPI_SETTINGS |
Additional Inherited Members | |
Protected Member Functions inherited from entities::EntitySharedHardware< REDAC_HAL > | |
| 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
Constructor & Destructor Documentation
◆ REDAC_HAL_V_1_0_X()
| platform::REDAC_HAL_V_1_0_X::REDAC_HAL_V_1_0_X | ( | ) |
Definition at line 34 of file redac.cpp.
References ADC_PRG_FADDR, ADC_RESET_FADDR, ADC_STROBE_FADDR, bp_redac_id, BP_REDAC_ID_FADDR, BP_REDAC_ID_SPI_SETTINGS, f_adc0_switcher_prg, f_adc0_switcher_reset, f_adc0_switcher_sync, f_adc1_switcher_prg, f_adc1_switcher_reset, f_adc1_switcher_sync, f_adc2_switcher_prg, f_adc2_switcher_reset, f_adc2_switcher_sync, F_ADC_SWITCHER_PRG_SPI_SETTINGS, f_set_standby, f_unset_standby, STANDBY_SET_FADDR, and STANDBY_UNSET_FADDR.
Member Function Documentation
◆ read_backplane_and_slot_id()
|
override |
Definition at line 51 of file redac.cpp.
References bp_redac_id.
◆ reset_adc_bus_mux()
|
override |
Definition at line 98 of file redac.cpp.
References f_adc0_switcher_reset, f_adc1_switcher_reset, and f_adc2_switcher_reset.
Referenced by write_adc_bus_mux().
◆ write_adc_bus_mux()
|
override |
Definition at line 53 of file redac.cpp.
References f_adc0_switcher_prg, f_adc0_switcher_sync, f_adc1_switcher_prg, f_adc1_switcher_sync, f_adc2_switcher_prg, f_adc2_switcher_sync, and reset_adc_bus_mux().
Member Data Documentation
◆ ADC_PRG_FADDR
|
staticconstexpr |
Definition at line 32 of file redac.h.
Referenced by REDAC_HAL_V_1_0_X().
◆ ADC_RESET_FADDR
|
staticconstexpr |
Definition at line 33 of file redac.h.
Referenced by REDAC_HAL_V_1_0_X().
◆ ADC_STROBE_FADDR
|
staticconstexpr |
Definition at line 34 of file redac.h.
Referenced by REDAC_HAL_V_1_0_X().
◆ bp_redac_id
|
protected |
Definition at line 42 of file redac.h.
Referenced by read_backplane_and_slot_id(), and REDAC_HAL_V_1_0_X().
◆ BP_REDAC_ID_FADDR
|
staticconstexpr |
Definition at line 39 of file redac.h.
Referenced by REDAC_HAL_V_1_0_X().
◆ BP_REDAC_ID_SPI_SETTINGS
|
static |
Definition at line 28 of file redac.h.
Referenced by REDAC_HAL_V_1_0_X().
◆ f_adc0_switcher_prg
|
protected |
Definition at line 49 of file redac.h.
Referenced by REDAC_HAL_V_1_0_X(), and write_adc_bus_mux().
◆ f_adc0_switcher_reset
|
protected |
Definition at line 50 of file redac.h.
Referenced by REDAC_HAL_V_1_0_X(), and reset_adc_bus_mux().
◆ f_adc0_switcher_sync
|
protected |
Definition at line 51 of file redac.h.
Referenced by REDAC_HAL_V_1_0_X(), and write_adc_bus_mux().
◆ f_adc1_switcher_prg
|
protected |
Definition at line 53 of file redac.h.
Referenced by REDAC_HAL_V_1_0_X(), and write_adc_bus_mux().
◆ f_adc1_switcher_reset
|
protected |
Definition at line 54 of file redac.h.
Referenced by REDAC_HAL_V_1_0_X(), and reset_adc_bus_mux().
◆ f_adc1_switcher_sync
|
protected |
Definition at line 55 of file redac.h.
Referenced by REDAC_HAL_V_1_0_X(), and write_adc_bus_mux().
◆ f_adc2_switcher_prg
|
protected |
Definition at line 57 of file redac.h.
Referenced by REDAC_HAL_V_1_0_X(), and write_adc_bus_mux().
◆ f_adc2_switcher_reset
|
protected |
Definition at line 58 of file redac.h.
Referenced by REDAC_HAL_V_1_0_X(), and reset_adc_bus_mux().
◆ f_adc2_switcher_sync
|
protected |
Definition at line 59 of file redac.h.
Referenced by REDAC_HAL_V_1_0_X(), and write_adc_bus_mux().
◆ F_ADC_SWITCHER_PRG_SPI_SETTINGS
|
staticprotected |
Definition at line 31 of file redac.h.
Referenced by REDAC_HAL_V_1_0_X().
◆ f_set_standby
|
protected |
Definition at line 46 of file redac.h.
Referenced by REDAC_HAL_V_1_0_X().
◆ f_unset_standby
|
protected |
Definition at line 47 of file redac.h.
Referenced by REDAC_HAL_V_1_0_X().
◆ METADATA_FADDR
|
staticconstexpr |
◆ STANDBY_SET_FADDR
|
staticconstexpr |
Definition at line 35 of file redac.h.
Referenced by REDAC_HAL_V_1_0_X().
◆ STANDBY_UNSET_FADDR
|
staticconstexpr |
Definition at line 36 of file redac.h.
Referenced by REDAC_HAL_V_1_0_X().
◆ TEMPERATURE_FADDR
|
staticconstexpr |
The documentation for this class was generated from the following files:
Public Member Functions inherited from