ESPHome  2024.11.0
Data Structures | Functions | Variables
esphome::hitachi_ac344 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_AC344_HDR_MARK = 3300
 
const uint16_t HITACHI_AC344_HDR_SPACE = 1700
 
const uint16_t HITACHI_AC344_BIT_MARK = 400
 
const uint16_t HITACHI_AC344_ONE_SPACE = 1250
 
const uint16_t HITACHI_AC344_ZERO_SPACE = 500
 
const uint32_t HITACHI_AC344_MIN_GAP = 100000
 
const uint16_t HITACHI_AC344_FREQ = 38000
 
const uint8_t HITACHI_AC344_BUTTON_BYTE = 11
 
const uint8_t HITACHI_AC344_BUTTON_POWER = 0x13
 
const uint8_t HITACHI_AC344_BUTTON_SLEEP = 0x31
 
const uint8_t HITACHI_AC344_BUTTON_MODE = 0x41
 
const uint8_t HITACHI_AC344_BUTTON_FAN = 0x42
 
const uint8_t HITACHI_AC344_BUTTON_TEMP_DOWN = 0x43
 
const uint8_t HITACHI_AC344_BUTTON_TEMP_UP = 0x44
 
const uint8_t HITACHI_AC344_BUTTON_SWINGV = 0x81
 
const uint8_t HITACHI_AC344_BUTTON_SWINGH = 0x8C
 
const uint8_t HITACHI_AC344_BUTTON_MILDEWPROOF = 0xE2
 
const uint8_t HITACHI_AC344_TEMP_BYTE = 13
 
const uint8_t HITACHI_AC344_TEMP_OFFSET = 2
 
const uint8_t HITACHI_AC344_TEMP_SIZE = 6
 
const uint8_t HITACHI_AC344_TEMP_MIN = 16
 
const uint8_t HITACHI_AC344_TEMP_MAX = 32
 
const uint8_t HITACHI_AC344_TEMP_FAN = 27
 
const uint8_t HITACHI_AC344_TIMER_BYTE = 15
 
const uint8_t HITACHI_AC344_MODE_BYTE = 25
 
const uint8_t HITACHI_AC344_MODE_FAN = 1
 
const uint8_t HITACHI_AC344_MODE_COOL = 3
 
const uint8_t HITACHI_AC344_MODE_DRY = 5
 
const uint8_t HITACHI_AC344_MODE_HEAT = 6
 
const uint8_t HITACHI_AC344_MODE_AUTO = 7
 
const uint8_t HITACHI_AC344_FAN_BYTE = HITACHI_AC344_MODE_BYTE
 
const uint8_t HITACHI_AC344_FAN_MIN = 1
 
const uint8_t HITACHI_AC344_FAN_LOW = 2
 
const uint8_t HITACHI_AC344_FAN_MEDIUM = 3
 
const uint8_t HITACHI_AC344_FAN_HIGH = 4
 
const uint8_t HITACHI_AC344_FAN_AUTO = 5
 
const uint8_t HITACHI_AC344_FAN_MAX = 6
 
const uint8_t HITACHI_AC344_FAN_MAX_DRY = 2
 
const uint8_t HITACHI_AC344_POWER_BYTE = 27
 
const uint8_t HITACHI_AC344_POWER_ON = 0xF1
 
const uint8_t HITACHI_AC344_POWER_OFF = 0xE1
 
const uint8_t HITACHI_AC344_SWINGH_BYTE = 35
 
const uint8_t HITACHI_AC344_SWINGH_OFFSET = 0
 
const uint8_t HITACHI_AC344_SWINGH_SIZE = 3
 
const uint8_t HITACHI_AC344_SWINGH_AUTO = 0
 
const uint8_t HITACHI_AC344_SWINGH_RIGHT_MAX = 1
 
const uint8_t HITACHI_AC344_SWINGH_RIGHT = 2
 
const uint8_t HITACHI_AC344_SWINGH_MIDDLE = 3
 
const uint8_t HITACHI_AC344_SWINGH_LEFT = 4
 
const uint8_t HITACHI_AC344_SWINGH_LEFT_MAX = 5
 
const uint8_t HITACHI_AC344_SWINGV_BYTE = 37
 
const uint8_t HITACHI_AC344_SWINGV_OFFSET = 5
 
const uint8_t HITACHI_AC344_MILDEWPROOF_BYTE = HITACHI_AC344_SWINGV_BYTE
 
