Dawn Framework 1.0
Universal data acquisition framework for embedded systems
can.hxx
1// dawn/include/dawn/porting/can.hxx
2//
3// SPDX-License-Identifier: Apache-2.0
4//
5
6#pragma once
7
8#include "dawn/porting/nuttx/can.hxx"
9
10namespace dawn
11{
12namespace porting
13{
20{
21 uint32_t id;
22 uint8_t len;
23 uint8_t rtr : 1;
24 uint8_t extid : 1;
25 uint8_t error : 1;
26 uint8_t _res : 5;
27 uint8_t data[CAN_DATA_MAX];
28};
29
30} // namespace porting
31} // namespace dawn
32
40int can_open(const char *path);
41
48void can_close(int fd);
49
57int can_init(int fd);
58
67int can_read(int fd, FAR dawn::porting::canmsg_s *msg);
68
77int can_send(int fd, FAR dawn::porting::canmsg_s *msg);
Out-of-tree user-extension hooks for Dawn.
Definition bindable.hxx:13
Common CAN message format for chardev and socketCAN.
Definition can.hxx:20