ESPHome  2024.10.2
Public Member Functions | Data Fields | Protected Attributes
esphome::am43::Am43Decoder Class Reference

#include <am43_base.h>

Public Member Functions

void decode (const uint8_t *data, uint16_t length)
 
bool has_battery_level ()
 
bool has_light_level ()
 
bool has_set_position_response ()
 
bool has_set_state_response ()
 
bool has_position ()
 
bool has_pin_response ()
 

Data Fields

union {
   uint8_t   position_
 
   uint8_t   battery_level_
 
   float   light_level_
 
   uint8_t   set_position_ok_
 
   uint8_t   set_state_ok_
 
   uint8_t   pin_ok_
 
}; 
 

Protected Attributes

bool has_battery_level_
 
bool has_light_level_
 
bool has_set_position_response_
 
bool has_set_state_response_
 
bool has_position_
 
bool has_pin_response_
 

Detailed Description

Definition at line 49 of file am43_base.h.

Member Function Documentation

◆ decode()

void esphome::am43::Am43Decoder::decode ( const uint8_t *  data,
uint16_t  length 
)

Definition at line 84 of file am43_base.cpp.

◆ has_battery_level()

bool esphome::am43::Am43Decoder::has_battery_level ( )
inline

Definition at line 52 of file am43_base.h.

◆ has_light_level()

bool esphome::am43::Am43Decoder::has_light_level ( )
inline

Definition at line 53 of file am43_base.h.

◆ has_pin_response()

bool esphome::am43::Am43Decoder::has_pin_response ( )
inline

Definition at line 57 of file am43_base.h.

◆ has_position()

bool esphome::am43::Am43Decoder::has_position ( )
inline

Definition at line 56 of file am43_base.h.

◆ has_set_position_response()

bool esphome::am43::Am43Decoder::has_set_position_response ( )
inline

Definition at line 54 of file am43_base.h.

◆ has_set_state_response()

bool esphome::am43::Am43Decoder::has_set_state_response ( )
inline

Definition at line 55 of file am43_base.h.

Field Documentation

◆ @1

union { ... }

◆ battery_level_

uint8_t esphome::am43::Am43Decoder::battery_level_

Definition at line 61 of file am43_base.h.

◆ has_battery_level_

bool esphome::am43::Am43Decoder::has_battery_level_
protected

Definition at line 69 of file am43_base.h.

◆ has_light_level_

bool esphome::am43::Am43Decoder::has_light_level_
protected

Definition at line 70 of file am43_base.h.

◆ has_pin_response_

bool esphome::am43::Am43Decoder::has_pin_response_
protected

Definition at line 74 of file am43_base.h.

◆ has_position_

bool esphome::am43::Am43Decoder::has_position_
protected

Definition at line 73 of file am43_base.h.

◆ has_set_position_response_

bool esphome::am43::Am43Decoder::has_set_position_response_
protected

Definition at line 71 of file am43_base.h.

◆ has_set_state_response_

bool esphome::am43::Am43Decoder::has_set_state_response_
protected

Definition at line 72 of file am43_base.h.

◆ light_level_

float esphome::am43::Am43Decoder::light_level_

Definition at line 62 of file am43_base.h.

◆ pin_ok_

uint8_t esphome::am43::Am43Decoder::pin_ok_

Definition at line 65 of file am43_base.h.

◆ position_

uint8_t esphome::am43::Am43Decoder::position_

Definition at line 60 of file am43_base.h.

◆ set_position_ok_

uint8_t esphome::am43::Am43Decoder::set_position_ok_

Definition at line 63 of file am43_base.h.

◆ set_state_ok_

uint8_t esphome::am43::Am43Decoder::set_state_ok_

Definition at line 64 of file am43_base.h.


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