HALDLS
|
Container for enabling DAC channels of a xBoard DAC. More...
#include <spi.h>
Public Types | |
typedef halco::hicann_dls::vx::DACOnBoard | coordinate_type |
typedef std::true_type | is_leaf_node |
Public Member Functions | |
DACControl () SYMBOL_VISIBLE | |
Default constructor. More... | |
void | decode (std::array< fisch::vx::word_access_type::SPIDACControlRegister, read_config_size_in_words > const &data) SYMBOL_VISIBLE |
std::array< fisch::vx::word_access_type::SPIDACControlRegister, write_config_size_in_words > | encode () const SYMBOL_VISIBLE |
bool | get_enable_channel (halco::hicann_dls::vx::DACChannelOnDAC const &channel) const SYMBOL_VISIBLE |
Get DAC channel enable value. More... | |
bool | operator!= (DACControl const &other) const SYMBOL_VISIBLE |
bool | operator== (DACControl const &other) const SYMBOL_VISIBLE |
void | set_enable_channel (halco::hicann_dls::vx::DACChannelOnDAC const &channel, bool value) SYMBOL_VISIBLE |
Set DAC channel enable value. More... | |
Static Public Member Functions | |
static std::array< halco::hicann_dls::vx::SPIDACControlRegisterOnBoard, read_config_size_in_words > | read_addresses (coordinate_type const &coord) SYMBOL_VISIBLE |
static std::array< halco::hicann_dls::vx::SPIDACControlRegisterOnBoard, write_config_size_in_words > | write_addresses (coordinate_type const &coord) SYMBOL_VISIBLE |
Static Public Attributes | |
static constexpr size_t | read_config_size_in_words = 0 |
static constexpr size_t | write_config_size_in_words = 2 |
Friends | |
class | cereal::access |
std::ostream & | operator<< (std::ostream &os, DACControl const &config) SYMBOL_VISIBLE |
typedef halco::hicann_dls::vx::DACOnBoard haldls::vx::DACControl::coordinate_type |
typedef std::true_type haldls::vx::DACControl::is_leaf_node |
haldls::vx::DACControl::DACControl | ( | ) |
Default constructor.
void haldls::vx::DACControl::decode | ( | std::array< fisch::vx::word_access_type::SPIDACControlRegister, read_config_size_in_words > const & | data | ) |
std::array<fisch::vx::word_access_type::SPIDACControlRegister, write_config_size_in_words> haldls::vx::DACControl::encode | ( | ) | const |
bool haldls::vx::DACControl::get_enable_channel | ( | halco::hicann_dls::vx::DACChannelOnDAC const & | channel | ) | const |
Get DAC channel enable value.
channel | Channel to get value for |
bool haldls::vx::DACControl::operator!= | ( | DACControl const & | other | ) | const |
bool haldls::vx::DACControl::operator== | ( | DACControl const & | other | ) | const |
|
static |
void haldls::vx::DACControl::set_enable_channel | ( | halco::hicann_dls::vx::DACChannelOnDAC const & | channel, |
bool | value | ||
) |
Set DAC channel enable value.
channel | Channel to set value for |
value | Boolean value to set |
|
static |
|
friend |
|
staticconstexpr |
|
staticconstexpr |