]> mj.ucw.cz Git - home-hw.git/blob - aircon/firmware/registers.h
Merge branch 'master' of ssh://git.ucw.cz/home/mj/GIT/home-hw
[home-hw.git] / aircon / firmware / registers.h
1 /*
2  *      Air Conditioning Controller -- MODBUS Registers
3  *
4  *      (c) 2019 Martin Mareš <mj@ucw.cz>
5  */
6
7 #ifndef _AIRCON_REGISTERS_H
8 #define _AIRCON_REGISTERS_H
9
10 enum aircon_coils {
11         AIRCON_COIL_EXCHANGER_BYPASS,
12         AIRCON_COIL_MAX,
13 };
14
15 enum aircon_input_registers {
16         AIRCON_IREG_TEMP_FROM_INSIDE,   // s16 in 0.01 °C
17         AIRCON_IREG_TEMP_TO_INSIDE,
18         AIRCON_IREG_TEMP_FROM_OUTSIDE,
19         AIRCON_IREG_TEMP_TO_OUTSIDE,
20         AIRCON_IREG_TEMP_MIXED,
21         AIRCON_IREG_MAX,
22         AIRCON_IREG_DS_ID_BASE = 0x1000,
23 };
24
25 enum aircon_holding_registers {
26         AIRCON_HREG_EXCHANGER_FAN,
27         AIRCON_HREG_REMOTE_CONTROL,
28         AIRCON_HREG_MAX,
29 };
30
31 #endif