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 
29 #ifndef PERIPH_CAN_H
30 #define PERIPH_CAN_H
31 
32 #include "periph_cpu.h"
33 #include "can/candev.h"
34 
35 #ifdef __cplusplus
36 extern "C" {
37 #endif
38 
39 #ifndef HAVE_CAN_T
40 
43 typedef candev_t can_t;
44 #endif
45 
46 #ifndef HAVE_CAN_CONF_T
47 
50 typedef int can_conf_t;
51 #endif
52 
59 void can_init(can_t *dev, const can_conf_t *conf);
60 
61 #ifdef __cplusplus
62 }
63 #endif
64 
65 #endif /* PERIPH_CAN_H */
66 
candev
Structure to hold driver state.
Definition: candev.h:78
can_t
candev_t can_t
CAN device descriptor identifier.
Definition: can.h:43
can_init
void can_init(can_t *dev, const can_conf_t *conf)
Initialize a periph CAN device with the given configuration.
can_conf_t
ESP CAN device configuration.
Definition: can_esp.h:98
can_conf_t
int can_conf_t
CAN configuration identifier.
Definition: can.h:50
candev.h
Definitions for low-level CAN driver interface.
can
Low level device structure for ESP32 CAN (extension of candev_t)
Definition: can_esp.h:64