arm studio build

Dependencies:   libxDot-mbed5

Revision:
9:cc23b2049639
Parent:
7:fba1e8fc7693
Child:
12:7944e4dbe853
--- a/inc/commI2C.h	Sat Aug 11 17:34:42 2018 +0000
+++ b/inc/commI2C.h	Mon Aug 13 15:58:00 2018 +0000
@@ -34,7 +34,7 @@
    XDOT_CMD_GATEWAY_PING,   //ping gateway for RSSI
    XDOT_CMD_SET_NTWKSESS,   //write/read network session to/from flash      
    XDOT_CMD_SET_RADIO,      //set's radio parameters   
-   XDOT_CMD_SET_NVM,        //write params to xdot nvm memory 
+   XDOT_CMD_NVM,            // xdot nvm memory 
    XDOT_CMD_UNDEFINED,      //last cmd, not used 
 };
 
@@ -87,7 +87,7 @@
   uint8_t   apiLvlData[4];              //api level 
   uint8_t   verLvlData[4];              //ver level   
 }pkt_eui;
-
+//--------------------------------------------------------------------------
 //structure: cmd structure to proc for setting radio parameters
 //upstream pkt struc
 typedef struct {  
@@ -105,14 +105,19 @@
   uint8_t   dataLen;                    //datalen found in pkt  
   xdot_radio_params params;
 }pkt_setradiodwn;
-
+//--------------------------------------------------------------------------
 //nvm ptks
+enum {
+     XDOT_NVM__READ = 0,
+     XDOT_NVM_SET = 1,
+     XDOT_NVM_RESTORE = 2,
+};  
 //structure: cmd structure to proc for setting nvm parameters
 //upstream pkt struc
 typedef struct {  
   uint8_t   cmd;                        //cmd received from proc
   uint8_t   dataLen;                    //datalen found in pkt  
-  uint8_t   bWriteNvm;                  //if false, just read nvm
+  uint8_t   nvm_option;                 //read,write,restore  
   nvm       nvmData;
 }pkt_setnvmup;
 //dwnstream pkt struc
@@ -124,7 +129,7 @@
   nvm       nvmData;
 }pkt_setnvmdwn;
 
-
+//--------------------------------------------------------------------------
 
 
 //structure: results returned to proc network session