VLCB
Loading...
Searching...
No Matches
SerialUserInterface.h
Go to the documentation of this file.
1// Copyright (C) Sven Rosvall (sven@rosvall.ie)
2// This file is part of VLCB-Arduino project on https://github.com/SvenRosvall/VLCB-Arduino
3// Licensed under the Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License.
4// The full licence can be found at: http://creativecommons.org/licenses/by-nc-sa/4.0/
5
6#pragma once
7
8#include "Service.h"
9#include "Configuration.h"
10#include "Transport.h"
11
12namespace VLCB
13{
20{
21public:
23 virtual VlcbServiceTypes getServiceID() const override { return SERVICE_ID_NONE; };
24 virtual byte getServiceVersionID() const override { return 1; };
25
26 virtual void process() override;
27 virtual void processAction(const Action &action) override;
29
30private:
31 void handleAction(const Action &action);
32 void processSerialInput();
33 void indicateMode(VlcbModeParams i);
34};
35
36}
User interface "service" that communicates via a serial connection.
Definition SerialUserInterface.h:20
virtual void process() override
This method that be called regularly from the VLCB core to let the service perform regular tasks.
Definition SerialUserInterface.cpp:15
virtual byte getServiceVersionID() const override
Return the version of the service specification implemented by this service.
Definition SerialUserInterface.h:24
virtual void processAction(const Action &action) override
Called when there is an action available.
Definition SerialUserInterface.cpp:20
virtual VlcbServiceTypes getServiceID() const override
Return a unique ID for this service.
Definition SerialUserInterface.h:23
Interface base class for all VLCB services.
Definition Service.h:25
Definition AbstractEventTeachingService.cpp:13
An action to be performed.
Definition Controller.h:51
VlcbModeParams
Definition vlcbdefs.hpp:562
VlcbServiceTypes
Definition vlcbdefs.hpp:487
@ SERVICE_ID_NONE
Definition vlcbdefs.hpp:491