refactoring

This commit is contained in:
Javier Peletier
2020-12-14 20:05:34 +01:00
parent 119adb54db
commit bb7dba5e85
4 changed files with 282 additions and 174 deletions
+7
View File
@@ -2,6 +2,8 @@ package kn
import "koolnova2mqtt/bimap"
const NUM_ZONES = 16
const REG_PER_ZONE = 4
const REG_ENABLED = 1
const REG_MODE = 2
@@ -17,6 +19,11 @@ const REG_EFFICIENCY = 79
const REG_SYSTEM_ENABLED = 81
const REG_SYS_HVAC_MODE = 82
const FIRST_ZONE_REGISTER = REG_ENABLED
const TOTAL_ZONE_REGISTERS = NUM_ZONES * REG_PER_ZONE
const FIRST_SYS_REGISTER = REG_AIRFLOW
const TOTAL_SYS_REGISTERS = 18
type FanMode byte
const FAN_OFF FanMode = 0