HALDLS
|
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_words > | encode () 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_words > | addresses (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 |
Configuration of the current DAC of the readout chain.
Definition at line 26 of file current_dac.h.
typedef halco::hicann_dls::vx::CurrentDACOnDLS haldls::vx::CurrentDAC::coordinate_type |
Definition at line 29 of file current_dac.h.
typedef halco::common::typed_array<bool, halco::hicann_dls::vx::HemisphereOnDLS> haldls::vx::CurrentDAC::HemisphereType |
Definition at line 40 of file current_dac.h.
typedef std::true_type haldls::vx::CurrentDAC::is_leaf_node |
Definition at line 31 of file current_dac.h.
typedef halco::common::typed_array<bool, halco::hicann_dls::vx::SynapticInputOnNeuron> haldls::vx::CurrentDAC::SynapseTargetType |
Definition at line 44 of file current_dac.h.
|
strong |
Decide whether current is sourced or sinked.
Enumerator | |
---|---|
source | |
sink |
Definition at line 34 of file current_dac.h.
haldls::vx::CurrentDAC::CurrentDAC | ( | ) |
Default constructor with all inputs disabled.
|
static |
void haldls::vx::CurrentDAC::decode | ( | std::array< WordT, config_size_in_words > const & | words | ) |
std::array<WordT, config_size_in_words> haldls::vx::CurrentDAC::encode | ( | ) | const |
HemisphereType haldls::vx::CurrentDAC::get_connect_neuron | ( | ) | const |
Enable mux connection to neuron array current stimulus of corresponding hemisphere.
SynapseTargetType haldls::vx::CurrentDAC::get_connect_synapse | ( | ) | const |
Enable mux connection to synapse.
Current haldls::vx::CurrentDAC::get_current | ( | ) | const |
Value of current DAC.
bool haldls::vx::CurrentDAC::get_enable_current | ( | ) | const |
Enable current source.
Sign haldls::vx::CurrentDAC::get_sign | ( | ) | const |
Select sign of current.
bool haldls::vx::CurrentDAC::operator!= | ( | CurrentDAC const & | other | ) | const |
bool haldls::vx::CurrentDAC::operator== | ( | CurrentDAC const & | other | ) | const |
void haldls::vx::CurrentDAC::set_connect_neuron | ( | HemisphereType | value | ) |
void haldls::vx::CurrentDAC::set_connect_synapse | ( | SynapseTargetType | value | ) |
void haldls::vx::CurrentDAC::set_current | ( | Current | value | ) |
void haldls::vx::CurrentDAC::set_enable_current | ( | bool | value | ) |
void haldls::vx::CurrentDAC::set_sign | ( | Sign | value | ) |
|
friend |
Definition at line 108 of file current_dac.h.
|
friend |
|
staticconstexpr |
Definition at line 94 of file current_dac.h.