HALDLS
haldls::vx::CurrentDAC Class Reference

Configuration of the current DAC of the readout chain. More...

#include <current_dac.h>

Classes

struct  Current
 Value of current DAC. More...
 

Public Types

typedef halco::hicann_dls::vx::CurrentDACOnDLS coordinate_type
 
typedef halco::common::typed_array< bool, halco::hicann_dls::vx::HemisphereOnDLS > HemisphereType
 
typedef std::true_type is_leaf_node
 
enum class  Sign : uint_fast8_t { source = 0b00 , sink = 0b01 }
 Decide whether current is sourced or sinked. More...
 
typedef halco::common::typed_array< bool, halco::hicann_dls::vx::SynapticInputOnNeuron > SynapseTargetType
 

Public Member Functions

 CurrentDAC () SYMBOL_VISIBLE
 Default constructor with all inputs disabled. More...
 
template<typename WordT >
void decode (std::array< WordT, config_size_in_words > const &words) SYMBOL_VISIBLE
 
template<typename WordT >
std::array< WordT, config_size_in_wordsencode () const SYMBOL_VISIBLE
 
HemisphereType get_connect_neuron () const SYMBOL_VISIBLE
 Enable mux connection to neuron array current stimulus of corresponding hemisphere. More...
 
SynapseTargetType get_connect_synapse () const SYMBOL_VISIBLE
 Enable mux connection to synapse. More...
 
Current get_current () const SYMBOL_VISIBLE
 Value of current DAC. More...
 
bool get_enable_current () const SYMBOL_VISIBLE
 Enable current source. More...
 
Sign get_sign () const SYMBOL_VISIBLE
 Select sign of current. More...
 
bool operator!= (CurrentDAC const &other) const SYMBOL_VISIBLE
 
bool operator== (CurrentDAC const &other) const SYMBOL_VISIBLE
 
void set_connect_neuron (HemisphereType value) SYMBOL_VISIBLE
 
void set_connect_synapse (SynapseTargetType value) SYMBOL_VISIBLE
 
void set_current (Current value) SYMBOL_VISIBLE
 
void set_enable_current (bool value) SYMBOL_VISIBLE
 
void set_sign (Sign value) SYMBOL_VISIBLE
 

Static Public Member Functions

template<typename AddressT >
static std::array< AddressT, config_size_in_wordsaddresses (coordinate_type const &coord) SYMBOL_VISIBLE
 

Static Public Attributes

static constexpr size_t config_size_in_words = 1
 

Friends

class cereal::access
 
std::ostream & operator<< (std::ostream &os, CurrentDAC const &config) SYMBOL_VISIBLE
 

Detailed Description

Configuration of the current DAC of the readout chain.

Definition at line 26 of file current_dac.h.

Member Typedef Documentation

◆ coordinate_type

typedef halco::hicann_dls::vx::CurrentDACOnDLS haldls::vx::CurrentDAC::coordinate_type

Definition at line 29 of file current_dac.h.

◆ HemisphereType

typedef halco::common::typed_array<bool, halco::hicann_dls::vx::HemisphereOnDLS> haldls::vx::CurrentDAC::HemisphereType

Definition at line 40 of file current_dac.h.

◆ is_leaf_node

typedef std::true_type haldls::vx::CurrentDAC::is_leaf_node

Definition at line 31 of file current_dac.h.

◆ SynapseTargetType

typedef halco::common::typed_array<bool, halco::hicann_dls::vx::SynapticInputOnNeuron> haldls::vx::CurrentDAC::SynapseTargetType

Definition at line 44 of file current_dac.h.

Member Enumeration Documentation

◆ Sign

enum haldls::vx::CurrentDAC::Sign : uint_fast8_t
strong

Decide whether current is sourced or sinked.

Enumerator
source 
sink 

Definition at line 34 of file current_dac.h.

Constructor & Destructor Documentation

◆ CurrentDAC()

haldls::vx::CurrentDAC::CurrentDAC ( )

Default constructor with all inputs disabled.

Member Function Documentation

◆ addresses()

template<typename AddressT >
static std::array<AddressT, config_size_in_words> haldls::vx::CurrentDAC::addresses ( coordinate_type const &  coord)
static

◆ decode()

template<typename WordT >
void haldls::vx::CurrentDAC::decode ( std::array< WordT, config_size_in_words > const &  words)

◆ encode()

template<typename WordT >
std::array<WordT, config_size_in_words> haldls::vx::CurrentDAC::encode ( ) const

◆ get_connect_neuron()

HemisphereType haldls::vx::CurrentDAC::get_connect_neuron ( ) const

Enable mux connection to neuron array current stimulus of corresponding hemisphere.

◆ get_connect_synapse()

SynapseTargetType haldls::vx::CurrentDAC::get_connect_synapse ( ) const

Enable mux connection to synapse.

◆ get_current()

Current haldls::vx::CurrentDAC::get_current ( ) const

Value of current DAC.

◆ get_enable_current()

bool haldls::vx::CurrentDAC::get_enable_current ( ) const

Enable current source.

◆ get_sign()

Sign haldls::vx::CurrentDAC::get_sign ( ) const

Select sign of current.

◆ operator!=()

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

◆ operator==()

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

◆ set_connect_neuron()

void haldls::vx::CurrentDAC::set_connect_neuron ( HemisphereType  value)

◆ set_connect_synapse()

void haldls::vx::CurrentDAC::set_connect_synapse ( SynapseTargetType  value)

◆ set_current()

void haldls::vx::CurrentDAC::set_current ( Current  value)

◆ set_enable_current()

void haldls::vx::CurrentDAC::set_enable_current ( bool  value)

◆ set_sign()

void haldls::vx::CurrentDAC::set_sign ( Sign  value)

Friends And Related Function Documentation

◆ cereal::access

friend class cereal::access
friend

Definition at line 108 of file current_dac.h.

◆ operator<<

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

Member Data Documentation

◆ config_size_in_words

constexpr size_t haldls::vx::CurrentDAC::config_size_in_words = 1
staticconstexpr

Definition at line 94 of file current_dac.h.


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