Class DigitalState¶
Defined in File dio.hpp
Class Documentation¶
-
class DigitalState¶
Public Functions
-
inline DigitalState(uint32_t nchannels = 0)¶
-
uint32_t nchannels() const¶
-
std::vector<bool>::reference operator[](uint32_t channel)¶
-
bool state(uint32_t channel) const¶
-
std::vector<bool> &state()¶
-
std::vector<bool> state(std::vector<uint32_t> channels) const¶
-
void set_state(uint32_t channel, bool value)¶
-
void set_state(std::vector<uint32_t> channels, bool value)¶
-
void set_state(bool value)¶
-
void set_state(std::vector<bool> values)¶
-
void set_state(std::vector<uint32_t> channels, std::vector<bool> values)¶
-
void toggle_state(uint32_t channel)¶
-
void toggle_state(std::vector<uint32_t> channels)¶
-
std::string to_string(std::string high = "1", std::string low = "0", std::string spacer = "") const¶
Protected Attributes
-
std::vector<bool> state_¶
-
inline DigitalState(uint32_t nchannels = 0)¶