LightHub 4.6.0
Open-source smart home controller firmware
Loading...
Searching...
No Matches
out_ac.h File Reference
#include <abstractout.h>
#include <item.h>
#include "itemCmd.h"

Go to the source code of this file.

Classes

class  acPersistent
 Persistent per-item state of an AC channel, stored in the config tree. More...
class  out_AC
 Air conditioner driver (Haier IR-over-UART protocol), channel type CH_AC = 10. More...

Macros

#define LEN_B   37
 Byte length of the AC status frame.
#define B_CUR_TMP   13
#define B_CMD   17
#define B_MODE   23
#define B_FAN_SPD   25
#define B_SWING   27
#define B_LOCK_REM   28
#define B_POWER   29
#define B_FRESH   31
#define B_SET_TMP   35
#define S_LOCK   S_ADDITIONAL+1
#define S_QUIET   S_ADDITIONAL+2
#define S_SWING   S_ADDITIONAL+3

Functions

void modbusIdle (void)
 Idle hook invoked by the Modbus code between serial operations to let the main system breathe.

Macro Definition Documentation

◆ B_CMD

#define B_CMD   17

◆ B_CUR_TMP

#define B_CUR_TMP   13

◆ B_FAN_SPD

#define B_FAN_SPD   25

◆ B_FRESH

#define B_FRESH   31

◆ B_LOCK_REM

#define B_LOCK_REM   28

◆ B_MODE

#define B_MODE   23

◆ B_POWER

#define B_POWER   29

◆ B_SET_TMP

#define B_SET_TMP   35

◆ B_SWING

#define B_SWING   27

◆ LEN_B

#define LEN_B   37

Byte length of the AC status frame.

◆ S_LOCK

#define S_LOCK   S_ADDITIONAL+1

Additional suffix codes (beyond the standard suffix_P table).

◆ S_QUIET

#define S_QUIET   S_ADDITIONAL+2

◆ S_SWING

#define S_SWING   S_ADDITIONAL+3

Function Documentation

◆ modbusIdle()

void modbusIdle ( void )
extern

Idle hook invoked by the Modbus code between serial operations to let the main system breathe.