VLCB
Toggle main menu visibility
Loading...
Searching...
No Matches
MinimumNodeServiceWithDiagnostics.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 "
MinimumNodeService.h
"
9
#include <
vlcbdefs.hpp
>
10
11
namespace
VLCB
12
{
13
14
struct
VlcbMessage
;
15
16
class
MinimumNodeServiceWithDiagnostics
:
public
MinimumNodeService
17
{
18
public
:
19
virtual
void
reportDiagnostics
(
byte
serviceIndex,
byte
diagnosticsCode)
override
;
20
virtual
int
getDiagnosticCount
()
override
;
21
22
protected
:
23
virtual
void
handleMessage
(
const
VlcbMessage
*msg)
override
;
24
virtual
void
diagNodeNumberChanged
()
override
;
25
26
private
:
27
void
handleRequestDiagnostics(
const
VlcbMessage
*msg,
unsigned
int
nn);
28
29
unsigned
int
diagNodeNumberChanges = 0;
30
};
31
32
}
MinimumNodeService.h
VLCB::MinimumNodeServiceWithDiagnostics
Definition
MinimumNodeServiceWithDiagnostics.h:17
VLCB::MinimumNodeServiceWithDiagnostics::getDiagnosticCount
virtual int getDiagnosticCount() override
report how many diagnostics this service supports.
Definition
MinimumNodeServiceWithDiagnostics.cpp:205
VLCB::MinimumNodeServiceWithDiagnostics::reportDiagnostics
virtual void reportDiagnostics(byte serviceIndex, byte diagnosticsCode) override
Report a given diagnostic value.
Definition
MinimumNodeServiceWithDiagnostics.cpp:168
VLCB::MinimumNodeServiceWithDiagnostics::handleMessage
virtual void handleMessage(const VlcbMessage *msg) override
Definition
MinimumNodeServiceWithDiagnostics.cpp:12
VLCB::MinimumNodeServiceWithDiagnostics::diagNodeNumberChanged
virtual void diagNodeNumberChanged() override
Definition
MinimumNodeServiceWithDiagnostics.cpp:200
VLCB::MinimumNodeService
Mandatory Service for node.
Definition
MinimumNodeService.h:26
VLCB
Definition
AbstractEventTeachingService.cpp:13
VLCB::VlcbMessage
VLCB message type.
Definition
Controller.h:38
vlcbdefs.hpp
src
MinimumNodeServiceWithDiagnostics.h
Generated by
1.18.0