Gilles DOFFE
ae51a22fbb
can: use frame len instead of can_dlc
...
RIOT implementation of CAN bus relies on SocketCAN model.
Since commit c398e56 (can: add optional DLC element to Classical CAN
frame structure), '__u8 can_dlc' attribute of struct can_frame is
considered as deprecated in SocketCAN and kept for legacy support.
Attribute '__u8 len' should be used instead.
union {
/* CAN frame payload length in byte (0 .. CAN_MAX_DLEN)
* was previously named can_dlc so we need to carry that
* name for legacy support
*/
__u8 len;
__u8 can_dlc; /* deprecated */
};
Moreover, CAN FD frame structure does not support legacy attribute
'can_dlc', making 'len' mandatory for incoming CAN FD support in RIOT.
struct canfd_frame {
canid_t can_id; /* 32 bit CAN_ID + EFF/RTR/ERR flags */
__u8 len; /* frame payload length in byte */
__u8 flags; /* additional flags for CAN FD */
__u8 __res0; /* reserved / padding */
__u8 __res1; /* reserved / padding */
__u8 data[CANFD_MAX_DLEN]
__attribute__((aligned(8)));
};
Signed-off-by: Gilles DOFFE <gilles.doffe@rtone.fr>
2025-01-29 20:51:22 +01:00
..
2024-03-26 14:53:35 +01:00
2024-03-26 14:53:35 +01:00
2024-03-26 14:53:35 +01:00
2024-03-26 14:53:35 +01:00
2024-03-26 14:53:35 +01:00
2024-03-26 14:53:35 +01:00
2024-03-26 14:53:35 +01:00
2024-03-26 14:53:35 +01:00
2024-03-26 14:53:35 +01:00
2024-04-15 20:59:44 +02:00
2024-03-26 14:53:35 +01:00
2024-03-26 14:53:35 +01:00
2024-03-26 14:53:35 +01:00
2024-03-26 14:53:35 +01:00
2024-01-30 09:31:00 +01:00
2023-07-11 21:22:02 +02:00
2024-07-29 11:45:58 +02:00
2024-05-28 12:20:54 +02:00
2024-03-26 14:53:35 +01:00
2025-01-20 20:55:21 +01:00
2024-03-26 14:53:35 +01:00
2024-03-26 14:53:35 +01:00
2024-05-07 07:57:41 +02:00
2024-03-26 14:53:35 +01:00
2024-03-26 14:53:35 +01:00
2024-03-26 14:53:35 +01:00
2024-03-26 14:53:35 +01:00
2025-01-29 20:51:22 +01:00
2025-01-20 20:55:21 +01:00
2024-01-30 09:31:00 +01:00
2023-05-04 12:45:07 +02:00
2024-03-26 14:53:35 +01:00
2024-03-26 14:53:35 +01:00
2024-03-26 14:53:35 +01:00
2024-03-26 14:53:35 +01:00
2024-03-26 14:53:35 +01:00
2024-03-26 14:53:35 +01:00
2024-10-21 15:13:23 +02:00
2025-01-20 20:55:21 +01:00
2024-03-26 14:54:22 +01:00
2024-03-26 14:53:35 +01:00
2024-03-26 14:53:35 +01:00
2024-03-26 14:53:35 +01:00
2024-03-26 14:53:35 +01:00
2024-03-26 14:53:35 +01:00
2024-03-26 14:53:35 +01:00
2024-03-26 14:53:35 +01:00
2024-03-26 14:54:22 +01:00
2024-03-26 14:53:35 +01:00
2024-03-26 14:53:35 +01:00
2023-07-11 21:22:02 +02:00
2023-07-11 21:22:02 +02:00
2024-03-26 14:54:22 +01:00
2024-03-26 14:53:35 +01:00
2024-03-26 14:53:35 +01:00
2024-03-26 14:53:35 +01:00
2024-03-26 14:53:35 +01:00
2024-03-26 14:53:35 +01:00
2024-03-27 10:28:14 +01:00
2024-03-27 10:28:14 +01:00
2024-03-26 14:53:35 +01:00
2024-03-26 14:53:35 +01:00
2024-03-26 14:53:35 +01:00
2024-03-26 14:53:35 +01:00
2024-03-26 14:53:35 +01:00
2024-03-26 14:53:35 +01:00
2024-03-26 14:53:35 +01:00
2024-03-26 14:53:35 +01:00
2024-03-26 14:53:35 +01:00
2024-03-26 14:53:35 +01:00
2023-07-11 21:22:02 +02:00
2024-03-26 14:53:35 +01:00
2024-03-26 14:53:35 +01:00
2024-03-26 14:53:35 +01:00
2024-03-26 14:53:35 +01:00
2023-05-12 16:36:40 +02:00
2024-03-26 14:53:35 +01:00
2024-03-26 14:53:35 +01:00
2024-03-26 14:53:35 +01:00
2024-07-29 11:45:58 +02:00
2024-03-26 14:53:35 +01:00
2024-03-26 14:53:35 +01:00
2023-07-11 21:22:02 +02:00
2024-03-26 14:53:35 +01:00
2024-03-26 14:53:35 +01:00
2024-03-27 16:39:56 +00:00
2024-03-26 14:53:35 +01:00
2024-07-29 11:45:58 +02:00
2024-03-26 14:53:35 +01:00
2023-12-21 12:02:37 +01:00
2024-06-12 15:09:16 +02:00
2024-03-26 14:53:35 +01:00
2023-07-11 21:22:02 +02:00
2024-03-26 14:53:35 +01:00
2024-03-26 14:53:35 +01:00
2024-03-26 14:53:35 +01:00
2024-03-26 14:53:35 +01:00
2024-03-26 14:53:35 +01:00
2024-03-26 14:53:35 +01:00
2024-03-26 14:53:35 +01:00
2024-05-24 18:07:28 +02:00
2023-07-11 21:22:02 +02:00
2023-07-11 21:22:02 +02:00
2024-04-10 17:06:18 +02:00
2024-03-26 14:53:35 +01:00
2024-03-26 14:53:35 +01:00
2024-03-27 10:28:14 +01:00
2024-03-26 14:53:35 +01:00
2025-01-20 20:55:21 +01:00
2025-01-28 19:28:34 +01:00
2023-05-04 12:45:07 +02:00
2024-03-26 14:53:35 +01:00
2024-03-26 14:53:35 +01:00
2024-03-26 14:53:35 +01:00
2024-03-26 14:53:35 +01:00
2024-03-26 14:53:35 +01:00
2024-03-26 14:53:35 +01:00
2024-03-26 14:53:35 +01:00
2024-07-29 11:45:58 +02:00
2024-06-13 14:52:08 +02:00
2024-03-26 14:53:35 +01:00
2024-03-26 14:53:35 +01:00
2024-03-26 14:53:35 +01:00
2024-03-26 14:54:22 +01:00
2024-03-26 14:53:35 +01:00
2024-01-25 09:18:10 +01:00
2024-03-26 14:53:35 +01:00
2024-03-26 14:53:35 +01:00
2024-03-26 14:53:35 +01:00
2024-03-26 14:53:35 +01:00
2024-03-26 14:53:35 +01:00
2024-03-26 14:53:35 +01:00
2024-03-26 14:53:35 +01:00
2024-03-26 14:53:35 +01:00
2024-03-26 14:53:35 +01:00
2024-03-26 14:53:35 +01:00
2024-03-26 14:53:35 +01:00
2024-03-26 14:53:35 +01:00
2024-03-26 14:53:35 +01:00
2024-03-26 14:53:35 +01:00
2024-03-26 14:53:35 +01:00
2024-03-26 14:53:35 +01:00
2024-03-26 14:53:35 +01:00
2024-03-26 14:53:35 +01:00
2024-03-26 14:53:35 +01:00
2024-03-26 14:53:35 +01:00
2024-03-26 14:53:35 +01:00
2024-03-26 14:53:35 +01:00
2024-03-26 14:53:35 +01:00
2024-03-26 14:54:22 +01:00
2024-03-26 14:53:35 +01:00
2024-07-29 11:45:58 +02:00
2024-07-29 11:45:58 +02:00
2024-07-29 11:45:58 +02:00
2024-03-26 14:53:35 +01:00
2024-03-26 14:53:35 +01:00
2024-03-26 14:53:35 +01:00
2024-03-26 14:53:35 +01:00
2024-03-26 14:53:35 +01:00
2024-03-26 14:53:35 +01:00
2024-03-26 14:53:35 +01:00
2024-03-26 14:53:35 +01:00
2024-03-26 14:53:35 +01:00
2024-03-26 14:53:35 +01:00
2024-05-07 07:57:41 +02:00
2025-01-20 20:55:21 +01:00
2025-01-20 20:55:21 +01:00
2024-11-14 11:05:40 +01:00
2023-05-04 12:45:07 +02:00