Loading...
Searching...
No Matches
dll.h
Go to the documentation of this file.
1/*
2 * Copyright (C) 2016 OTA keys S.A.
3 *
4 * This file is subject to the terms and conditions of the GNU Lesser General
5 * Public License v2.1. See the file LICENSE in the top level directory for more
6 * details.
7 */
8
20#ifndef CAN_DLL_H
21#define CAN_DLL_H
22
23#ifdef __cplusplus
24extern "C" {
25#endif
26
27#include "can/common.h"
28#include "can/pkt.h"
29#include "can/device.h"
30#include "thread.h"
31
37int can_dll_init(void);
38
50
64
77
90
102
103#ifdef __cplusplus
104}
105#endif
106
107#endif /* CAN_DLL_H */
108
CAN memory allocation module.
int can_dll_dispatch_tx_conf(can_pkt_t *pkt)
Dispatch a tx confirmation.
int can_dll_dispatch_bus_off(kernel_pid_t pid)
Dispatch RX error from a device.
int can_dll_dispatch_tx_error(can_pkt_t *pkt)
Dispatch a tx error.
int can_dll_dispatch_rx_frame(struct can_frame *frame, kernel_pid_t pid)
Dispatch a received frame.
int can_dll_register_candev(candev_dev_t *candev)
Register a CAN device into the DLL.
int can_dll_init(void)
Initialize the CAN DLL.
int16_t kernel_pid_t
Unique process identifier.
Definition sched.h:139
Controller Area Network frame.
Definition can.h:88
A CAN packet.
Definition pkt.h:41
candev descriptor to pass to the device thread
Definition device.h:69
Structure to hold driver state.
Definition candev.h:77
Definitions of high-level CAN interface.
Definitions of CAN device interface.