| LightHub v4.0.0 Smarthome controller firmware

out_ac.h
Go to the documentation of this file.
1
2 #pragma once
3 #ifndef AC_DISABLE
4 #include <abstractout.h>
5 #include "itemCmd.h"
6
7 #define LEN_B 37
8 #define B_CUR_TMP 13 //Текущая температура
9 #define B_CMD 17 // 00-команда 7F-ответ ???
10 #define B_MODE 23 //04 - DRY, 01 - cool, 02 - heat, 00 - smart 03 - вентиляция
11 #define B_FAN_SPD 25 //Скорость 02 - min, 01 - mid, 00 - max, 03 - auto
12 #define B_SWING 27 //01 - верхний и нижний предел вкл. 00 - выкл. 02 - левый/правый вкл. 03 - оба вкл
13 #define B_LOCK_REM 28 //80 блокировка вкл. 00 - выкл
14 #define B_POWER 29 //on/off 01 - on, 00 - off (10, 11)-Компрессор??? 09 - QUIET
15 #define B_FRESH 31 //fresh 00 - off, 01 - on
16 #define B_SET_TMP 35 //Установленная температура
17
18 #define S_LOCK S_ADDITIONAL+1
19 #define S_QUIET S_ADDITIONAL+2
20 #define S_SWING S_ADDITIONAL+3
21 //#define S_RAW S_ADDITIONAL+4
22
23 extern void modbusIdle(void) ;
24 class out_AC : public abstractOut {
25 public:
26
27 out_AC(Item * _item):abstractOut(_item){};
28 int Setup() override;
29 int Poll(short cause) override;
30 int Stop() override;
31 int Status() override;
32 int isActive() override;
33 int getDefaultStorageType(){return ST_FLOAT_CELSIUS;};
34 int Ctrl(itemCmd cmd, char* subItem=NULL, bool toExecute=true) override;
35
36 protected:
37 void InsertData(byte data[], size_t size);
38 };
39 #endif
out_AC::isActive
int isActive() override
Definition: out_ac.cpp:238
itemCmd.h
itemCmd
Definition: itemCmd.h:153
modbusIdle
void modbusIdle(void)
Definition: main.cpp:2406
out_AC::InsertData
void InsertData(byte data[], size_t size)
Definition: out_ac.cpp:52
out_AC
Definition: out_ac.h:24
out_AC::Poll
int Poll(short cause) override
Definition: out_ac.cpp:243
ST_FLOAT_CELSIUS
#define ST_FLOAT_CELSIUS
Definition: itemCmd.h:93
out_AC::Setup
int Setup() override
Remove?? Now getChanType used instead.
Definition: out_ac.cpp:216
abstractOut
Definition: abstractout.h:8
out_AC::out_AC
out_AC(Item *_item)
Definition: out_ac.h:27
out_AC::Status
int Status() override
Definition: out_ac.cpp:233
out_AC::Stop
int Stop() override
Definition: out_ac.cpp:225
out_AC::getDefaultStorageType
int getDefaultStorageType()
Definition: out_ac.h:33
Item
Definition: item.h:104
out_AC::Ctrl
int Ctrl(itemCmd cmd, char *subItem=NULL, bool toExecute=true) override
Definition: out_ac.cpp:270
abstractout.h
data
byte data[37]
Definition: out_ac.cpp:31