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

Represents a single I/O pin. More...

#include <io_state.h>

Public Member Functions

uint32_t id () const
 
std::string name () const
 
bool operator!= (const PinState &ps) const
 
bool operator== (const PinState &ps) const
 
 PinState (uint32_t pin_id, const std::string &name, bool state)
 
bool state () const
 

Private Attributes

uint32_t id_
 
std::string name_
 
bool state_
 

Detailed Description

Represents a single I/O pin.

Definition at line 29 of file io_state.h.

Constructor & Destructor Documentation

◆ PinState()

psen_scan_v2_standalone::PinState::PinState ( uint32_t  pin_id,
const std::string &  name,
bool  state 
)
Parameters
pin_idUnique id of the pin inside an I/O record.
nameName connected to the pin.
stateBinary state of the pin.

Definition at line 30 of file io_state.cpp.

Member Function Documentation

◆ id()

uint32_t psen_scan_v2_standalone::PinState::id ( ) const

Definition at line 44 of file io_state.cpp.

◆ name()

std::string psen_scan_v2_standalone::PinState::name ( ) const

Definition at line 49 of file io_state.cpp.

◆ operator!=()

bool psen_scan_v2_standalone::PinState::operator!= ( const PinState ps) const

Definition at line 39 of file io_state.cpp.

◆ operator==()

bool psen_scan_v2_standalone::PinState::operator== ( const PinState ps) const

Definition at line 34 of file io_state.cpp.

◆ state()

bool psen_scan_v2_standalone::PinState::state ( ) const

Definition at line 54 of file io_state.cpp.

Member Data Documentation

◆ id_

uint32_t psen_scan_v2_standalone::PinState::id_
private

Definition at line 45 of file io_state.h.

◆ name_

std::string psen_scan_v2_standalone::PinState::name_
private

Definition at line 46 of file io_state.h.

◆ state_

bool psen_scan_v2_standalone::PinState::state_
private

Definition at line 47 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