ESPHome  2024.11.2
Data Structures | Variables
esphome::whynter Namespace Reference

Data Structures

class  Whynter
 

Variables

const uint16_t BITS = 32
 
const uint32_t COMMAND_MASK = 0xFF << 24
 
const uint32_t COMMAND_CODE = 0x12 << 24
 
const uint32_t POWER_SHIFT = 8
 
const uint32_t POWER_MASK = 1 << POWER_SHIFT
 
const uint32_t POWER_OFF = 0 << POWER_SHIFT
 
const uint32_t MODE_SHIFT = 16
 
const uint32_t MODE_MASK = 0b1111 << MODE_SHIFT
 
const uint32_t MODE_FAN = 0b0001 << MODE_SHIFT
 
const uint32_t MODE_DRY = 0b0010 << MODE_SHIFT
 
const uint32_t MODE_HEAT = 0b0100 << MODE_SHIFT
 
const uint32_t MODE_COOL = 0b1000 << MODE_SHIFT
 
const uint32_t FAN_SHIFT = 20
 
const uint32_t FAN_MASK = 0b111 << FAN_SHIFT
 
const uint32_t FAN_HIGH = 0b001 << FAN_SHIFT
 
const uint32_t FAN_MED = 0b010 << FAN_SHIFT
 
const uint32_t FAN_LOW = 0b100 << FAN_SHIFT
 
const uint32_t UNIT_SHIFT = 10
 
const uint32_t UNIT_MASK = 1 << UNIT_SHIFT
 
const uint32_t TEMP_MASK = 0xFF
 
const uint32_t TEMP_OFFSET_C = 16
 
const uint8_t TEMP_MIN_C = 16
 
const uint8_t TEMP_MAX_C = 32
 
const uint8_t TEMP_MIN_F = 61
 
const uint8_t TEMP_MAX_F = 89
 

Variable Documentation

◆ BITS

const uint16_t esphome::whynter::BITS = 32

Definition at line 9 of file whynter.cpp.

◆ COMMAND_CODE

const uint32_t esphome::whynter::COMMAND_CODE = 0x12 << 24

Definition at line 13 of file whynter.cpp.

◆ COMMAND_MASK

const uint32_t esphome::whynter::COMMAND_MASK = 0xFF << 24

Definition at line 12 of file whynter.cpp.

◆ FAN_HIGH

const uint32_t esphome::whynter::FAN_HIGH = 0b001 << FAN_SHIFT

Definition at line 31 of file whynter.cpp.

◆ FAN_LOW

const uint32_t esphome::whynter::FAN_LOW = 0b100 << FAN_SHIFT

Definition at line 33 of file whynter.cpp.

◆ FAN_MASK

const uint32_t esphome::whynter::FAN_MASK = 0b111 << FAN_SHIFT

Definition at line 30 of file whynter.cpp.

◆ FAN_MED

const uint32_t esphome::whynter::FAN_MED = 0b010 << FAN_SHIFT

Definition at line 32 of file whynter.cpp.

◆ FAN_SHIFT

const uint32_t esphome::whynter::FAN_SHIFT = 20

Definition at line 29 of file whynter.cpp.

◆ MODE_COOL

const uint32_t esphome::whynter::MODE_COOL = 0b1000 << MODE_SHIFT

Definition at line 26 of file whynter.cpp.

◆ MODE_DRY

const uint32_t esphome::whynter::MODE_DRY = 0b0010 << MODE_SHIFT

Definition at line 24 of file whynter.cpp.

◆ MODE_FAN

const uint32_t esphome::whynter::MODE_FAN = 0b0001 << MODE_SHIFT

Definition at line 23 of file whynter.cpp.

◆ MODE_HEAT

const uint32_t esphome::whynter::MODE_HEAT = 0b0100 << MODE_SHIFT

Definition at line 25 of file whynter.cpp.

◆ MODE_MASK

const uint32_t esphome::whynter::MODE_MASK = 0b1111 << MODE_SHIFT

Definition at line 22 of file whynter.cpp.

◆ MODE_SHIFT

const uint32_t esphome::whynter::MODE_SHIFT = 16

Definition at line 21 of file whynter.cpp.

◆ POWER_MASK

const uint32_t esphome::whynter::POWER_MASK = 1 << POWER_SHIFT

Definition at line 17 of file whynter.cpp.

◆ POWER_OFF

const uint32_t esphome::whynter::POWER_OFF = 0 << POWER_SHIFT

Definition at line 18 of file whynter.cpp.

◆ POWER_SHIFT

const uint32_t esphome::whynter::POWER_SHIFT = 8

Definition at line 16 of file whynter.cpp.

◆ TEMP_MASK

const uint32_t esphome::whynter::TEMP_MASK = 0xFF

Definition at line 40 of file whynter.cpp.

◆ TEMP_MAX_C

const uint8_t esphome::whynter::TEMP_MAX_C = 32

Definition at line 12 of file whynter.h.

◆ TEMP_MAX_F

const uint8_t esphome::whynter::TEMP_MAX_F = 89

Definition at line 14 of file whynter.h.

◆ TEMP_MIN_C

const uint8_t esphome::whynter::TEMP_MIN_C = 16

Definition at line 11 of file whynter.h.

◆ TEMP_MIN_F

const uint8_t esphome::whynter::TEMP_MIN_F = 61

Definition at line 13 of file whynter.h.

◆ TEMP_OFFSET_C

const uint32_t esphome::whynter::TEMP_OFFSET_C = 16

Definition at line 41 of file whynter.cpp.

◆ UNIT_MASK

const uint32_t esphome::whynter::UNIT_MASK = 1 << UNIT_SHIFT

Definition at line 37 of file whynter.cpp.

◆ UNIT_SHIFT

const uint32_t esphome::whynter::UNIT_SHIFT = 10

Definition at line 36 of file whynter.cpp.