From b6f66e394ad3f18b3dccea674b5c041f5a22fb41 Mon Sep 17 00:00:00 2001 From: Sam Anthony Date: Sat, 8 Nov 2025 10:26:23 -0500 Subject: swap signal byte_order to reflect amended dbc spec --- fw/signal.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'fw/signal.h') diff --git a/fw/signal.h b/fw/signal.h index 8bbc120..6489c6f 100644 --- a/fw/signal.h +++ b/fw/signal.h @@ -15,8 +15,8 @@ // Byte order typedef enum { - LITTLE_ENDIAN = 0, - BIG_ENDIAN, + BIG_ENDIAN = 0, + LITTLE_ENDIAN, } ByteOrder; // A Signal Format defines how a DBC signal is encoded in a CAN frame. @@ -24,7 +24,7 @@ typedef struct { CanId id; // ID of message containing the signal U8 start; // start bit -- position of signal within DATA FIELD U8 size; // size of the signal in bits - ByteOrder order; // little-endian/big-endian + ByteOrder order; // big-endian/little-endian bool isSigned; } SigFmt; -- cgit v1.2.3