From af8e5d89a8b92862bf6b3ff3abd707da5301f269 Mon Sep 17 00:00:00 2001 From: Adrian Scillato <35405447+ascillato@users.noreply.github.com> Date: Thu, 5 Apr 2018 09:47:13 -0300 Subject: [PATCH] Update settings.h --- sonoff/settings.h | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/sonoff/settings.h b/sonoff/settings.h index 3dd8aa621..cf9ee775a 100644 --- a/sonoff/settings.h +++ b/sonoff/settings.h @@ -48,7 +48,7 @@ typedef union { // Restricted by MISRA-C Rule 18.4 bu uint32_t not_power_linked : 1; // bit 20 (v5.11.1f) uint32_t no_power_on_check : 1; // bit 21 (v5.11.1i) uint32_t mqtt_serial : 1; // bit 22 (v5.12.0f) - uint32_t spare23 : 1; + uint32_t knx_enabled : 1; // bit 23 KNX uint32_t spare24 : 1; uint32_t spare25 : 1; uint32_t spare26 : 1; @@ -255,7 +255,16 @@ struct SYSCFG { Timer timer[MAX_TIMERS]; // 670 int latitude; // 6B0 int longitude; // 6B4 - // 6B8 - FFF free locations + + uint16_t knx_physsical_addr; // 6B8 (address_t is a uint16_t) + byte knx_GA_registered; // 6BB Number of Group Address to read + byte knx_CB_registered; // 6BC Number of Group Address to write + uint16_t knx_GA_addr[MAX_KNX_GA]; // 6BD (address_t is a uint16_t) x KNX_max_GA + uint16_t knx_CB_addr[MAX_KNX_CB]; // 6D1 (address_t is a uint16_t) x KNX_max_CB + byte knx_GA_param[MAX_KNX_GA]; // 6E5 Type of Input (relay changed, button pressed, sensor read <-teleperiod) + byte knx_CB_param[MAX_KNX_CB]; // 6EF Type of Output (set relay, toggle relay, reply sensor value) + + // 6F9 - FFF free locations } Settings; struct RTCMEM {