HALDLS
|
#include <i2c.h>
Public Types | |
enum class | ChannelMode : bool { output = false , input = true } |
enum class | ChannelPolarity : bool { normal = false , inverted = true } |
typedef halco::common::typed_array< bool, halco::hicann_dls::vx::TCA9554ChannelOnBoard > | ChannelsBooleanArray |
typedef halco::common::typed_array< ChannelMode, halco::hicann_dls::vx::TCA9554ChannelOnBoard > | ChannelsModeArray |
typedef halco::common::typed_array< ChannelPolarity, halco::hicann_dls::vx::TCA9554ChannelOnBoard > | ChannelsPolarityArray |
typedef halco::hicann_dls::vx::TCA9554ConfigOnBoard | coordinate_type |
typedef std::true_type | is_leaf_node |
Public Member Functions | |
TCA9554Config () SYMBOL_VISIBLE | |
Default constructor. More... | |
void | decode (std::array< fisch::vx::word_access_type::I2CTCA9554RwRegister, config_size_in_words > const &data) SYMBOL_VISIBLE |
std::array< fisch::vx::word_access_type::I2CTCA9554RwRegister, config_size_in_words > | encode () const SYMBOL_VISIBLE |
bool | operator!= (TCA9554Config const &other) const SYMBOL_VISIBLE |
bool | operator== (TCA9554Config const &other) const SYMBOL_VISIBLE |
return_value_policy (reference_internal)) ChannelsBooleanArray const &get_channel_output() const SYMBOL_VISIBLE | |
return_value_policy (reference_internal)) ChannelsModeArray const &get_channel_mode() const SYMBOL_VISIBLE | |
return_value_policy (reference_internal)) ChannelsPolarityArray const &get_channel_polarity() const SYMBOL_VISIBLE | |
void | set_channel_mode (ChannelsModeArray const &value) SYMBOL_VISIBLE |
Set input/output mode for all channels. More... | |
void | set_channel_output (ChannelsBooleanArray const &value) SYMBOL_VISIBLE |
Set output value for all channels. More... | |
void | set_channel_polarity (ChannelsPolarityArray const &value) SYMBOL_VISIBLE |
Set polarity inversion mode of all channels. More... | |
Static Public Member Functions | |
static std::array< halco::hicann_dls::vx::I2CTCA9554RwRegisterOnBoard, config_size_in_words > | addresses (coordinate_type const &coord) SYMBOL_VISIBLE |
Static Public Attributes | |
static constexpr size_t | config_size_in_words = 3 |
constexpr static auto | unsupported_read_targets |
Friends | |
class | cereal::access |
std::ostream & | operator<< (std::ostream &os, TCA9554Config const &config) SYMBOL_VISIBLE |
typedef halco::common:: typed_array<bool, halco::hicann_dls::vx::TCA9554ChannelOnBoard> haldls::vx::TCA9554Config::ChannelsBooleanArray |
typedef halco::common:: typed_array<ChannelMode, halco::hicann_dls::vx::TCA9554ChannelOnBoard> haldls::vx::TCA9554Config::ChannelsModeArray |
typedef halco::common::typed_array< ChannelPolarity, halco::hicann_dls::vx::TCA9554ChannelOnBoard> haldls::vx::TCA9554Config::ChannelsPolarityArray |
typedef halco::hicann_dls::vx::TCA9554ConfigOnBoard haldls::vx::TCA9554Config::coordinate_type |
typedef std::true_type haldls::vx::TCA9554Config::is_leaf_node |
|
strong |
|
strong |
haldls::vx::TCA9554Config::TCA9554Config | ( | ) |
Default constructor.
|
static |
void haldls::vx::TCA9554Config::decode | ( | std::array< fisch::vx::word_access_type::I2CTCA9554RwRegister, config_size_in_words > const & | data | ) |
std::array<fisch::vx::word_access_type::I2CTCA9554RwRegister, config_size_in_words> haldls::vx::TCA9554Config::encode | ( | ) | const |
bool haldls::vx::TCA9554Config::operator!= | ( | TCA9554Config const & | other | ) | const |
bool haldls::vx::TCA9554Config::operator== | ( | TCA9554Config const & | other | ) | const |
haldls::vx::TCA9554Config::return_value_policy | ( | reference_internal | ) | const & |
haldls::vx::TCA9554Config::return_value_policy | ( | reference_internal | ) | const & |
haldls::vx::TCA9554Config::return_value_policy | ( | reference_internal | ) | const & |
void haldls::vx::TCA9554Config::set_channel_mode | ( | ChannelsModeArray const & | value | ) |
Set input/output mode for all channels.
value | Array of channel input/output modes |
void haldls::vx::TCA9554Config::set_channel_output | ( | ChannelsBooleanArray const & | value | ) |
Set output value for all channels.
value | Array of output values |
void haldls::vx::TCA9554Config::set_channel_polarity | ( | ChannelsPolarityArray const & | value | ) |
Set polarity inversion mode of all channels.
value | Array of polarity inversion modes |
|
friend |
|
staticconstexpr |
|
staticconstexpr |