UseCanNoLxrt.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 //----------------------------------------------------------------------
25 //----------------------------------------------------------------------
26 #ifndef _icl_hardware_can_UseCanNoLxrt_h_
27 #define _icl_hardware_can_UseCanNoLxrt_h_
28 
30 
31 namespace icl_hardware {
32 namespace can {
33 
35 inline bool CanDriverLxrtSupport()
36 {
37  return false;
38 }
39 
41 inline int CreateCanFifoUser(int device_id,
42  unsigned acceptance_code, unsigned acceptance_mask, unsigned int baud_rate,
43  unsigned send_fifo_size, unsigned receive_fifo_size)
44 {
45  errno = ENOSYS;
46  return -1;
47 }
48 
50 inline int DestroyCanFifoUser(int device_id, int user_id)
51 {
52  errno = ENOSYS;
53  return -1;
54 }
55 
57 inline int CanFifoSend(int device_id, const tCanMessage *msg)
58 {
59  errno = ENOSYS;
60  return -1;
61 }
62 
64 inline int CanFifoReceive(int device_id, int user, tCanMessage *msg)
65 {
66  errno = ENOSYS;
67  return -1;
68 }
69 
70 
72 inline int CanFifoReset(int device_id)
73 {
74  errno = ENOSYS;
75  return -1;
76 }
77 
78 }
79 }
80 
81 #endif
int CanFifoReceive(int device_id, int user, tCanMessage *msg)
Receive a message via CAN-FIFO.
Definition: UseCanNoLxrt.h:64
Implements a struct representing a can message.
Definition: tCanMessage.h:43
int DestroyCanFifoUser(int device_id, int user_id)
Destroys a can FIFO in kernel space.
Definition: UseCanNoLxrt.h:50
int CreateCanFifoUser(int device_id, unsigned acceptance_code, unsigned acceptance_mask, unsigned int baud_rate, unsigned send_fifo_size, unsigned receive_fifo_size)
Creates a can FIFO in kernel space.
Definition: UseCanNoLxrt.h:41
int CanFifoSend(int device_id, const tCanMessage *msg)
Send a message via CAN-FIFO.
Definition: UseCanNoLxrt.h:57
int CanFifoReset(int device_id)
Reset a CAN-device.
Definition: UseCanNoLxrt.h:72
bool CanDriverLxrtSupport()
no support for LXRT available
Definition: UseCanNoLxrt.h:35
Contains CAN driver interface functions.


fzi_icl_can
Author(s):
autogenerated on Mon Jun 10 2019 13:17:02