ESPHome  2024.11.0
Public Member Functions | Data Fields | Protected Member Functions | Protected Attributes
esphome::anova::AnovaCodec Class Reference

#include <anova_base.h>

Public Member Functions

AnovaPacketget_read_device_status_request ()
 
AnovaPacketget_read_target_temp_request ()
 
AnovaPacketget_read_current_temp_request ()
 
AnovaPacketget_read_data_request ()
 
AnovaPacketget_read_unit_request ()
 
AnovaPacketget_set_target_temp_request (float temperature)
 
AnovaPacketget_set_unit_request (char unit)
 
AnovaPacketget_start_request ()
 
AnovaPacketget_stop_request ()
 
void decode (const uint8_t *data, uint16_t length)
 
bool has_target_temp ()
 
bool has_current_temp ()
 
bool has_unit ()
 
bool has_running ()
 

Data Fields

union {
   float   target_temp_
 
   float   current_temp_
 
   char   unit_
 
   bool   running_
 
}; 
 

Protected Member Functions

AnovaPacketclean_packet_ ()
 

Protected Attributes

AnovaPacket packet_
 
bool has_target_temp_
 
bool has_current_temp_
 
bool has_unit_
 
bool has_running_
 
bool fahrenheit_
 
CurrentQuery current_query_
 

Detailed Description

Definition at line 38 of file anova_base.h.

Member Function Documentation

◆ clean_packet_()

AnovaPacket * esphome::anova::AnovaCodec::clean_packet_ ( )
protected

Definition at line 12 of file anova_base.cpp.

◆ decode()

void esphome::anova::AnovaCodec::decode ( const uint8_t *  data,
uint16_t  length 
)

Definition at line 75 of file anova_base.cpp.

◆ get_read_current_temp_request()

AnovaPacket * esphome::anova::AnovaCodec::get_read_current_temp_request ( )

Definition at line 31 of file anova_base.cpp.

◆ get_read_data_request()

AnovaPacket * esphome::anova::AnovaCodec::get_read_data_request ( )

Definition at line 43 of file anova_base.cpp.

◆ get_read_device_status_request()

AnovaPacket * esphome::anova::AnovaCodec::get_read_device_status_request ( )

Definition at line 19 of file anova_base.cpp.

◆ get_read_target_temp_request()

AnovaPacket * esphome::anova::AnovaCodec::get_read_target_temp_request ( )

Definition at line 25 of file anova_base.cpp.

◆ get_read_unit_request()

AnovaPacket * esphome::anova::AnovaCodec::get_read_unit_request ( )

Definition at line 37 of file anova_base.cpp.

◆ get_set_target_temp_request()

AnovaPacket * esphome::anova::AnovaCodec::get_set_target_temp_request ( float  temperature)

Definition at line 49 of file anova_base.cpp.

◆ get_set_unit_request()

AnovaPacket * esphome::anova::AnovaCodec::get_set_unit_request ( char  unit)

Definition at line 57 of file anova_base.cpp.

◆ get_start_request()

AnovaPacket * esphome::anova::AnovaCodec::get_start_request ( )

Definition at line 63 of file anova_base.cpp.

◆ get_stop_request()

AnovaPacket * esphome::anova::AnovaCodec::get_stop_request ( )

Definition at line 69 of file anova_base.cpp.

◆ has_current_temp()

bool esphome::anova::AnovaCodec::has_current_temp ( )
inline

Definition at line 54 of file anova_base.h.

◆ has_running()

bool esphome::anova::AnovaCodec::has_running ( )
inline

Definition at line 56 of file anova_base.h.

◆ has_target_temp()

bool esphome::anova::AnovaCodec::has_target_temp ( )
inline

Definition at line 53 of file anova_base.h.

◆ has_unit()

bool esphome::anova::AnovaCodec::has_unit ( )
inline

Definition at line 55 of file anova_base.h.

Field Documentation

◆ @3

union { ... }

◆ current_query_

CurrentQuery esphome::anova::AnovaCodec::current_query_
protected

Definition at line 75 of file anova_base.h.

◆ current_temp_

float esphome::anova::AnovaCodec::current_temp_

Definition at line 60 of file anova_base.h.

◆ fahrenheit_

bool esphome::anova::AnovaCodec::fahrenheit_
protected

Definition at line 73 of file anova_base.h.

◆ has_current_temp_

bool esphome::anova::AnovaCodec::has_current_temp_
protected

Definition at line 70 of file anova_base.h.

◆ has_running_

bool esphome::anova::AnovaCodec::has_running_
protected

Definition at line 72 of file anova_base.h.

◆ has_target_temp_

bool esphome::anova::AnovaCodec::has_target_temp_
protected

Definition at line 69 of file anova_base.h.

◆ has_unit_

bool esphome::anova::AnovaCodec::has_unit_
protected

Definition at line 71 of file anova_base.h.

◆ packet_

AnovaPacket esphome::anova::AnovaCodec::packet_
protected

Definition at line 67 of file anova_base.h.

◆ running_

bool esphome::anova::AnovaCodec::running_

Definition at line 62 of file anova_base.h.

◆ target_temp_

float esphome::anova::AnovaCodec::target_temp_

Definition at line 59 of file anova_base.h.

◆ unit_

char esphome::anova::AnovaCodec::unit_

Definition at line 61 of file anova_base.h.


The documentation for this class was generated from the following files: