aboutsummaryrefslogtreecommitdiffstats
path: root/fw/types.h
diff options
context:
space:
mode:
authorSam Anthony <sam@samanthony.xyz>2025-09-06 13:24:11 -0400
committerSam Anthony <sam@samanthony.xyz>2025-09-06 13:24:11 -0400
commit366330d3943ec4e066197a8d034d90caf8422a1d (patch)
treeeef4e0cc7882f77be931b81c8b5bb4c91dbcc0aa /fw/types.h
parentdf3ed451bf11d40e6369b0333fef92c536c57b4d (diff)
downloadcan-gauge-interface-366330d3943ec4e066197a8d034d90caf8422a1d.zip
fw: handle "w" write eeprom command
Diffstat (limited to 'fw/types.h')
-rw-r--r--fw/types.h9
1 files changed, 7 insertions, 2 deletions
diff --git a/fw/types.h b/fw/types.h
index 22a651e..835491d 100644
--- a/fw/types.h
+++ b/fw/types.h
@@ -7,10 +7,15 @@
* #include "types.h"
*/
+typedef enum {
+ OK,
+ FAIL,
+} Status;
+
typedef uint8_t U8;
typedef struct {
- U8 lo, hi;
+ U8 hi, lo;
} U16;
-void incU16(U16 *x);
+void addU16(U16 *a, U8 b);