Go to the documentation of this file.
21 #include <fmt/format.h>
22 #include <fmt/ostream.h>
30 PinState::PinState(uint32_t pin_id,
const std::string& name,
bool state) : id_(pin_id), name_(name), state_(state)
61 os << fmt::format(
"PinState(id = {}, name = {}, state = {})", pin_state.
id(), pin_state.
name(), pin_state.
state());
66 : pin_data_(pin_data), timestamp_(timestamp)
107 return os <<
"IOState(timestamp = " << io_state.
timestamp_ <<
" nsec, " << io_state.
pin_data_ <<
")";
Represents a single I/O pin.
static std::vector< PinState > generateChangedOutputStates(const monitoring_frame::io::PinData &new_state, const monitoring_frame::io::PinData &old_state)
data_conversion_layer::monitoring_frame::io::PinData pin_data_
bool operator==(const IOState &io_state) const
Represents the IO PIN field of a monitoring frame.
std::vector< PinState > input() const
std::vector< PinState > changedOutputStates(const IOState &ref_state) const
bool operator==(const PinState &ps) const
static std::vector< PinState > generateChangedInputStates(const monitoring_frame::io::PinData &new_state, const monitoring_frame::io::PinData &old_state)
PinState(uint32_t pin_id, const std::string &name, bool state)
std::vector< PinState > output() const
std::vector< PinState > changedInputStates(const IOState &ref_state) const
bool operator!=(const PinState &ps) const
static std::vector< PinState > generateOutputPinStates(const monitoring_frame::io::PinData &pin_data)
static std::vector< PinState > generateInputPinStates(const monitoring_frame::io::PinData &pin_data)
int64_t timestamp() const
Represents the set of all I/Os of the scanner and their states.
bool operator!=(const IOState &io_state) const
Root namespace in which the software components to communicate with the scanner (firmware-version: 2)...
std::ostream & operator<<(std::ostream &os, const PinState &pin_state)
psen_scan_v2
Author(s): Pilz GmbH + Co. KG
autogenerated on Sat Jun 22 2024 02:46:11