Public Member Functions | Private Attributes | Friends | List of all members
psen_scan_v2_standalone::IOState Class Reference

Represents the set of all I/Os of the scanner and their states. More...

#include <io_state.h>

Public Member Functions

std::vector< PinStatechangedInputStates (const IOState &ref_state) const
 
std::vector< PinStatechangedOutputStates (const IOState &ref_state) const
 
std::vector< PinStateinput () const
 
 IOState ()=default
 
 IOState (data_conversion_layer::monitoring_frame::io::PinData pin_data, const int64_t &timestamp)
 
bool operator!= (const IOState &io_state) const
 
bool operator== (const IOState &io_state) const
 
std::vector< PinStateoutput () const
 
int64_t timestamp () const
 

Private Attributes

data_conversion_layer::monitoring_frame::io::PinData pin_data_ {}
 
int64_t timestamp_ {}
 

Friends

std::ostream & operator<< (std::ostream &os, const IOState &io_state)
 

Detailed Description

Represents the set of all I/Os of the scanner and their states.

Definition at line 76 of file io_state.h.

Constructor & Destructor Documentation

◆ IOState() [1/2]

psen_scan_v2_standalone::IOState::IOState ( )
default

◆ IOState() [2/2]

psen_scan_v2_standalone::IOState::IOState ( data_conversion_layer::monitoring_frame::io::PinData  pin_data,
const int64_t &  timestamp 
)

Definition at line 65 of file io_state.cpp.

Member Function Documentation

◆ changedInputStates()

std::vector< PinState > psen_scan_v2_standalone::IOState::changedInputStates ( const IOState ref_state) const
Parameters
ref_stateanother IOState that is used as reference for the changed state calculation.
Returns
std::vector<PinState> containing a PinState for every changed input pin.

Definition at line 95 of file io_state.cpp.

◆ changedOutputStates()

std::vector< PinState > psen_scan_v2_standalone::IOState::changedOutputStates ( const IOState ref_state) const
Parameters
ref_stateanother IOState that is used as reference for the changed state calculation.
Returns
std::vector<PinState> containing a PinState for every changed output pin.

Definition at line 100 of file io_state.cpp.

◆ input()

std::vector< PinState > psen_scan_v2_standalone::IOState::input ( ) const
Returns
std::vector<PinState> containing a PinState for every (logical) input pin of the scanner.

Definition at line 80 of file io_state.cpp.

◆ operator!=()

bool psen_scan_v2_standalone::IOState::operator!= ( const IOState io_state) const

Definition at line 75 of file io_state.cpp.

◆ operator==()

bool psen_scan_v2_standalone::IOState::operator== ( const IOState io_state) const

Definition at line 70 of file io_state.cpp.

◆ output()

std::vector< PinState > psen_scan_v2_standalone::IOState::output ( ) const
Returns
std::vector<PinState> containing a PinState for every output pin of the scanner.

Definition at line 85 of file io_state.cpp.

◆ timestamp()

int64_t psen_scan_v2_standalone::IOState::timestamp ( ) const
Returns
time[ns] of the monitoring frame this state is linked to.

Definition at line 90 of file io_state.cpp.

Friends And Related Function Documentation

◆ operator<<

std::ostream& operator<< ( std::ostream &  os,
const IOState io_state 
)
friend

Definition at line 105 of file io_state.cpp.

Member Data Documentation

◆ pin_data_

data_conversion_layer::monitoring_frame::io::PinData psen_scan_v2_standalone::IOState::pin_data_ {}
private

Definition at line 105 of file io_state.h.

◆ timestamp_

int64_t psen_scan_v2_standalone::IOState::timestamp_ {}
private

Definition at line 106 of file io_state.h.


The documentation for this class was generated from the following files:


psen_scan_v2
Author(s): Pilz GmbH + Co. KG
autogenerated on Sat Nov 5 2022 02:13:36