const uint8_t HITACHI_AC344_MILDEWPROOF_OFFSET = 2
 
const uint16_t HITACHI_AC344_STATE_LENGTH = 43
 
const uint16_t HITACHI_AC344_BITS = HITACHI_AC344_STATE_LENGTH * 8
 

Function Documentation

◆ invert_byte_pairs()

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

Definition at line 29 of file hitachi_ac344.cpp.

◆ set_bit()

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

Definition at line 20 of file hitachi_ac344.cpp.

◆ set_bits()

void esphome::hitachi_ac344::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_ac344.cpp.

Variable Documentation

◆ HITACHI_AC344_BIT_MARK

const uint16_t esphome::hitachi_ac344::HITACHI_AC344_BIT_MARK = 400

Definition at line 11 of file hitachi_ac344.h.

◆ HITACHI_AC344_BITS

const uint16_t esphome::hitachi_ac344::HITACHI_AC344_BITS = HITACHI_AC344_STATE_LENGTH * 8

Definition at line 74 of file hitachi_ac344.h.

◆ HITACHI_AC344_BUTTON_BYTE

const uint8_t esphome::hitachi_ac344::HITACHI_AC344_BUTTON_BYTE = 11

Definition at line 17 of file hitachi_ac344.h.

◆ HITACHI_AC344_BUTTON_FAN

const uint8_t esphome::hitachi_ac344::HITACHI_AC344_BUTTON_FAN = 0x42

Definition at line 21 of file hitachi_ac344.h.

◆ HITACHI_AC344_BUTTON_MILDEWPROOF

const uint8_t esphome::hitachi_ac344::HITACHI_AC344_BUTTON_MILDEWPROOF = 0xE2

Definition at line 26 of file hitachi_ac344.h.

◆ HITACHI_AC344_BUTTON_MODE

const uint8_t esphome::hitachi_ac344::HITACHI_AC344_BUTTON_MODE = 0x41

Definition at line 20 of file hitachi_ac344.h.

◆ HITACHI_AC344_BUTTON_POWER

const uint8_t esphome::hitachi_ac344::HITACHI_AC344_BUTTON_POWER = 0x13

Definition at line 18 of file hitachi_ac344.h.

◆ HITACHI_AC344_BUTTON_SLEEP

const uint8_t esphome::hitachi_ac344::HITACHI_AC344_BUTTON_SLEEP = 0x31

Definition at line 19 of file hitachi_ac344.h.

◆ HITACHI_AC344_BUTTON_SWINGH

const uint8_t esphome::hitachi_ac344::HITACHI_AC344_BUTTON_SWINGH = 0x8C

Definition at line 25 of file hitachi_ac344.h.

◆ HITACHI_AC344_BUTTON_SWINGV

const uint8_t esphome::hitachi_ac344::HITACHI_AC344_BUTTON_SWINGV = 0x81

Definition at line 24 of file hitachi_ac344.h.

◆ HITACHI_AC344_BUTTON_TEMP_DOWN

const uint8_t esphome::hitachi_ac344::HITACHI_AC344_BUTTON_TEMP_DOWN = 0x43

Definition at line 22 of file hitachi_ac344.h.

◆ HITACHI_AC344_BUTTON_TEMP_UP

const uint8_t esphome::hitachi_ac344::HITACHI_AC344_BUTTON_TEMP_UP = 0x44

Definition at line 23 of file hitachi_ac344.h.

◆ HITACHI_AC344_FAN_AUTO

const uint8_t esphome::hitachi_ac344::HITACHI_AC344_FAN_AUTO = 5

Definition at line 49 of file hitachi_ac344.h.

◆ HITACHI_AC344_FAN_BYTE

const uint8_t esphome::hitachi_ac344::HITACHI_AC344_FAN_BYTE = HITACHI_AC344_MODE_BYTE

Definition at line 44 of file hitachi_ac344.h.

◆ HITACHI_AC344_FAN_HIGH

const uint8_t esphome::hitachi_ac344::HITACHI_AC344_FAN_HIGH = 4

Definition at line 48 of file hitachi_ac344.h.

◆ HITACHI_AC344_FAN_LOW

const uint8_t esphome::hitachi_ac344::HITACHI_AC344_FAN_LOW = 2

Definition at line 46 of file hitachi_ac344.h.

◆ HITACHI_AC344_FAN_MAX

