aboutsummaryrefslogtreecommitdiffstats
path: root/fw/serial.h
diff options
context:
space:
mode:
authorSam Anthony <sam@samanthony.xyz>2025-11-07 10:33:58 -0500
committerSam Anthony <sam@samanthony.xyz>2025-11-07 10:33:58 -0500
commit4158981e549db6c5cc626cfd6d244c85485f5612 (patch)
tree749addefa29e66514f9ed9597f0b2d482ca06981 /fw/serial.h
parentf88c088264f17e681b938cb3542ba0846b791fca (diff)
downloadcan-gauge-interface-4158981e549db6c5cc626cfd6d244c85485f5612.zip
respond to Signal Control REMOTE FRAME
Diffstat (limited to 'fw/serial.h')
-rw-r--r--fw/serial.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/fw/serial.h b/fw/serial.h
index 5a6b495..b071038 100644
--- a/fw/serial.h
+++ b/fw/serial.h
@@ -34,9 +34,9 @@ Status serReadCanId(EepromAddr addr, CanId *id);
// SigFmts use 8 bytes of space.
// The ID is stored little-endian in the first 4 bytes: 0--3.
// Start and Size occupy bytes 4 and 5.
-// The Byte-order and Signedness flags are bits 0 and 1 of byte 6, respectively.
-// Byte order: [6][0] = {0=>LE, 1=>BE}.
-// Signedness: [6][1] = {0=>unsigned, 1=>signed}.
+// The Byte-order and Signedness flags are bits 7 and 6 of byte 6, respectively.
+// Byte order: [6][7] = {0=>LE, 1=>BE}.
+// Signedness: [6][6] = {0=>unsigned, 1=>signed}.
// Byte 7 is unused -- it's for alignment.
Status serWriteSigFmt(EepromAddr addr, const SigFmt *sig);