BusBricks: /Users/felixschulke/Developement/Arduino/Modbus_RTU/Modbus_RTU/Modbus-RTU/lib/ModbusRTU/ServiceInterface_modbusRTU.h Source File
BusBricks  0.1
Customize bus-communication
Loading...
Searching...
No Matches
ServiceInterface_modbusRTU.h
Go to the documentation of this file.
1
24#ifndef SERVICEINTERFACE_MODBUSRTU
25#define SERVICEINTERFACE_MODBUSRTU
26#ifdef ARDUINO
27 #include <Arduino.h>
28#else
29 #include <mockArduino.h>
30 using namespace arduinoMocking;
31#endif
32
33#include <ServiceInterface.h>
35#include <Frame_modbusRTU.h>
36#include <MessageService.h>
37
47class ServiceInterface_modbusRTU: public ServiceInterface<CommInterface_modbusRTU, Frame_modbusRTU>{
48 public:
56
62
82 void communicate() override;
83
84 private:
102 void getPDU_from_services() override;
103
104};
105
106#endif // SERVICEINTERFACE_MODBUSRTU
The Modbus-RTU CommInterface-class specifies a communication interface with SoftwareSerial as interfa...
Definition CommInterface_modbusRTU.h:50
ServiceCluster-base-class to add class-functions to vtable.
Definition ServiceCluster.h:40
Service-Interface-class for Modbus-RTU: Impart incoming frames from the CommInterface to the designat...
Definition ServiceInterface_modbusRTU.h:47
~ServiceInterface_modbusRTU()
Destroy the ServiceInterface_modbusRTU object.
Definition ServiceInterface_modbusRTU.cpp:31
ServiceInterface_modbusRTU(ServiceClusterBase *services, CommInterface_modbusRTU *comm_interface)
Construct a new ServiceInterface_modbusRTU object.
Definition ServiceInterface_modbusRTU.cpp:27
void communicate() override
Manages data transfer between the CommInterface and services.
Definition ServiceInterface_modbusRTU.cpp:72
Template for generic Service-Interface Defines the handling of incoming frames from CommInterface to ...
Definition ServiceInterface.h:56
CommInterface_modbusRTU * comm_interface
Definition ServiceInterface.h:80
ServiceClusterBase * services
Definition ServiceInterface.h:83
Provides mock implementations of Arduino framework functions and classes for native builds.
Definition mockArduino.cpp:28