Version FC

Dependencies:   DmTftLibrary eeprom SX1280Lib filesystem mbed

Fork of MSNV2-Terminal_V1-5 by Francis CHATAIN

Revision:
33:6ae45cba7958
Parent:
21:8524d815c587
Child:
36:14a8da4108d5
--- a/ExtMemory.hpp	Tue Sep 18 20:18:44 2018 +0000
+++ b/ExtMemory.hpp	Thu Oct 04 07:00:43 2018 +0000
@@ -23,47 +23,38 @@
 
     /* Header definition */
     typedef struct {
-        uint8_t     version;
+        uint8_t     memory_scheme_version;
+        uint8_t     terminal_type;
         uint16_t    payload_id;
-        uint8_t     nb_of_sensors;
-        uint8_t     nb_of_actuators;
+        uint8_t     nb_of_services;
         char        checksum[4];
         uint8_t     operating_mode;
-        uint16_t    terminal_base_period;
+        uint16_t    platform_base_period;
         uint16_t    payload_base_period;
         uint16_t    synchro_period;
         uint16_t    listen_period;
         uint16_t    listen_duration;
         char        comment[25];
-        uint8_t     trailer;
     } Header;
 
     /* Service definition */
     typedef struct {
-        uint8_t     rank;
-    uint8_t     value_type;
-        uint8_t     device_type;
+        uint16_t    service_id;
+        uint8_t     service_type;
         uint8_t     component_id;
-        uint8_t     group_rank;
-        uint8_t     mistnet_code;
-        uint8_t     device_state;
+        uint8_t     value_type;
+        uint8_t     component_group;
+        uint8_t     service_state;
         uint8_t     access_type;
-        uint8_t     access_pin_1;
-        uint8_t     access_pin_2;
-        uint8_t     access_pin_3;
-        uint8_t     access_pin_4;
-        uint8_t     access_pin_5;
-        uint8_t     access_pin_6;
         uint8_t     request_mode;
         uint8_t     up_mode;
         double      subsample_rate;
         double      threshold_delta;
-        double      threshold_up;
-        double      threshold_down;
+        double      high_threshold;
+        double      low_threshold;
         char        action;
         char        output;
-        char        comment[9];
-        char        trailer[4];
+        char        comment[7];
     } ServiceDefinition;
 }