summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn Klug <john.klug@multitech.com>2020-09-08 18:14:16 -0500
committerJohn Klug <john.klug@multitech.com>2020-09-08 18:14:16 -0500
commit729bfffe8002eafa030c8671fb85724451e4adae (patch)
tree06b175e7472e1986a9574154d0ba109b30801052
parent374a1ca92d956f630af0246ce08831e868cac476 (diff)
downloadmts-io-729bfffe8002eafa030c8671fb85724451e4adae.tar.gz
mts-io-729bfffe8002eafa030c8671fb85724451e4adae.tar.bz2
mts-io-729bfffe8002eafa030c8671fb85724451e4adae.zip
Reserving capa-cellular and eeprom_layout_version
-rw-r--r--io-module/mts_eeprom.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/io-module/mts_eeprom.h b/io-module/mts_eeprom.h
index 5ad2b8b..e916809 100644
--- a/io-module/mts_eeprom.h
+++ b/io-module/mts_eeprom.h
@@ -24,7 +24,8 @@ struct mts_id_eeprom_layout {
uint8_t lora_eui[8];
char lora_product_id[32];
char lora_hw_version[32];
- uint8_t reserved[214];
+ uint16_t eeprom_layout_version;
+ uint8_t reserved[212];
};
/* accessory card EEPROM */
@@ -65,5 +66,6 @@ do { \
#define CAPA_WIFI DEVICE_CAPA_VALUE(1, 6)
#define CAPA_LORA DEVICE_CAPA_VALUE(1, 3) // on-board lora
#define CAPA_BATTERY DEVICE_CAPA_VALUE(1, 4) // 1st battery type
-#define CAPA_SUPERCAP DEVICE_CAPA_VALUE(1, 5)
+#define CAPA_SUPERCAP DEVICE_CAPA_VALUE(1, 5)
+#define CAPA_CELLULAR DEVICE_CAPA_VALUE(1,2) // Only valid if eeprom_version > 0
#endif /* __MTS_EEPROM_H */