ESPHome  2021.11.4
Data Structures | Functions | Variables
esphome::hitachi_ac424 Namespace Reference

Data Structures

class  HitachiClimate
 

Functions

void set_bits (uint8_t *const dst, const uint8_t offset, const uint8_t nbits, const uint8_t data)
 
void set_bit (uint8_t *const data, const uint8_t position, const bool on)
 
uint8_t * invert_byte_pairs (uint8_t *ptr, const uint16_t length)
 

Variables

const uint16_t HITACHI_AC424_HDR_MARK = 3416
 
const uint16_t HITACHI_AC424_HDR_SPACE = 1604
 
const uint16_t HITACHI_AC424_BIT_MARK = 463
 
const uint16_t HITACHI_AC424_ONE_SPACE = 1208
 
const uint16_t HITACHI_AC424_ZERO_SPACE = 372
 
const uint32_t HITACHI_AC424_MIN_GAP = 100000
 
const uint16_t HITACHI_AC424_FREQ = 38000
 
const uint8_t HITACHI_AC424_BUTTON_BYTE = 11
 
const uint8_t HITACHI_AC424_BUTTON_POWER = 0x13
 
const uint8_t HITACHI_AC424_BUTTON_SLEEP = 0x31
 
const uint8_t HITACHI_AC424_BUTTON_MODE = 0x41
 
const uint8_t HITACHI_AC424_BUTTON_FAN = 0x42
 
const uint8_t HITACHI_AC424_BUTTON_TEMP_DOWN = 0x43
 
const uint8_t HITACHI_AC424_BUTTON_TEMP_UP = 0x44
 
const uint8_t HITACHI_AC424_BUTTON_SWINGV = 0x81
 
const uint8_t HITACHI_AC424_BUTTON_SWINGH = 0x8C
 
const uint8_t HITACHI_AC424_BUTTON_MILDEWPROOF = 0xE2
 
const uint8_t HITACHI_AC424_TEMP_BYTE = 13
 
const uint8_t HITACHI_AC424_TEMP_OFFSET = 2
 
const uint8_t HITACHI_AC424_TEMP_SIZE = 6
 
const uint8_t HITACHI_AC424_TEMP_MIN = 16
 
const uint8_t HITACHI_AC424_TEMP_MAX = 32
 
const uint8_t HITACHI_AC424_TEMP_FAN = 27
 
const uint8_t HITACHI_AC424_TIMER_BYTE = 15
 
const uint8_t HITACHI_AC424_MODE_BYTE = 25
 
const uint8_t HITACHI_AC424_MODE_FAN = 1
 
const uint8_t HITACHI_AC424_MODE_COOL = 3
 
const uint8_t HITACHI_AC424_MODE_DRY = 5
 
const uint8_t HITACHI_AC424_MODE_HEAT = 6
 
const uint8_t HITACHI_AC424_MODE_AUTO = 14
 
const uint8_t HITACHI_AC424_MODE_POWERFUL = 19
 
const uint8_t HITACHI_AC424_FAN_BYTE = HITACHI_AC424_MODE_BYTE
 
const uint8_t HITACHI_AC424_FAN_MIN = 1
 
const uint8_t HITACHI_AC424_FAN_LOW = 2
 
const uint8_t HITACHI_AC424_FAN_MEDIUM = 3
 
const uint8_t HITACHI_AC424_FAN_HIGH = 4
 
const uint8_t HITACHI_AC424_FAN_AUTO = 5
 
const uint8_t HITACHI_AC424_FAN_MAX = 6
 
const uint8_t HITACHI_AC424_FAN_MAX_DRY = 2
 
const uint8_t HITACHI_AC424_POWER_BYTE = 27
 
const uint8_t HITACHI_AC424_POWER_ON = 0xF1
 
const uint8_t HITACHI_AC424_POWER_OFF = 0xE1
 
const uint8_t HITACHI_AC424_SWINGH_BYTE = 35
 
const uint8_t HITACHI_AC424_SWINGH_OFFSET = 0
 
const uint8_t HITACHI_AC424_SWINGH_SIZE = 3
 
const uint8_t HITACHI_AC424_SWINGH_AUTO = 0
 
const uint8_t HITACHI_AC424_SWINGH_RIGHT_MAX = 1
 
const uint8_t HITACHI_AC424_SWINGH_RIGHT = 2
 
const uint8_t HITACHI_AC424_SWINGH_MIDDLE = 3
 
const uint8_t HITACHI_AC424_SWINGH_LEFT = 4
 
const uint8_t HITACHI_AC424_SWINGH_LEFT_MAX = 5
 
const uint8_t HITACHI_AC424_SWINGV_BYTE = 37
 
