Loading...
Searching...
No Matches
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
36extern "C" {
37#endif
38
39#ifndef HAVE_CAN_T
44#endif
45
46#ifndef HAVE_CAN_CONF_T
50typedef int can_conf_t;
51#endif
52
59void can_init(can_t *dev, const can_conf_t *conf);
60
61#ifdef __cplusplus
62}
63#endif
64
65#endif /* PERIPH_CAN_H */
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:50
candev_t can_t
CAN device descriptor identifier.
Definition can.h:43
ESP CAN device configuration.
Definition can_esp.h:88
Low level device structure for ESP32 CAN (extension of candev_t)
Definition can_esp.h:64
Structure to hold driver state.
Definition candev.h:77