Go to the documentation of this file.
   16 #ifndef PSEN_SCAN_V2_STANDALONE_IO_STATE_H 
   17 #define PSEN_SCAN_V2_STANDALONE_IO_STATE_H 
   41   std::string 
name() 
const;
 
   55   return fmt::format(
"{} = {}", pin.
name(), pin.
state());
 
   61   std::stringstream strstr;
 
   63   for (
auto it = pins.begin(); std::next(it) < pins.end(); ++it)
 
   82   std::vector<PinState> 
input() 
const;
 
   84   std::vector<PinState> 
output() 
const;
 
  109 std::ostream& 
operator<<(std::ostream& os, 
const IOState& io_state);
 
  112 #endif  // PSEN_SCAN_V2_STANDALONE_IO_STATE_H 
  
Represents a single I/O pin.
std::string formatPinStates(const std::vector< PinState > &pins)
Formats a vector of PinStates.
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::string formatPinState(const PinState &pin)
Formats a PinState just using its name and state. (e.g. Safety 1 intrusion = true)
std::vector< PinState > changedOutputStates(const IOState &ref_state) const
bool operator==(const PinState &ps) const
friend std::ostream & operator<<(std::ostream &os, const IOState &io_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
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