11#include "dawn/porting/can.hxx"
12#include "dawn/proto/can/can.hxx"
14#ifdef CONFIG_DAWN_PROTO_CAN_EXTID
15# define CAN_EXTID_FLAG 1
17# define CAN_EXTID_FLAG 0
20#define CAN_SEG_SEQ_MAX 0x80
22#ifdef DAWN_PROTO_HAS_ISOTP
23static inline uint64_t canTimestampUs()
27 clock_systime_timespec(&ts);
28 return 1000000ull * ts.tv_sec + ts.tv_nsec / 1000;