HALDLS
haldls::vx::DACControl Class Reference

Container for enabling DAC channels of a xBoard DAC. More...

#include <spi.h>

+ Inheritance diagram for haldls::vx::DACControl:
+ Collaboration diagram for haldls::vx::DACControl:

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_wordsencode () 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_wordsread_addresses (coordinate_type const &coord) SYMBOL_VISIBLE
 
static std::array< halco::hicann_dls::vx::SPIDACControlRegisterOnBoard, write_config_size_in_wordswrite_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
 

Detailed Description

Container for enabling DAC channels of a xBoard DAC.

Definition at line 362 of file spi.h.

Member Typedef Documentation

◆ coordinate_type

typedef halco::hicann_dls::vx::DACOnBoard haldls::vx::DACControl::coordinate_type

Definition at line 365 of file spi.h.

◆ is_leaf_node

typedef std::true_type haldls::vx::DACControl::is_leaf_node

Definition at line 366 of file spi.h.

Constructor & Destructor Documentation

◆ DACControl()

haldls::vx::DACControl::DACControl ( )

Default constructor.

Member Function Documentation

◆ decode()

void haldls::vx::DACControl::decode ( std::array< fisch::vx::word_access_type::SPIDACControlRegister, read_config_size_in_words > const &  data)

◆ encode()

std::array<fisch::vx::word_access_type::SPIDACControlRegister, write_config_size_in_words> haldls::vx::DACControl::encode ( ) const

◆ get_enable_channel()

bool haldls::vx::DACControl::get_enable_channel ( halco::hicann_dls::vx::DACChannelOnDAC const &  channel) const

Get DAC channel enable value.

Parameters
channelChannel to get value for
Returns
Boolean value

◆ operator!=()

bool haldls::vx::DACControl::operator!= ( DACControl const &  other) const

◆ operator==()

bool haldls::vx::DACControl::operator== ( DACControl const &  other) const

◆ read_addresses()

static std:: array<halco::hicann_dls::vx::SPIDACControlRegisterOnBoard, read_config_size_in_words> haldls::vx::DACControl::read_addresses ( coordinate_type const &  coord)
static

◆ set_enable_channel()

void haldls::vx::DACControl::set_enable_channel ( halco::hicann_dls::vx::DACChannelOnDAC const &  channel,
bool  value 
)

Set DAC channel enable value.

Parameters
channelChannel to set value for
valueBoolean value to set

◆ write_addresses()

static std:: array<halco::hicann_dls::vx::SPIDACControlRegisterOnBoard, write_config_size_in_words> haldls::vx::DACControl::write_addresses ( coordinate_type const &  coord)
static

Friends And Related Function Documentation

◆ cereal::access

friend class cereal::access
friend

Definition at line 408 of file spi.h.

◆ operator<<

std::ostream& operator<< ( std::ostream &  os,
DACControl const &  config 
)
friend

Member Data Documentation

◆ read_config_size_in_words

constexpr size_t haldls::vx::DACControl::read_config_size_in_words = 0
staticconstexpr

Definition at line 394 of file spi.h.

◆ write_config_size_in_words

constexpr size_t haldls::vx::DACControl::write_config_size_in_words = 2
staticconstexpr

Definition at line 393 of file spi.h.


The documentation for this class was generated from the following file: