VLCB
Toggle main menu visibility
Loading...
Searching...
No Matches
CanServiceWithDiagnostics.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 "
CanService.h
"
9
10
namespace
VLCB
11
{
12
13
class
CanServiceWithDiagnostics
:
public
CanService
14
{
15
public
:
16
CanServiceWithDiagnostics
(
CanTransport
* tpt) :
CanService
(tpt) {}
17
18
virtual
void
reportDiagnostics
(
byte
serviceIndex,
byte
diagnosticsCode)
override
;
19
virtual
int
getDiagnosticCount
()
override
;
20
};
21
22
}
// VLCB
CanService.h
VLCB::CanServiceWithDiagnostics::getDiagnosticCount
virtual int getDiagnosticCount() override
report how many diagnostics this service supports.
Definition
CanServiceWithDiagnostics.cpp:67
VLCB::CanServiceWithDiagnostics::CanServiceWithDiagnostics
CanServiceWithDiagnostics(CanTransport *tpt)
Definition
CanServiceWithDiagnostics.h:16
VLCB::CanServiceWithDiagnostics::reportDiagnostics
virtual void reportDiagnostics(byte serviceIndex, byte diagnosticsCode) override
Report a given diagnostic value.
Definition
CanServiceWithDiagnostics.cpp:13
VLCB::CanService::CanService
CanService(CanTransport *tpt)
Definition
CanService.h:34
VLCB::CanTransport
Interface base class for CAN transport implementations.
Definition
CanTransport.h:35
VLCB
Definition
AbstractEventTeachingService.cpp:13
src
CanServiceWithDiagnostics.h
Generated by
1.18.0