Dawn Framework
1.0
Universal data acquisition framework for embedded systems
dawn
include
dawn
porting
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
10
namespace
dawn
11
{
12
namespace
porting
13
{
19
struct
canmsg_s
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
40
int
can_open(
const
char
*path);
41
48
void
can_close(
int
fd);
49
57
int
can_init(
int
fd);
58
67
int
can_read(
int
fd, FAR
dawn::porting::canmsg_s
*msg);
68
77
int
can_send(
int
fd, FAR
dawn::porting::canmsg_s
*msg);
dawn
Out-of-tree user-extension hooks for Dawn.
Definition
bindable.hxx:13
dawn::porting::canmsg_s
Common CAN message format for chardev and socketCAN.
Definition
can.hxx:20
Generated by
1.9.8