aboutsummaryrefslogtreecommitdiffstats
path: root/fw/table.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/table.h
parentf88c088264f17e681b938cb3542ba0846b791fca (diff)
downloadcan-gauge-interface-4158981e549db6c5cc626cfd6d244c85485f5612.zip
respond to Signal Control REMOTE FRAME
Diffstat (limited to 'fw/table.h')
-rw-r--r--fw/table.h12
1 files changed, 9 insertions, 3 deletions
diff --git a/fw/table.h b/fw/table.h
index a5cfb7b..da9baa0 100644
--- a/fw/table.h
+++ b/fw/table.h
@@ -1,11 +1,17 @@
/* Table datastructure for storing calibrations in the EEPROM.
*
* A table has a fixed number of rows that define a key/value mapping.
- * Keys and values are each U32.
- * T: U32->U32
+ * Keys and values are 32-bit and 16-bit respectively.
+ *
+ * Keys may be signed or unsigned; whether they are interpreted as
+ * signed or unsigned when they are read depends on the context. They
+ * must be monotonically increasing down the table.
+ *
+ * Values are unsigned 16-bit integers.
+ *
* Numbers are stored little-endian.
*
- * Keys must be monotonically increasing.
+ * See also: doc/datafmt.pdf
*
* Device: PIC16F1459
* Compiler: XC8 v3.00