toposens-library
toposens_sensor_library
include
toposens
linux
socketinterface.h
Go to the documentation of this file.
1
8
#ifndef TOPOSENS_LINUX_SOCKETINTERFACE_H
/* include control, avoid multiple includes of header \
9
* file \
10
*/
11
#define TOPOSENS_LINUX_SOCKETINTERFACE_H
12
13
/*---- "project includes" -------------------------------------------------------------*/
14
#include "
toposens/sensor_lib.h
"
15
#ifdef CAN_AVAILABLE
16
/*---- <system includes> --------------------------------------------------------------*/
17
#include <linux/can.h>
18
#include <stdint.h>
19
/*---- "library includes" -------------------------------------------------------------*/
20
21
/*---- public macros and constants ----------------------------------------------------*/
22
23
/*---- public types -------------------------------------------------------------------*/
24
25
/*---- public variables prototypes ----------------------------------------------------*/
26
27
/*---- public functions prototypes ----------------------------------------------------*/
28
36
int
WriteFrame(
struct
can_frame* frame);
37
47
int
SetupSocket(
char
* InterfaceName_cp, uint32_t InterfaceBitrate_u32);
48
56
int
DeinitSocket();
57
65
void
RegisterReadCallback(
void
(*Callback)(
struct
can_frame* frame));
66
/*---- public inline functions --------------------------------------------------------*/
67
68
#endif
/* end of include control */
69
#endif // TOPOSENS_LINUX_SOCKETINTERFACE_H
sensor_lib.h
This file contains the highlevel interface prototypes to the low-level Protocol.
toposens_echo_driver
Author(s): Tobias Roth
, Dennis Maier
, Baris Yazici
autogenerated on Wed Mar 2 2022 01:12:32