const uint8_t HITACHI_AC424_SWINGV_OFFSET = 5
 
const uint8_t HITACHI_AC424_MILDEWPROOF_BYTE = HITACHI_AC424_SWINGV_BYTE
 
const uint8_t HITACHI_AC424_MILDEWPROOF_OFFSET = 2
 
const uint16_t HITACHI_AC424_STATE_LENGTH = 53
 
const uint16_t HITACHI_AC424_BITS = HITACHI_AC424_STATE_LENGTH * 8
 

Function Documentation

◆ invert_byte_pairs()

uint8_t* esphome::hitachi_ac424::invert_byte_pairs ( uint8_t *  ptr,
const uint16_t  length 
)

Definition at line 28 of file hitachi_ac424.cpp.

◆ set_bit()

void esphome::hitachi_ac424::set_bit ( uint8_t *const  data,
const uint8_t  position,
const bool  on 
)

Definition at line 20 of file hitachi_ac424.cpp.

◆ set_bits()

void esphome::hitachi_ac424::set_bits ( uint8_t *const  dst,
const uint8_t  offset,
const uint8_t  nbits,
const uint8_t  data 
)

Definition at line 8 of file hitachi_ac424.cpp.

Variable Documentation

◆ HITACHI_AC424_BIT_MARK

const uint16_t esphome::hitachi_ac424::HITACHI_AC424_BIT_MARK = 463

Definition at line 11 of file hitachi_ac424.h.

◆ HITACHI_AC424_BITS

const uint16_t esphome::hitachi_ac424::HITACHI_AC424_BITS = HITACHI_AC424_STATE_LENGTH * 8

Definition at line 75 of file hitachi_ac424.h.

◆ HITACHI_AC424_BUTTON_BYTE

const uint8_t esphome::hitachi_ac424::HITACHI_AC424_BUTTON_BYTE = 11

Definition at line 17 of file hitachi_ac424.h.

◆ HITACHI_AC424_BUTTON_FAN

const uint8_t esphome::hitachi_ac424::HITACHI_AC424_BUTTON_FAN = 0x42

Definition at line 21 of file hitachi_ac424.h.

◆ HITACHI_AC424_BUTTON_MILDEWPROOF

const uint8_t esphome::hitachi_ac424::HITACHI_AC424_BUTTON_MILDEWPROOF = 0xE2

Definition at line 26 of file hitachi_ac424.h.

◆ HITACHI_AC424_BUTTON_MODE

const uint8_t esphome::hitachi_ac424::HITACHI_AC424_BUTTON_MODE = 0x41

Definition at line 20 of file hitachi_ac424.h.

◆ HITACHI_AC424_BUTTON_POWER

const uint8_t esphome::hitachi_ac424::HITACHI_AC424_BUTTON_POWER = 0x13

Definition at line 18 of file hitachi_ac424.h.

◆ HITACHI_AC424_BUTTON_SLEEP

const uint8_t esphome::hitachi_ac424::HITACHI_AC424_BUTTON_SLEEP = 0x31

Definition at line 19 of file hitachi_ac424.h.

◆ HITACHI_AC424_BUTTON_SWINGH

const uint8_t esphome::hitachi_ac424::HITACHI_AC424_BUTTON_SWINGH = 0x8C

Definition at line 25 of file hitachi_ac424.h.

◆ HITACHI_AC424_BUTTON_SWINGV

const uint8_t esphome::hitachi_ac424::HITACHI_AC424_BUTTON_SWINGV = 0x81

Definition at line 24 of file hitachi_ac424.h.

◆ HITACHI_AC424_BUTTON_TEMP_DOWN

const uint8_t esphome::hitachi_ac424::HITACHI_AC424_BUTTON_TEMP_DOWN = 0x43

Definition at line 22 of file hitachi_ac424.h.

◆ HITACHI_AC424_BUTTON_TEMP_UP

const uint8_t esphome::hitachi_ac424::HITACHI_AC424_BUTTON_TEMP_UP = 0x44

Definition at line 23 of file hitachi_ac424.h.

◆ HITACHI_AC424_FAN_AUTO

const uint8_t esphome::hitachi_ac424::HITACHI_AC424_FAN_AUTO = 5

Definition at line 50 of file hitachi_ac424.h.

◆ HITACHI_AC424_FAN_BYTE

const uint8_t esphome::hitachi_ac424::HITACHI_AC424_FAN_BYTE = HITACHI_AC424_MODE_BYTE

Definition at line 45 of file hitachi_ac424.h.

◆ HITACHI_AC424_FAN_HIGH

const uint8_t esphome::hitachi_ac424::HITACHI_AC424_FAN_HIGH = 4

