LOLA
lola::vx::DACChannelBlock Class Reference

Container for configuration of all DAC channels on the xBoard. More...

#include <dac.h>

+ Collaboration diagram for lola::vx::DACChannelBlock:

Public Types

typedef halco::common::typed_array< Value, halco::hicann_dls::vx::DACChannelOnBoard > _value_type
 
typedef halco::hicann_dls::vx::DACChannelBlockOnBoard coordinate_type
 
typedef std::false_type has_local_data
 
typedef haldls::vx::DACChannel::Value Value
 

Public Member Functions

 DACChannelBlock () SYMBOL_VISIBLE
 Default constructor. More...
 
double get_voltage (halco::hicann_dls::vx::DACChannelOnBoard coord) const SYMBOL_VISIBLE
 Getter for DAC values in volts. More...
 
bool operator!= (DACChannelBlock const &other) const SYMBOL_VISIBLE
 
bool operator== (DACChannelBlock const &other) const SYMBOL_VISIBLE
 
void set_voltage (halco::hicann_dls::vx::DACChannelOnBoard coord, double voltage) SYMBOL_VISIBLE
 Setter for DAC values in volts. More...
 

Public Attributes

_value_type value
 Array of channel values. More...
 

Static Public Attributes

static const SYMBOL_VISIBLE DACChannelBlock default_ldo_1
 Default value for LDO version 1. More...
 
static const SYMBOL_VISIBLE DACChannelBlock default_ldo_2
 Default value for LDO version 2. More...
 

Friends

struct haldls::vx::detail::VisitPreorderImpl< lola::vx::DACChannelBlock >
 
std::ostream & operator<< (std::ostream &os, DACChannelBlock const &block) SYMBOL_VISIBLE
 

Detailed Description

Container for configuration of all DAC channels on the xBoard.

Definition at line 19 of file dac.h.

Member Typedef Documentation

◆ _value_type

typedef halco::common::typed_array<Value, halco::hicann_dls::vx::DACChannelOnBoard> lola::vx::DACChannelBlock::_value_type

Definition at line 30 of file dac.h.

◆ coordinate_type

typedef halco::hicann_dls::vx::DACChannelBlockOnBoard lola::vx::DACChannelBlock::coordinate_type

Definition at line 22 of file dac.h.

◆ has_local_data

Definition at line 23 of file dac.h.

◆ Value

typedef haldls::vx::DACChannel::Value lola::vx::DACChannelBlock::Value

Definition at line 25 of file dac.h.

Constructor & Destructor Documentation

◆ DACChannelBlock()

lola::vx::DACChannelBlock::DACChannelBlock ( )

Default constructor.

Member Function Documentation

◆ get_voltage()

double lola::vx::DACChannelBlock::get_voltage ( halco::hicann_dls::vx::DACChannelOnBoard  coord) const

Getter for DAC values in volts.

Parameters
coordCoordinate of the DAC channel to read.
Returns
Voltage in Volt (V) applied at that channel.

◆ operator!=()

bool lola::vx::DACChannelBlock::operator!= ( DACChannelBlock const &  other) const

◆ operator==()

bool lola::vx::DACChannelBlock::operator== ( DACChannelBlock const &  other) const

◆ set_voltage()

void lola::vx::DACChannelBlock::set_voltage ( halco::hicann_dls::vx::DACChannelOnBoard  coord,
double  voltage 
)

Setter for DAC values in volts.

Parameters
coordCoordinate of the DAC channel to configure.
voltageVoltage in Volt (V) to apply at that channel.

Friends And Related Function Documentation

◆ haldls::vx::detail::VisitPreorderImpl< lola::vx::DACChannelBlock >

friend struct haldls::vx::detail::VisitPreorderImpl< lola::vx::DACChannelBlock >
friend

Definition at line 66 of file dac.h.

◆ operator<<

std::ostream& operator<< ( std::ostream &  os,
DACChannelBlock const &  block 
)
friend

Member Data Documentation

◆ default_ldo_1

const SYMBOL_VISIBLE DACChannelBlock lola::vx::DACChannelBlock::default_ldo_1
static

Default value for LDO version 1.

Definition at line 39 of file dac.h.

◆ default_ldo_2

const SYMBOL_VISIBLE DACChannelBlock lola::vx::DACChannelBlock::default_ldo_2
static

Default value for LDO version 2.

Definition at line 44 of file dac.h.

◆ value

_value_type lola::vx::DACChannelBlock::value

Array of channel values.

Definition at line 34 of file dac.h.


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