const uint8_t esphome::hitachi_ac344::HITACHI_AC344_FAN_MAX = 6

Definition at line 50 of file hitachi_ac344.h.

◆ HITACHI_AC344_FAN_MAX_DRY

const uint8_t esphome::hitachi_ac344::HITACHI_AC344_FAN_MAX_DRY = 2

Definition at line 51 of file hitachi_ac344.h.

◆ HITACHI_AC344_FAN_MEDIUM

const uint8_t esphome::hitachi_ac344::HITACHI_AC344_FAN_MEDIUM = 3

Definition at line 47 of file hitachi_ac344.h.

◆ HITACHI_AC344_FAN_MIN

const uint8_t esphome::hitachi_ac344::HITACHI_AC344_FAN_MIN = 1

Definition at line 45 of file hitachi_ac344.h.

◆ HITACHI_AC344_FREQ

const uint16_t esphome::hitachi_ac344::HITACHI_AC344_FREQ = 38000

Definition at line 15 of file hitachi_ac344.h.

◆ HITACHI_AC344_HDR_MARK

const uint16_t esphome::hitachi_ac344::HITACHI_AC344_HDR_MARK = 3300

Definition at line 9 of file hitachi_ac344.h.

◆ HITACHI_AC344_HDR_SPACE

const uint16_t esphome::hitachi_ac344::HITACHI_AC344_HDR_SPACE = 1700

Definition at line 10 of file hitachi_ac344.h.

◆ HITACHI_AC344_MILDEWPROOF_BYTE

const uint8_t esphome::hitachi_ac344::HITACHI_AC344_MILDEWPROOF_BYTE = HITACHI_AC344_SWINGV_BYTE

Definition at line 70 of file hitachi_ac344.h.

◆ HITACHI_AC344_MILDEWPROOF_OFFSET

const uint8_t esphome::hitachi_ac344::HITACHI_AC344_MILDEWPROOF_OFFSET = 2

Definition at line 71 of file hitachi_ac344.h.

◆ HITACHI_AC344_MIN_GAP

const uint32_t esphome::hitachi_ac344::HITACHI_AC344_MIN_GAP = 100000

Definition at line 14 of file hitachi_ac344.h.

◆ HITACHI_AC344_MODE_AUTO

const uint8_t esphome::hitachi_ac344::HITACHI_AC344_MODE_AUTO = 7

Definition at line 42 of file hitachi_ac344.h.

◆ HITACHI_AC344_MODE_BYTE

const uint8_t esphome::hitachi_ac344::HITACHI_AC344_MODE_BYTE = 25

Definition at line 37 of file hitachi_ac344.h.

◆ HITACHI_AC344_MODE_COOL

const uint8_t esphome::hitachi_ac344::HITACHI_AC344_MODE_COOL = 3

Definition at line 39 of file hitachi_ac344.h.

◆ HITACHI_AC344_MODE_DRY

const uint8_t esphome::hitachi_ac344::HITACHI_AC344_MODE_DRY = 5

Definition at line 40 of file hitachi_ac344.h.

◆ HITACHI_AC344_MODE_FAN

const uint8_t esphome::hitachi_ac344::HITACHI_AC344_MODE_FAN = 1

Definition at line 38 of file hitachi_ac344.h.

◆ HITACHI_AC344_MODE_HEAT

const uint8_t esphome::hitachi_ac344::HITACHI_AC344_MODE_HEAT = 6

Definition at line 41 of file hitachi_ac344.h.

◆ HITACHI_AC344_ONE_SPACE

const uint16_t esphome::hitachi_ac344::HITACHI_AC344_ONE_SPACE = 1250

Definition at line 12 of file hitachi_ac344.h.

◆ HITACHI_AC344_POWER_BYTE

const uint8_t esphome::hitachi_ac344::HITACHI_AC344_POWER_BYTE = 27

Definition at line 53 of file hitachi_ac344.h.

◆ HITACHI_AC344_POWER_OFF

const uint8_t esphome::hitachi_ac344::HITACHI_AC344_POWER_OFF = 0xE1

Definition at line 55 of file hitachi_ac344.h.

◆ HITACHI_AC344_POWER_ON

const uint8_t esphome::hitachi_ac344::HITACHI_AC344_POWER_ON = 0xF1

Definition at line 54 of file hitachi_ac344.h.

◆ HITACHI_AC344_STATE_LENGTH

