automotive-message-broker
0.14.803
Main Page
Related Pages
Modules
Namespaces
Classes
Files
Examples
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Groups
Pages
plugins
common
canbusimpl.h
1
/*
2
Copyright (C) 2012 Intel Corporation
3
Copyright (C) 2015 Cogent Embedded Inc.
4
Copyright (C) 2015 Renesas Electronics Corporation
5
6
This library is free software; you can redistribute it and/or
7
modify it under the terms of the GNU Lesser General Public
8
License as published by the Free Software Foundation; either
9
version 2.1 of the License, or (at your option) any later version.
10
11
This library is distributed in the hope that it will be useful,
12
but WITHOUT ANY WARRANTY; without even the implied warranty of
13
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14
Lesser General Public License for more details.
15
16
You should have received a copy of the GNU Lesser General Public
17
License along with this library; if not, write to the Free Software
18
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
19
*/
20
21
#ifndef CANBUSIMPL_H
22
#define CANBUSIMPL_H
23
29
#include "canbus.h"
30
31
class
CANObserver
;
32
class
CANAdapter
;
33
40
class
CANBusImpl
:
public
CANBus
41
{
42
public
:
46
CANBusImpl
(
CANObserver
& observer);
47
virtual
~
CANBusImpl
();
48
55
bool
start
(
const
char
*
name
);
60
void
stop
();
67
bool
sendStandardFrame
(
const
can_frame& frame);
74
bool
sendExtendedFrame
(
const
can_frame& frame);
83
virtual
bool
registerCyclicMessageForReceive
(
int
canId,
double
minCycleTime,
double
maxCycleTime);
90
virtual
bool
unregisterMessageForReceive
(
int
canId);
91
92
protected
:
97
virtual
void
init
();
98
99
private
:
105
CANObserver
& mObserver;
111
CANAdapter
* mAdapter;
112
};
113
114
#endif // CANBUSIMPL_H
115
Generated by
1.8.2