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


Public Member Functions | |
| Teensy_LUCIDAC_HAL () | |
| bool | write_acl (std::array< ACL, 8 > acl) override |
| Write bits to ACL shift register, from I-block input 24 (first element) to 31 (last element) | |
| void | reset_acl () override |
| bool | write_adc_bus_mux (const std::array< int8_t, 8 > &channels) override |
| Write channel selection to ADC bus muxer. | |
| void | reset_adc_bus_mux () override |
Public Member Functions inherited from entities::EntitySharedHardware< LUCIDAC_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 | CARRIER_MADDR = 5 |
| static constexpr uint8_t | METADATA_FADDR = bus::METADATA_FUNC_IDX |
| static constexpr uint8_t | TEMPERATURE_FADDR = 1 |
| static constexpr uint8_t | ADC_PRG_FADDR = 2 |
| static constexpr uint8_t | ADC_RESET_8816_FADDR = 3 |
| static constexpr uint8_t | ADC_RESET_SR_FADDR = 4 |
| static constexpr uint8_t | ADC_STROBE_FADDR = 5 |
| static constexpr uint8_t | ACL_PRG_FADDR = 6 |
| static constexpr uint8_t | ACL_UPD_FADDR = 7 |
| static constexpr uint8_t | ACL_CRL_FADDR = 8 |
Protected Attributes | |
| const functions::SR74HCT595 | f_acl_prg |
| const functions::TriggerFunction | f_acl_upd |
| const functions::TriggerFunction | f_acl_clr |
| const functions::ICommandRegisterFunction | f_adc_switcher_prg |
| const functions::TriggerFunction | f_adc_switcher_sync |
| const functions::TriggerFunction | f_adc_switcher_sr_reset |
| const functions::TriggerFunction | f_adc_switcher_matrix_reset |
Protected Attributes inherited from entities::EntitySharedHardware< LUCIDAC_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< LUCIDAC_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
◆ Teensy_LUCIDAC_HAL()
| platform::Teensy_LUCIDAC_HAL::Teensy_LUCIDAC_HAL | ( | ) |
Definition at line 54 of file lucidac.cpp.
References ACL_CRL_FADDR, ACL_PRG_FADDR, ACL_UPD_FADDR, ADC_PRG_FADDR, ADC_RESET_8816_FADDR, ADC_RESET_SR_FADDR, ADC_STROBE_FADDR, CARRIER_MADDR, f_acl_clr, f_acl_prg, f_acl_upd, f_adc_switcher_matrix_reset, f_adc_switcher_prg, F_ADC_SWITCHER_PRG_SPI_SETTINGS, f_adc_switcher_sr_reset, and f_adc_switcher_sync.
Member Function Documentation
◆ reset_acl()
|
override |
Definition at line 78 of file lucidac.cpp.
◆ reset_adc_bus_mux()
|
override |
Definition at line 101 of file lucidac.cpp.
References f_adc_switcher_matrix_reset.
Referenced by write_adc_bus_mux().
◆ write_acl()
|
override |
Write bits to ACL shift register, from I-block input 24 (first element) to 31 (last element)
Definition at line 65 of file lucidac.cpp.
◆ write_adc_bus_mux()
|
override |
Write channel selection to ADC bus muxer.
Each element in channels selects the input index for the n-th ADC bus output (-1 disables).
Definition at line 83 of file lucidac.cpp.
References f_adc_switcher_prg, f_adc_switcher_sync, and reset_adc_bus_mux().
Member Data Documentation
◆ ACL_CRL_FADDR
|
staticconstexpr |
Definition at line 32 of file lucidac.h.
Referenced by Teensy_LUCIDAC_HAL().
◆ ACL_PRG_FADDR
|
staticconstexpr |
Definition at line 30 of file lucidac.h.
Referenced by Teensy_LUCIDAC_HAL().
◆ ACL_UPD_FADDR
|
staticconstexpr |
Definition at line 31 of file lucidac.h.
Referenced by Teensy_LUCIDAC_HAL().
◆ ADC_PRG_FADDR
|
staticconstexpr |
Definition at line 26 of file lucidac.h.
Referenced by Teensy_LUCIDAC_HAL().
◆ ADC_RESET_8816_FADDR
|
staticconstexpr |
Definition at line 27 of file lucidac.h.
Referenced by Teensy_LUCIDAC_HAL().
◆ ADC_RESET_SR_FADDR
|
staticconstexpr |
Definition at line 28 of file lucidac.h.
Referenced by Teensy_LUCIDAC_HAL().
◆ ADC_STROBE_FADDR
|
staticconstexpr |
Definition at line 29 of file lucidac.h.
Referenced by Teensy_LUCIDAC_HAL().
◆ CARRIER_MADDR
|
staticconstexpr |
Definition at line 22 of file lucidac.h.
Referenced by Teensy_LUCIDAC_HAL().
◆ f_acl_clr
|
protected |
Definition at line 38 of file lucidac.h.
Referenced by reset_acl(), and Teensy_LUCIDAC_HAL().
◆ f_acl_prg
|
protected |
Definition at line 36 of file lucidac.h.
Referenced by Teensy_LUCIDAC_HAL(), and write_acl().
◆ f_acl_upd
|
protected |
Definition at line 37 of file lucidac.h.
Referenced by reset_acl(), Teensy_LUCIDAC_HAL(), and write_acl().
◆ f_adc_switcher_matrix_reset
|
protected |
Definition at line 46 of file lucidac.h.
Referenced by reset_adc_bus_mux(), and Teensy_LUCIDAC_HAL().
◆ f_adc_switcher_prg
|
protected |
Definition at line 43 of file lucidac.h.
Referenced by Teensy_LUCIDAC_HAL(), and write_adc_bus_mux().
◆ F_ADC_SWITCHER_PRG_SPI_SETTINGS
|
staticprotected |
Definition at line 51 of file lucidac.h.
Referenced by Teensy_LUCIDAC_HAL().
◆ f_adc_switcher_sr_reset
|
protected |
Definition at line 45 of file lucidac.h.
Referenced by Teensy_LUCIDAC_HAL().
◆ f_adc_switcher_sync
|
protected |
Definition at line 44 of file lucidac.h.
Referenced by Teensy_LUCIDAC_HAL(), and write_adc_bus_mux().
◆ METADATA_FADDR
|
staticconstexpr |
◆ TEMPERATURE_FADDR
|
staticconstexpr |
The documentation for this class was generated from the following files:
- lib/hardware/src/lucidac/teensy/lucidac.h
- lib/hardware/src/lucidac/lucidac.cpp
Public Member Functions inherited from