Skip to content

Commit

Permalink
Added CANXL_MTU macro
Browse files Browse the repository at this point in the history
Apaisal committed Aug 24, 2024

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
1 parent 0d9d295 commit 8835715
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions examples/csp_server.c
Original file line number Diff line number Diff line change
@@ -79,6 +79,11 @@ struct canxl_frame {
};
#endif

#define CANXL_MTU (sizeof(struct canxl_frame))
#define CANXL_HDR_SIZE (offsetof(struct canxl_frame, data))
#define CANXL_MIN_MTU (CANXL_HDR_SIZE + 64)
#define CANXL_MAX_MTU CANXL_MTU

/* CAN CC/FD/XL frame union */
typedef union {
struct can_frame cc;

0 comments on commit 8835715

Please sign in to comment.