From 5f10760f0d5d5dee2ba0d877bf1a3cbe6bc37823 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ond=C5=99ej=20Hru=C5=A1ka?= Date: Sun, 28 Aug 2022 00:57:33 +0200 Subject: [PATCH] popis registru --- README.md | 81 +++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 81 insertions(+) create mode 100644 README.md diff --git a/README.md b/README.md new file mode 100644 index 0000000..a69a05b --- /dev/null +++ b/README.md @@ -0,0 +1,81 @@ +# Registry + +Vse je 0-based + +## Holding + +``` +(read-only) +H_IDENT = 0, // 3333 + +(read-write) +// Control +H_MODE = 1, +/* + VENT_MODE_OFF = 0, + VENT_MODE_FREE = 1, + VENT_MODE_OUT = 3, + VENT_MODE_IN = 5, + VENT_MODE_RECUP = 7, +*/ + +H_POWER = 2, // % +H_SUMMER_MODE = 3, // invertuje logiku rekuperace na teplotu, aby drzela uvnitr chlad + +// Settings +H_INITIAL_MODE = 10, // mode po zapnuti napajeni +H_INITIAL_POWER = 11, // vykon po zapnuti napajeni +H_RECUP_MODE = 12, // 0=na cas, 1=na teplotu (experimentalni) +H_RECUP_TIME = 13, // pokud na cas, pak toho je cas rekuperace +H_RECUP_TIME_MIN = 14, // na teplotu - spodni limit +H_RECUP_TIME_MAX = 15, // na teplotu - horni limit +H_RECUP_FACTOR = 16, // na teplotu - faktor, 80% = foukej dokud delta teplot neklesne o 80% +H_MIN_POWER = 17, // min povoleny vykon motoru + +// Hardware settings (don't need to change once set correctly) +H_RAMP_TIME = 30, // doba rozbehu nebo zastaveni motoru +H_BLIND_TIME = 31, // doba otevreni roletky +H_SWAP_TEMPS = 32, // prohodit cidla teploty (projevi se po restartu) +H_SWAP_PWMDIR = 33, // prohodit PWM a DIR vystup (projevi se po restartu) + +(write-only) +H_REBOOT = 70, // zapis 0xB007 pro okamzity reboot (po odeslani odpovedi) +``` + +## Input + +Je take zrcadleno v holding mape s ofsetem 1000 (read-only) + +``` +// za kazdy bit od nejnizsiho - odpovidajici z nasladujicich teplot je platna +// napr. 3 = jsou platne jen T_{IN,OUT}_INST +I_T_VALIDITY = 1, + +I_T_IN_INST = 2, +I_T_OUT_INST = 3, +I_T_INDOOR = 4, +I_T_OUTDOOR = 5, +I_T_INFLOW = 6, +I_T_EXHAUST = 7, + +// skutecny cas rekuperace pri sani/odtahu v rezimu "na teplotu" +I_RECUP_TIME_IN = 8, +I_RECUP_TIME_OUT = 9, + +// okamzity rezim, stejny vyznam jako H_MODE, ale nemuze byt 7 (rekuperace), jen 1 smer vzdy. +I_MODE_INST = 20, +// stav interniho pocitadla nabehu motoru +I_MOTOR_RAMP = 21, +// stav interniho pocitadla otevreni roletky +I_BLIND_RAMP = 22, +// pocitadlo chodu motoru (sekundy 0-3599) +I_MOTOR_SECS = 23, +// pocitadlo chodu motoru (hodiny), inkrementuje se po preteceni I_MOTOR_SECS +I_MOTOR_HOURS = 24, +// uptime (sekundy 0-3599) +I_UPTIME_SECS = 25, +// uptime (hodiny), inkrementuje se po preteceni I_UPTIME_SECS +I_UPTIME_HOURS = 26, +// velikost volne pameti v poctu kB (mozna chybna hodnota?) +I_FREE_HEAP_KB = 27, +```