diff options
| author | Sam Anthony <sam@samanthony.xyz> | 2025-11-08 10:26:23 -0500 |
|---|---|---|
| committer | Sam Anthony <sam@samanthony.xyz> | 2025-11-08 10:26:23 -0500 |
| commit | b6f66e394ad3f18b3dccea674b5c041f5a22fb41 (patch) | |
| tree | 9a8ea15d60a4a529be8db634b8e83d9e8aa78533 /fw/signal.h | |
| parent | 9b562121464ea21ba8c8b4d3783d3f873746ee00 (diff) | |
| download | can-gauge-interface-b6f66e394ad3f18b3dccea674b5c041f5a22fb41.zip | |
swap signal byte_order to reflect amended dbc spec
Diffstat (limited to 'fw/signal.h')
| -rw-r--r-- | fw/signal.h | 6 |
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; |