BusBricks: /Users/felixschulke/Developement/Arduino/Modbus_RTU/Modbus_RTU/Modbus-RTU/lib/Service/Service.h File Reference
BusBricks  0.1
Customize bus-communication
Loading...
Searching...
No Matches
Service.h File Reference
#include <mockArduino.h>
#include <cstring>
#include "Content.h"
#include "Content_stack.h"
Include dependency graph for Service.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  ServiceBase
 Service-base-class to add class-functions to vtable. More...
 
class  Service< content_class, stackSize >
 Service-Template to derive a Service class by defining the Content (derived Class of "Content") to handle and the size of the stacks (send and receive). A Service has to be instantiated with a unique service-ID and an instance-ID, the service-instance should use for it's communication. E.g.: Messenger-service with service-id "m" (specified in derived class, same on every host) is instantiated with a host-specific ID to identify the instances. The derived classes have to define the stack-processing to handle the payload at the rec-stack and add payload to the send-stack. Each derived class has a unique serviceID to identify the Service-type and each instance in the communication-network has a unique instanceID. More...
 

Detailed Description

Author
Felix Schuelke (flxsc.nosp@m.ode@.nosp@m.gmail.nosp@m..com)
Version
0.1
Date
2024-08-18

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more details.

You should have received a copy of the GNU Affero General Public License along with this program. If not, see https://www.gnu.org/licenses/.