aboutsummaryrefslogtreecommitdiffstats
path: root/fw/signal.h
diff options
context:
space:
mode:
Diffstat (limited to 'fw/signal.h')
-rw-r--r--fw/signal.h6
1 files changed, 3 insertions, 3 deletions
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;