Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
src
icl_hardware_can
src
icl_hardware_can
tCanDeviceT.h
Go to the documentation of this file.
1
// this is for emacs file handling -*- mode: c++; indent-tabs-mode: nil -*-
2
3
// -- BEGIN LICENSE BLOCK ----------------------------------------------
4
// This file is part of FZIs ic_workspace.
5
//
6
// This program is free software licensed under the LGPL
7
// (GNU LESSER GENERAL PUBLIC LICENSE Version 3).
8
// You can find a copy of this license in LICENSE folder in the top
9
// directory of the source code.
10
//
11
// © Copyright 2016 FZI Forschungszentrum Informatik, Karlsruhe, Germany
12
//
13
// -- END LICENSE BLOCK ------------------------------------------------
14
15
//----------------------------------------------------------------------
28
//----------------------------------------------------------------------
29
#ifndef ICL_HARDWARE_CAN_T_CAN_DEVICE_T_H_INCLUDED
30
#define ICL_HARDWARE_CAN_T_CAN_DEVICE_T_H_INCLUDED
31
32
#include <stdlib.h>
33
34
#include "
icl_hardware_can/tCanDevice.h
"
35
36
namespace
icl_hardware
{
37
namespace
can {
38
39
struct
tCanMessage
;
40
41
template
<
typename
TCanDescriptor>
42
class
tCanDeviceT
:
public
tCanDevice
43
{
44
public
:
45
tCanDeviceT
(
const
char
*device_name,
int
flags,
46
unsigned
char
acceptance_code,
unsigned
char
acceptance_mask,
unsigned
int
baud_rate,
47
unsigned
send_fifo_size,
unsigned
receive_fifo_size);
48
49
virtual
~tCanDeviceT
();
50
virtual
int
Send
(
const
tCanMessage
&msg);
51
virtual
int
Receive
(
tCanMessage
&msg);
52
virtual
void
Reset
();
53
54
virtual
bool
IsInitialized
();
55
56
private
:
57
TCanDescriptor
m_can_device
;
58
int
m_can_user
;
59
};
60
61
}
62
}
63
64
#include "
icl_hardware_can/tCanDeviceT.hpp
"
65
66
#endif
tCanDevice.h
icl_hardware::can::tCanMessage
Implements a struct representing a can message.
Definition:
tCanMessage.h:43
icl_hardware::can::tCanDeviceT::tCanDeviceT
tCanDeviceT(const char *device_name, int flags, unsigned char acceptance_code, unsigned char acceptance_mask, unsigned int baud_rate, unsigned send_fifo_size, unsigned receive_fifo_size)
Definition:
tCanDeviceT.hpp:46
tCanDeviceT.hpp
icl_hardware::can::tCanDeviceT::m_can_device
TCanDescriptor m_can_device
Definition:
tCanDeviceT.h:57
icl_hardware::can::tCanDeviceT::m_can_user
int m_can_user
Definition:
tCanDeviceT.h:58
icl_hardware::can::tCanDevice
Definition:
tCanDevice.h:39
icl_hardware::can::tCanDeviceT::Send
virtual int Send(const tCanMessage &msg)
Definition:
tCanDeviceT.hpp:119
icl_hardware::can::tCanDeviceT::IsInitialized
virtual bool IsInitialized()
Definition:
tCanDeviceT.hpp:179
icl_hardware::can::tCanDeviceT::Reset
virtual void Reset()
Definition:
tCanDeviceT.hpp:159
icl_hardware
Definition:
CanMessageHelper.h:33
icl_hardware::can::tCanDeviceT::~tCanDeviceT
virtual ~tCanDeviceT()
Definition:
tCanDeviceT.hpp:101
icl_hardware::can::tCanDeviceT
Definition:
tCanDeviceT.h:42
icl_hardware::can::tCanDeviceT::Receive
virtual int Receive(tCanMessage &msg)
Definition:
tCanDeviceT.hpp:139
fzi_icl_can
Author(s):
autogenerated on Mon Jun 10 2019 13:17:02