CANTram Framework 1.0.1
Dieses Framework ermöglicht die Nutzung der CANTram Hardware, einer Mikrocontroller basierten mdoularen Steuerung.
Loading...
Searching...
No Matches
Interface Class Referenceabstract
Inheritance diagram for Interface:

Public Types

enum  Resolution { RES_8BIT = 8 , RES_10BIT = 10 , RES_12BIT = 12 , RES_16BIT = 16 }
enum  Type {
  DIGITAL_INPUT , DIGITAL_OUTPUT , ANALOG_INPUT , ANALOG_OUTPUT ,
  RELAIS , BUS
}

Public Member Functions

virtual void setQ (uint16_t q)
virtual uint16_t getQ () const
virtual Type getType () const =0
void rename (const String &newName)
template<typename T>
T as ()
void validate ()
void validate (bool state)
void invalidate ()
bool isValid ()
bool isInvalid ()
String getName () const

Protected Attributes

String name
uint16_t Q = 0
bool _valid = false
bool _invalid = false

Member Function Documentation

◆ getType()

virtual Type Interface::getType ( ) const
pure virtual

Implemented in AnalogOutput.

◆ setQ()

virtual void Interface::setQ ( uint16_t q)
inlinevirtual

Reimplemented in AnalogOutput.


The documentation for this class was generated from the following file:
  • C:/Users/leowa/Documents/PlatformIO/Projects/CANTramFrameworkUsage/lib/CANTramFramework/include/Interface.h