7 namespace hitachi_ac344 {
76 #define GETBIT8(a, b) ((a) & ((uint8_t) 1 << (b))) 77 #define GETBITS8(data, offset, size) (((data) & (((uint8_t) UINT8_MAX >> (8 - (size))) << (offset))) >> (offset)) 82 : climate_ir::
ClimateIR(HITACHI_AC344_TEMP_MIN, HITACHI_AC344_TEMP_MAX, 1.0F, true, true,
88 uint8_t
remote_state_[
HITACHI_AC344_STATE_LENGTH]{0x01, 0x10, 0x00, 0x40, 0x00, 0xFF, 0x00, 0xCC, 0x00, 0x00, 0x00,
89 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
90 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x00, 0x01, 0x00,
91 0x80, 0x00, 0x03, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00};
99 void set_temp_(uint8_t celsius,
bool set_previous =
false);
114 bool parse_fan_(
const uint8_t remote_state[]);
The fan mode is set to Low.
const uint16_t HITACHI_AC344_HDR_MARK
void transmit_state() override
const uint8_t HITACHI_AC344_SWINGH_RIGHT_MAX
const uint8_t HITACHI_AC344_FAN_AUTO
const uint8_t HITACHI_AC344_SWINGH_BYTE
void set_temp_(uint8_t celsius, bool set_previous=false)
const uint8_t HITACHI_AC344_SWINGH_OFFSET
const uint8_t HITACHI_AC344_TEMP_SIZE
const uint8_t HITACHI_AC344_MODE_AUTO
const uint8_t HITACHI_AC344_FAN_BYTE
void set_mode_(uint8_t mode)
void set_swing_v_toggle_(bool on)
const uint8_t HITACHI_AC344_BUTTON_SWINGV
const uint8_t HITACHI_AC344_MODE_FAN
bool on_receive(remote_base::RemoteReceiveData data) override
void set_swing_h_(uint8_t position)
ClimateMode mode
The active mode of the climate device.
const uint8_t HITACHI_AC344_BUTTON_POWER
const uint8_t HITACHI_AC344_TEMP_MAX
const uint8_t HITACHI_AC344_TEMP_FAN
uint8_t remote_state_[HITACHI_AC344_STATE_LENGTH]
bool parse_mode_(const uint8_t remote_state[])
void set_button_(uint8_t button)
const uint8_t HITACHI_AC344_TEMP_OFFSET
const uint8_t HITACHI_AC344_FAN_MEDIUM
bool get_swing_v_toggle_()
const uint16_t HITACHI_AC344_BITS
const uint8_t HITACHI_AC344_SWINGH_RIGHT
const uint8_t HITACHI_AC344_SWINGV_BYTE
const uint8_t HITACHI_AC344_SWINGH_LEFT
The fan mode is set to Horizontal.
const uint8_t HITACHI_AC344_FAN_HIGH
The fan mode is set to Auto.
const uint32_t HITACHI_AC344_MIN_GAP
bool parse_swing_(const uint8_t remote_state[])
const uint8_t HITACHI_AC344_BUTTON_BYTE
const uint8_t HITACHI_AC344_SWINGH_AUTO
const uint8_t HITACHI_AC344_BUTTON_MODE
const uint8_t HITACHI_AC344_BUTTON_TEMP_DOWN
const uint8_t HITACHI_AC344_SWINGH_SIZE
const uint8_t HITACHI_AC344_POWER_BYTE
ClimateIR(float minimum_temperature, float maximum_temperature, float temperature_step=1.0f, bool supports_dry=false, bool supports_fan_only=false, std::set< climate::ClimateFanMode > fan_modes={}, std::set< climate::ClimateSwingMode > swing_modes={}, std::set< climate::ClimatePreset > presets={})
const uint8_t HITACHI_AC344_POWER_OFF
const uint8_t HITACHI_AC344_BUTTON_SWINGH
const uint8_t HITACHI_AC344_FAN_MAX_DRY
const uint8_t HITACHI_AC344_MILDEWPROOF_OFFSET
bool parse_temperature_(const uint8_t remote_state[])
const uint8_t HITACHI_AC344_BUTTON_TEMP_UP
const uint16_t HITACHI_AC344_HDR_SPACE
const uint8_t HITACHI_AC344_BUTTON_FAN
The fan mode is set to High.
const uint8_t HITACHI_AC344_SWINGV_OFFSET
The swing mode is set to Off.
void set_swing_v_(bool on)
bool parse_fan_(const uint8_t remote_state[])
const uint8_t HITACHI_AC344_TEMP_MIN
const uint16_t HITACHI_AC344_FREQ
const uint8_t HITACHI_AC344_FAN_LOW
const uint8_t HITACHI_AC344_MODE_DRY
const uint16_t HITACHI_AC344_ZERO_SPACE
const uint16_t HITACHI_AC344_BIT_MARK
const uint8_t HITACHI_AC344_MODE_BYTE
void dump_state_(const char action[], uint8_t remote_state[])
const uint8_t HITACHI_AC344_SWINGH_LEFT_MAX
const uint8_t HITACHI_AC344_SWINGH_MIDDLE
const uint8_t HITACHI_AC344_MODE_COOL
const uint8_t HITACHI_AC344_TIMER_BYTE
void set_fan_(uint8_t speed)
const uint8_t HITACHI_AC344_MILDEWPROOF_BYTE
const uint8_t HITACHI_AC344_TEMP_BYTE
Implementation of SPI Controller mode.
const uint8_t HITACHI_AC344_BUTTON_MILDEWPROOF
const uint16_t HITACHI_AC344_ONE_SPACE
const uint8_t HITACHI_AC344_BUTTON_SLEEP
const uint8_t HITACHI_AC344_MODE_HEAT
const uint8_t HITACHI_AC344_FAN_MIN
The fan mode is set to Medium.
bool parse_state_frame_(const uint8_t frame[])
const uint16_t HITACHI_AC344_STATE_LENGTH
ClimateAction action
The active state of the climate device.
const uint8_t HITACHI_AC344_POWER_ON
const uint8_t HITACHI_AC344_FAN_MAX