ESPHome 2026.11.0b6
Loading...
Searching...
No Matches
panasonic_ac_frame.h File Reference

Go to the source code of this file.

Data Structures

struct  esphome::panasonic_ir::ModelBytes
 Per model bytes. B17 is the horizontal vane on DKE and RKR, always sent in the middle (0x06). More...
 
struct  esphome::panasonic_ir::FrameParams
 

Namespaces

namespace  esphome
 
namespace  esphome::panasonic_ir
 

Enumerations

enum class  esphome::panasonic_ir::Model : uint8_t {
  esphome::panasonic_ir::DKE , esphome::panasonic_ir::JKE , esphome::panasonic_ir::LKE , esphome::panasonic_ir::NKE ,
  esphome::panasonic_ir::CKP , esphome::panasonic_ir::RKR , esphome::panasonic_ir::PKE
}
 
enum class  esphome::panasonic_ir::Mode : uint8_t {
  esphome::panasonic_ir::AUTO = 0 , esphome::panasonic_ir::DRY = 2 , esphome::panasonic_ir::COOL = 3 , esphome::panasonic_ir::HEAT = 4 ,
  esphome::panasonic_ir::FAN = 6
}
 

Functions

void esphome::panasonic_ir::fill_template (uint8_t *state)
 The part of the state that doesn't depend on the settings. Built in code, so it doesn't take up RAM on an ESP8266.
 
uint8_t esphome::panasonic_ir::calc_checksum (const uint8_t *state, size_t len)
 
void esphome::panasonic_ir::encode_frame (const FrameParams &p, uint8_t *state)
 Encodes p as is: the temperature is not clamped, except that fan only mode always sends 27 C.
 
bool esphome::panasonic_ir::decode_frame (const uint8_t *state, FrameParams &p)
 Decode a state. Returns false if the state doesn't look like a valid Panasonic A/C state.
 
bool esphome::panasonic_ir::peek_footer (const remote_base::RemoteReceiveData &data)
 A footer mark, followed by the end of the capture or a long space (idle time or section gap), never a bit.
 
size_t esphome::panasonic_ir::receive_section (remote_base::RemoteReceiveData &data, uint8_t *bytes)
 Reads header + bytes + footer mark of a section of either length. Returns the number of bytes read, or 0.
 
bool esphome::panasonic_ir::read_state (remote_base::RemoteReceiveData &data, uint8_t *state)
 Reads a state from a received capture.