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

Public Member Functions

Interface::Type getType () const override
 AnalogInput (Interface::Resolution res=Interface::RES_12BIT)
Interface::Resolution getResolution () const
void setQ (uint16_t q) override
Public Member Functions inherited from Interface
virtual uint16_t getQ () const
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

Additional Inherited Members

Public Types inherited from Interface
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
}
Protected Attributes inherited from Interface
String name
uint16_t Q = 0
bool _valid = false
bool _invalid = false

Member Function Documentation

◆ getType()

Interface::Type AnalogInput::getType ( ) const
inlineoverridevirtual

Implements Interface.

◆ setQ()

void AnalogInput::setQ ( uint16_t q)
inlineoverridevirtual

Reimplemented from Interface.


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