Definition at line 49 of file hitachi_ac424.h.

◆ HITACHI_AC424_FAN_LOW

const uint8_t esphome::hitachi_ac424::HITACHI_AC424_FAN_LOW = 2

Definition at line 47 of file hitachi_ac424.h.

◆ HITACHI_AC424_FAN_MAX

const uint8_t esphome::hitachi_ac424::HITACHI_AC424_FAN_MAX = 6

Definition at line 51 of file hitachi_ac424.h.

◆ HITACHI_AC424_FAN_MAX_DRY

const uint8_t esphome::hitachi_ac424::HITACHI_AC424_FAN_MAX_DRY = 2

Definition at line 52 of file hitachi_ac424.h.

◆ HITACHI_AC424_FAN_MEDIUM

const uint8_t esphome::hitachi_ac424::HITACHI_AC424_FAN_MEDIUM = 3

Definition at line 48 of file hitachi_ac424.h.

◆ HITACHI_AC424_FAN_MIN

const uint8_t esphome::hitachi_ac424::HITACHI_AC424_FAN_MIN = 1

Definition at line 46 of file hitachi_ac424.h.

◆ HITACHI_AC424_FREQ

const uint16_t esphome::hitachi_ac424::HITACHI_AC424_FREQ = 38000

Definition at line 15 of file hitachi_ac424.h.

◆ HITACHI_AC424_HDR_MARK

const uint16_t esphome::hitachi_ac424::HITACHI_AC424_HDR_MARK = 3416

Definition at line 9 of file hitachi_ac424.h.

◆ HITACHI_AC424_HDR_SPACE

const uint16_t esphome::hitachi_ac424::HITACHI_AC424_HDR_SPACE = 1604

Definition at line 10 of file hitachi_ac424.h.

◆ HITACHI_AC424_MILDEWPROOF_BYTE

const uint8_t esphome::hitachi_ac424::HITACHI_AC424_MILDEWPROOF_BYTE = HITACHI_AC424_SWINGV_BYTE

Definition at line 71 of file hitachi_ac424.h.

◆ HITACHI_AC424_MILDEWPROOF_OFFSET

const uint8_t esphome::hitachi_ac424::HITACHI_AC424_MILDEWPROOF_OFFSET = 2

Definition at line 72 of file hitachi_ac424.h.

◆ HITACHI_AC424_MIN_GAP

const uint32_t esphome::hitachi_ac424::HITACHI_AC424_MIN_GAP = 100000

Definition at line 14 of file hitachi_ac424.h.

◆ HITACHI_AC424_MODE_AUTO

const uint8_t esphome::hitachi_ac424::HITACHI_AC424_MODE_AUTO = 14

Definition at line 42 of file hitachi_ac424.h.

◆ HITACHI_AC424_MODE_BYTE

const uint8_t esphome::hitachi_ac424::HITACHI_AC424_MODE_BYTE = 25

Definition at line 37 of file hitachi_ac424.h.

◆ HITACHI_AC424_MODE_COOL

const uint8_t esphome::hitachi_ac424::HITACHI_AC424_MODE_COOL = 3

Definition at line 39 of file hitachi_ac424.h.

◆ HITACHI_AC424_MODE_DRY

const uint8_t esphome::hitachi_ac424::HITACHI_AC424_MODE_DRY = 5

Definition at line 40 of file hitachi_ac424.h.

◆ HITACHI_AC424_MODE_FAN

const uint8_t esphome::hitachi_ac424::HITACHI_AC424_MODE_FAN = 1

Definition at line 38 of file hitachi_ac424.h.

◆ HITACHI_AC424_MODE_HEAT

const uint8_t esphome::hitachi_ac424::HITACHI_AC424_MODE_HEAT = 6

Definition at line 41 of file hitachi_ac424.h.

◆ HITACHI_AC424_MODE_POWERFUL

const uint8_t esphome::hitachi_ac424::HITACHI_AC424_MODE_POWERFUL = 19

Definition at line 43 of file hitachi_ac424.h.

◆ HITACHI_AC424_ONE_SPACE

const uint16_t esphome::hitachi_ac424::HITACHI_AC424_ONE_SPACE = 1208

Definition at line 12 of file hitachi_ac424.h.

◆ HITACHI_AC424_POWER_BYTE

const uint8_t esphome::hitachi_ac424::HITACHI_AC424_POWER_BYTE = 27

Definition at line 54 of file hitachi_ac424.h.

◆ HITACHI_AC424_POWER_OFF

const uint8_t esphome::hitachi_ac424::HITACHI_AC424_POWER_OFF = 0xE1

Definition at line 56 of file hitachi_ac424.h.

◆ HITACHI_AC424_POWER_ON

