Arduino C++ Library for VLCB
Loading...
Searching...
No Matches
CanTransport.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 <Arduino.h>
9
#include "Transport.h"
10
11
namespace
VLCB
12
{
13
20
struct
CANFrame
21
{
22
uint32_t id;
23
bool
ext;
24
bool
rtr;
25
uint8_t len;
26
uint8_t data[8];
27
};
29
34
class
CanTransport
:
public
Transport
35
{
36
public
:
38
virtual
bool
available() = 0;
39
virtual
CANFrame getNextCanFrame() = 0;
40
virtual
bool
sendCanFrame(CANFrame *msg) = 0;
41
42
inline
virtual
byte
getHardwareType() {
return
0; }
44
};
45
46
}
VLCB::CanTransport
Interface base class for CAN transport implementations.
Definition
CanTransport.h:35
VLCB
Definition
VLCB.h:50
src
CanTransport.h
Generated by
1.16.1