BusBricks: /Users/felixschulke/Developement/Arduino/Modbus_RTU/Modbus_RTU/Modbus-RTU/lib/Frame/Frame.h Source File
BusBricks  0.1
Customize bus-communication
Loading...
Searching...
No Matches
Frame.h
Go to the documentation of this file.
1
24#ifndef FRAME_H
25#define FRAME_H
26#ifdef ARDUINO
27 #include <Arduino.h> // include Arduino-Library for platformIO-build
28#else
29 #include <mockArduino.h>
30 using namespace arduinoMocking;
31#endif
32
33#include<Content.h>
34#include<CharArray.h>
35
50class Frame: public Content<String, CharArray>{
51 public:
56 Frame();
57
62 ~Frame();
63
69 Frame(String* pdu);
70
76 Frame(CharArray* frame);
77
82 virtual uint8_t getServiceId()=0;
83};
84#endif // FRAME_H
Class for storing char-array (byte-array) together with size. The Array is stored on Heap-memory and ...
Definition CharArray.h:38
The cascading of processing information and the rules applied to it lead to the concept of content- a...
Definition Content.h:45
Frame-Class as derived class from Content The derived classes define: -the conversion from a given pa...
Definition Frame.h:50
~Frame()
Destroy the Frame object.
Definition Frame.cpp:37
Frame()
Construct a new empty Frame object.
Definition Frame.cpp:28
virtual uint8_t getServiceId()=0
Get the ServiceId, the PDU of the Frame belongs to (necessary for Service-multiplexing)....
Provides mock implementations of Arduino framework functions and classes for native builds.
Definition mockArduino.cpp:28
std::string String
Alias for std::string to simulate Arduino's String type.
Definition mockArduino.h:51