can.h
Go to the documentation of this file.
1 /*
2  * Copyright (C) 2018 OTA keys S.A.
3  *
4  * This file is subject to the terms and conditions of the GNU Lesser
5  * General Public License v2.1. See the file LICENSE in the top level
6  * directory for more details.
7  */
8 
9 #pragma once
10 
31 #include "periph_cpu.h"
32 #include "can/candev.h"
33 
34 #ifdef __cplusplus
35 extern "C" {
36 #endif
37 
38 #ifndef HAVE_CAN_T
42 typedef candev_t can_t;
43 #endif
44 
45 #ifndef HAVE_CAN_CONF_T
49 typedef int can_conf_t;
50 #endif
51 
58 void can_init(can_t *dev, const can_conf_t *conf);
59 
60 #ifdef __cplusplus
61 }
62 #endif
63 
Definitions for low-level CAN driver interface.
void can_init(can_t *dev, const can_conf_t *conf)
Initialize a periph CAN device with the given configuration.
int can_conf_t
CAN configuration identifier.
Definition: can.h:49
candev_t can_t
CAN device descriptor identifier.
Definition: can.h:42
ESP CAN device configuration.
Definition: can_esp.h:87
Low level device structure for ESP32 CAN (extension of candev_t)
Definition: can_esp.h:63
Structure to hold driver state.
Definition: candev.h:76