const uint8_t esphome::hitachi_ac424::HITACHI_AC424_POWER_ON = 0xF1

Definition at line 55 of file hitachi_ac424.h.

◆ HITACHI_AC424_STATE_LENGTH

const uint16_t esphome::hitachi_ac424::HITACHI_AC424_STATE_LENGTH = 53

Definition at line 74 of file hitachi_ac424.h.

◆ HITACHI_AC424_SWINGH_AUTO

const uint8_t esphome::hitachi_ac424::HITACHI_AC424_SWINGH_AUTO = 0

Definition at line 61 of file hitachi_ac424.h.

◆ HITACHI_AC424_SWINGH_BYTE

const uint8_t esphome::hitachi_ac424::HITACHI_AC424_SWINGH_BYTE = 35

Definition at line 58 of file hitachi_ac424.h.

◆ HITACHI_AC424_SWINGH_LEFT

const uint8_t esphome::hitachi_ac424::HITACHI_AC424_SWINGH_LEFT = 4

Definition at line 65 of file hitachi_ac424.h.

◆ HITACHI_AC424_SWINGH_LEFT_MAX

const uint8_t esphome::hitachi_ac424::HITACHI_AC424_SWINGH_LEFT_MAX = 5

Definition at line 66 of file hitachi_ac424.h.

◆ HITACHI_AC424_SWINGH_MIDDLE

const uint8_t esphome::hitachi_ac424::HITACHI_AC424_SWINGH_MIDDLE = 3

Definition at line 64 of file hitachi_ac424.h.

◆ HITACHI_AC424_SWINGH_OFFSET

const uint8_t esphome::hitachi_ac424::HITACHI_AC424_SWINGH_OFFSET = 0

Definition at line 59 of file hitachi_ac424.h.

◆ HITACHI_AC424_SWINGH_RIGHT

const uint8_t esphome::hitachi_ac424::HITACHI_AC424_SWINGH_RIGHT = 2

Definition at line 63 of file hitachi_ac424.h.

◆ HITACHI_AC424_SWINGH_RIGHT_MAX

const uint8_t esphome::hitachi_ac424::HITACHI_AC424_SWINGH_RIGHT_MAX = 1

Definition at line 62 of file hitachi_ac424.h.

◆ HITACHI_AC424_SWINGH_SIZE

const uint8_t esphome::hitachi_ac424::HITACHI_AC424_SWINGH_SIZE = 3

Definition at line 60 of file hitachi_ac424.h.

◆ HITACHI_AC424_SWINGV_BYTE

const uint8_t esphome::hitachi_ac424::HITACHI_AC424_SWINGV_BYTE = 37

Definition at line 68 of file hitachi_ac424.h.

◆ HITACHI_AC424_SWINGV_OFFSET

const uint8_t esphome::hitachi_ac424::HITACHI_AC424_SWINGV_OFFSET = 5

Definition at line 69 of file hitachi_ac424.h.

◆ HITACHI_AC424_TEMP_BYTE

const uint8_t esphome::hitachi_ac424::HITACHI_AC424_TEMP_BYTE = 13

Definition at line 28 of file hitachi_ac424.h.

◆ HITACHI_AC424_TEMP_FAN

const uint8_t esphome::hitachi_ac424::HITACHI_AC424_TEMP_FAN = 27

Definition at line 33 of file hitachi_ac424.h.

◆ HITACHI_AC424_TEMP_MAX

const uint8_t esphome::hitachi_ac424::HITACHI_AC424_TEMP_MAX = 32

Definition at line 32 of file hitachi_ac424.h.

◆ HITACHI_AC424_TEMP_MIN

const uint8_t esphome::hitachi_ac424::HITACHI_AC424_TEMP_MIN = 16

Definition at line 31 of file hitachi_ac424.h.

◆ HITACHI_AC424_TEMP_OFFSET

const uint8_t esphome::hitachi_ac424::HITACHI_AC424_TEMP_OFFSET = 2

Definition at line 29 of file hitachi_ac424.h.

◆ HITACHI_AC424_TEMP_SIZE

const uint8_t esphome::hitachi_ac424::HITACHI_AC424_TEMP_SIZE = 6

Definition at line 30 of file hitachi_ac424.h.

◆ HITACHI_AC424_TIMER_BYTE

const uint8_t esphome::hitachi_ac424::HITACHI_AC424_TIMER_BYTE = 15

Definition at line 35 of file hitachi_ac424.h.

◆ HITACHI_AC424_ZERO_SPACE

const uint16_t esphome::hitachi_ac424::HITACHI_AC424_ZERO_SPACE = 372

Definition at line 13 of file hitachi_ac424.h.