const uint16_t esphome::hitachi_ac344::HITACHI_AC344_STATE_LENGTH = 43

Definition at line 73 of file hitachi_ac344.h.

◆ HITACHI_AC344_SWINGH_AUTO

const uint8_t esphome::hitachi_ac344::HITACHI_AC344_SWINGH_AUTO = 0

Definition at line 60 of file hitachi_ac344.h.

◆ HITACHI_AC344_SWINGH_BYTE

const uint8_t esphome::hitachi_ac344::HITACHI_AC344_SWINGH_BYTE = 35

Definition at line 57 of file hitachi_ac344.h.

◆ HITACHI_AC344_SWINGH_LEFT

const uint8_t esphome::hitachi_ac344::HITACHI_AC344_SWINGH_LEFT = 4

Definition at line 64 of file hitachi_ac344.h.

◆ HITACHI_AC344_SWINGH_LEFT_MAX

const uint8_t esphome::hitachi_ac344::HITACHI_AC344_SWINGH_LEFT_MAX = 5

Definition at line 65 of file hitachi_ac344.h.

◆ HITACHI_AC344_SWINGH_MIDDLE

const uint8_t esphome::hitachi_ac344::HITACHI_AC344_SWINGH_MIDDLE = 3

Definition at line 63 of file hitachi_ac344.h.

◆ HITACHI_AC344_SWINGH_OFFSET

const uint8_t esphome::hitachi_ac344::HITACHI_AC344_SWINGH_OFFSET = 0

Definition at line 58 of file hitachi_ac344.h.

◆ HITACHI_AC344_SWINGH_RIGHT

const uint8_t esphome::hitachi_ac344::HITACHI_AC344_SWINGH_RIGHT = 2

Definition at line 62 of file hitachi_ac344.h.

◆ HITACHI_AC344_SWINGH_RIGHT_MAX

const uint8_t esphome::hitachi_ac344::HITACHI_AC344_SWINGH_RIGHT_MAX = 1

Definition at line 61 of file hitachi_ac344.h.

◆ HITACHI_AC344_SWINGH_SIZE

const uint8_t esphome::hitachi_ac344::HITACHI_AC344_SWINGH_SIZE = 3

Definition at line 59 of file hitachi_ac344.h.

◆ HITACHI_AC344_SWINGV_BYTE

const uint8_t esphome::hitachi_ac344::HITACHI_AC344_SWINGV_BYTE = 37

Definition at line 67 of file hitachi_ac344.h.

◆ HITACHI_AC344_SWINGV_OFFSET

const uint8_t esphome::hitachi_ac344::HITACHI_AC344_SWINGV_OFFSET = 5

Definition at line 68 of file hitachi_ac344.h.

◆ HITACHI_AC344_TEMP_BYTE

const uint8_t esphome::hitachi_ac344::HITACHI_AC344_TEMP_BYTE = 13

Definition at line 28 of file hitachi_ac344.h.

◆ HITACHI_AC344_TEMP_FAN

const uint8_t esphome::hitachi_ac344::HITACHI_AC344_TEMP_FAN = 27

Definition at line 33 of file hitachi_ac344.h.

◆ HITACHI_AC344_TEMP_MAX

const uint8_t esphome::hitachi_ac344::HITACHI_AC344_TEMP_MAX = 32

Definition at line 32 of file hitachi_ac344.h.

◆ HITACHI_AC344_TEMP_MIN

const uint8_t esphome::hitachi_ac344::HITACHI_AC344_TEMP_MIN = 16

Definition at line 31 of file hitachi_ac344.h.

◆ HITACHI_AC344_TEMP_OFFSET

const uint8_t esphome::hitachi_ac344::HITACHI_AC344_TEMP_OFFSET = 2

Definition at line 29 of file hitachi_ac344.h.

◆ HITACHI_AC344_TEMP_SIZE

const uint8_t esphome::hitachi_ac344::HITACHI_AC344_TEMP_SIZE = 6

Definition at line 30 of file hitachi_ac344.h.

◆ HITACHI_AC344_TIMER_BYTE

const uint8_t esphome::hitachi_ac344::HITACHI_AC344_TIMER_BYTE = 15

Definition at line 35 of file hitachi_ac344.h.

◆ HITACHI_AC344_ZERO_SPACE

const uint16_t esphome::hitachi_ac344::HITACHI_AC344_ZERO_SPACE = 500

Definition at line 13 of file hitachi_ac344.h.