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


Public Types | |
| enum | FrontPanelIOMode : uint8_t { ANALOG_OUT = 0b00000 , ANALOG_IN = 0b00001 , DIGITAL_OUT = 0b10000 , DIGITAL_IN = 0b10001 } |
Public Member Functions | |
| REDAC_V_1_1_X (REDAC_HAL_V_1_1_X *hardware) | |
| bool | set_io_mode (uint8_t io_number, FrontPanelIOMode mode) |
| FrontPanelIOMode | get_io_mode (uint8_t io_number) const |
| bool | set_DIO_direction (uint8_t dio_number, bool input_from_ctrl_block) |
| bool | get_DIO_direction (uint8_t dio_number) const |
| status | write_to_hardware () override |
Protected Attributes | |
| uint16_t | fp_control_sr_state |
| REDAC_HAL_V_1_1_X * | hardware |
Detailed Description
Member Enumeration Documentation
◆ FrontPanelIOMode
| enum platform::REDAC_V_1_1_X::FrontPanelIOMode : uint8_t |
Constructor & Destructor Documentation
◆ REDAC_V_1_1_X()
|
explicit |
Definition at line 128 of file redac.cpp.
References fp_control_sr_state, and hardware.
Member Function Documentation
◆ get_DIO_direction()
| bool platform::REDAC_V_1_1_X::get_DIO_direction | ( | uint8_t | dio_number | ) | const |
Definition at line 166 of file redac.cpp.
References fp_control_sr_state.
◆ get_io_mode()
| platform::REDAC_V_1_1_X::FrontPanelIOMode platform::REDAC_V_1_1_X::get_io_mode | ( | uint8_t | io_number | ) | const |
Definition at line 143 of file redac.cpp.
References fp_control_sr_state.
◆ set_DIO_direction()
| bool platform::REDAC_V_1_1_X::set_DIO_direction | ( | uint8_t | dio_number, |
| bool | input_from_ctrl_block ) |
Definition at line 147 of file redac.cpp.
References fp_control_sr_state.
◆ set_io_mode()
| bool platform::REDAC_V_1_1_X::set_io_mode | ( | uint8_t | io_number, |
| FrontPanelIOMode | mode ) |
Definition at line 130 of file redac.cpp.
References DIGITAL_IN, DIGITAL_OUT, and fp_control_sr_state.
◆ write_to_hardware()
|
override |
Definition at line 122 of file redac.cpp.
References fp_control_sr_state, and hardware.
Member Data Documentation
◆ fp_control_sr_state
|
protected |
Definition at line 113 of file redac.h.
Referenced by get_DIO_direction(), get_io_mode(), REDAC_V_1_1_X(), set_DIO_direction(), set_io_mode(), and write_to_hardware().
◆ hardware
|
protected |
Definition at line 115 of file redac.h.
Referenced by REDAC_V_1_1_X(), and write_to_hardware().
The documentation for this class was generated from the following files: