aboutsummaryrefslogtreecommitdiffstats
path: root/fw/can.h
diff options
context:
space:
mode:
authorSam Anthony <sam@samanthony.xyz>2025-10-25 18:03:14 -0400
committerSam Anthony <sam@samanthony.xyz>2025-10-25 18:03:14 -0400
commite4660abbc284b5a5402dc743a5519b2ba40e209e (patch)
tree23c615a2aba719796d76c1a3199e8ff53d49926d /fw/can.h
parentc73bbe16321a5de0649fd9d29b3dd159a25b63db (diff)
downloadcan-gauge-interface-e4660abbc284b5a5402dc743a5519b2ba40e209e.zip
fix CAN ID format
Diffstat (limited to 'fw/can.h')
-rw-r--r--fw/can.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/fw/can.h b/fw/can.h
index 196fb9f..206cb1d 100644
--- a/fw/can.h
+++ b/fw/can.h
@@ -41,8 +41,8 @@ typedef enum {
typedef struct {
bool isExt; // is extended
union {
- U16 sid; // 11-bit standard ID
- U32 eid; // 29-bit extended ID
+ U16 sid; // 11-bit standard ID -- ID[28:18]
+ U32 eid; // 29-bit extended ID -- ID[28:0]
};
} CanId;