X2D lib first commit

Revision:
12:ce8ae07fd23b
Parent:
11:ce2134a6c16e
Child:
13:345e4251cf25
--- a/X2D.h	Sun Nov 17 22:40:22 2019 +0000
+++ b/X2D.h	Sun Nov 24 20:20:46 2019 +0000
@@ -13,6 +13,7 @@
     Conf1  = 1, // Confort -1
     Conf2  = 2, // Confort -2
     Sun    = 3,
+    ABS     = 4,
     HG     = 7,
     OFF     = 8
 }h_mode;  //Heater mode
@@ -29,8 +30,17 @@
     h_mode mode;
 }info_t;
 
+typedef struct {
+    unsigned char zone;
+    h_mode mode;
+    bool fixed;
+    unsigned char associated[3];
+}zone_t;
+
+
+
 void Init_X2D(info_t *message);
 //void TASK_RcvMessages(info_t *message);
-void SendCmd(int zone, int prog);
+void SendCmd(int zone, h_mode prog);
 void write_ctrl_reg(unsigned long write_data);
 unsigned long read_ctrl_reg(void);