AuboCaps  0.6.0
arcs::aubo_scope::DigitalIo Class Reference

This interface provides support for digital I/Os. More...

#include <digital_io.h>

Inheritance diagram for arcs::aubo_scope::DigitalIo:
Collaboration diagram for arcs::aubo_scope::DigitalIo:

Public Member Functions

 DigitalIo (DigitalIo &f)
 
 DigitalIo (DigitalIo &&f)
 
 ~DigitalIo ()
 
bool setValue (bool high)
 Set digital I/O output signal. More...
 
bool getValue ()
 
- Public Member Functions inherited from arcs::aubo_scope::Io
 Io (Io &f)
 
 Io (Io &&f)
 
virtual ~Io ()
 
std::string getDisplayName () const
 
std::string getDefaultName () const
 
std::string getValueStr () const
 
IoType getType () const
 
InterfaceType getInterfaceType () const
 
bool isInput () const
 
bool isResolvable () const
 Some I/Os, such as MODBUS I/Os and analog Tool inputs, are in some situations not present in AuboScope or available for use. More...
 
size_t hashCode ()
 

Private Member Functions

 DigitalIo ()
 

Private Attributes

void * d_ { nullptr }
 

Friends

class DataSwitch
 

Additional Inherited Members

- Public Types inherited from arcs::aubo_scope::Io
enum  IoType : int {
  DIGITAL, ANALOG, INTEGER, BOOLEAN,
  DOUBLE
}
 
enum  InterfaceType : int {
  STANDARD, TOOL, CONFIGURABLE, LINKIO,
  MODBUS, GENERAL_PURPOSE
}
 
- Protected Member Functions inherited from arcs::aubo_scope::Io
 Io ()
 

Detailed Description

This interface provides support for digital I/Os.

Definition at line 14 of file digital_io.h.

Constructor & Destructor Documentation

arcs::aubo_scope::DigitalIo::DigitalIo ( DigitalIo f)
arcs::aubo_scope::DigitalIo::DigitalIo ( DigitalIo &&  f)
arcs::aubo_scope::DigitalIo::~DigitalIo ( )
arcs::aubo_scope::DigitalIo::DigitalIo ( )
private

Member Function Documentation

bool arcs::aubo_scope::DigitalIo::getValue ( )
Returns
Returns the last reading of the I/O.
bool arcs::aubo_scope::DigitalIo::setValue ( bool  high)

Set digital I/O output signal.

Note that the I/O must be an output I/O.

Parameters
highthe digital value to be set.
Returns
true if the digital signal was set, false if the signal was not set, e.g. because the controller was not running.

Friends And Related Function Documentation

friend class DataSwitch
friend

Definition at line 38 of file digital_io.h.

Member Data Documentation

void* arcs::aubo_scope::DigitalIo::d_ { nullptr }
private

Definition at line 40 of file digital_io.h.


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