arm studio build

Dependencies:   libxDot-mbed5

Revision:
14:fc836a5a5d2f
Parent:
12:7944e4dbe853
Child:
17:74d60177c6b6
diff -r 1f3a8d0be511 -r fc836a5a5d2f inc/commI2C.h
--- a/inc/commI2C.h	Thu Jan 17 20:17:31 2019 +0000
+++ b/inc/commI2C.h	Fri Jan 18 18:15:29 2019 +0000
@@ -29,13 +29,14 @@
 enum{
    XDOT_CMD_XMIT_PKT = 1,   //transmit data
    XDOT_CMD_GET_EUI,        //get xdot EUI       
-   XDOT_CMD_SET_KEY_X,      //set one of the security keys
+   XDOT_CMD_SET_KEY_X,      //set one of the security keys -> not used ?
    XDOT_CMD_GOTO_SLEEP,     //go to sleep 
    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_NVM,            // xdot nvm memory 
    XDOT_CMD_NVM_ABP,        // xdot nvm for multicast ABP creds
+   XDOT_CMD_SET_RADIO_CLASS, // change radio class to A or C
    XDOT_CMD_UNDEFINED,      //last cmd, not used 
 };
 
@@ -131,8 +132,8 @@
   nvm       nvmData;
 }pkt_setnvmdwn;
 //--------------------------------------------------------------------------
-//nvm ptks for ABP creds
-
+//nvm ptks for ABP creds ---> REMOVE ???????????
+//--------------------------------------------------------------------------
 //upstream pkt struc
 typedef struct {  
   uint8_t   cmd;                        //cmd received from proc
@@ -149,6 +150,22 @@
   nvmABP    nvmData;
 }pkt_setnvmABPdwn;
 
+//--------------------------------------------------------------------------
+//ptks for class A/B radio change
+//--------------------------------------------------------------------------
+//upstream pkt struc
+typedef struct {  
+  uint8_t       cmd;                        //cmd received from proc
+  uint8_t       dataLen;                    //datalen found in pkt  
+  class_switch  classData;
+}pkt_setClassUp;
+//dwnstream pkt struc
+typedef struct {  
+  uint8_t   ack;                        //ack header response
+  uint8_t   cmd;                        //cmd received from proc    
+  uint8_t   dataLen;                    //datalen found in pkt  
+  bool      bSwitched;                  //1 = switched OK  
+}pkt_setClassDwn;