REDAC HybridController
Firmware for LUCIDAC/REDAC Teensy
Loading...
Searching...
No Matches
platform::REDAC_V_1_1_X Class Reference

#include <redac.h>

Inheritance diagram for platform::REDAC_V_1_1_X:
Collaboration diagram for platform::REDAC_V_1_1_X:

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_Xhardware
 

Detailed Description

Definition at line 78 of file redac.h.

Member Enumeration Documentation

◆ FrontPanelIOMode

Enumerator
ANALOG_OUT 
ANALOG_IN 
DIGITAL_OUT 
DIGITAL_IN 

Definition at line 82 of file redac.h.

Constructor & Destructor Documentation

◆ REDAC_V_1_1_X()

platform::REDAC_V_1_1_X::REDAC_V_1_1_X ( REDAC_HAL_V_1_1_X * hardware)
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()

status platform::REDAC_V_1_1_X::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

uint16_t platform::REDAC_V_1_1_X::fp_control_sr_state
protected

◆ hardware

REDAC_HAL_V_1_1_X* platform::REDAC_V_1_1_X::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: