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

Public Member Functions

Interface::Type getType () const override
void setBaudrate (uint32_t baudrate)
void setDataBits (UARTCore::DataBits dataBits)
void setParity (UARTCore::Parity parity)
void setStopBits (UARTCore::StopBits stopBits)
bool send (char data[], size_t length)
size_t read (char *buffer)
size_t available ()
void setUartCore (UARTCore *core)
UARTCore * getUartCore ()
Public Member Functions inherited from Interface
virtual void setQ (uint16_t q)
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 UARTInterface::getType ( ) const
inlineoverridevirtual

Implements Interface.


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