ESPHome 2026.11.0b6
Loading...
Searching...
No Matches
esphome::am43::Am43Decoder Class Reference

Decodes one notification; construct it on the stack for each frame. More...

#include <am43_base.h>

Public Member Functions

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

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_ {false}
 
bool has_light_level_ {false}
 
bool has_set_position_response_ {false}
 
bool has_set_state_response_ {false}
 
bool has_position_ {false}
 
bool has_pin_response_ {false}
 

Detailed Description

Decodes one notification; construct it on the stack for each frame.

Definition at line 46 of file am43_base.h.

Member Function Documentation

◆ decode()

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

Definition at line 66 of file am43_base.cpp.

◆ has_battery_level()

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

Definition at line 49 of file am43_base.h.

◆ has_light_level()

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

Definition at line 50 of file am43_base.h.

◆ has_pin_response()

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

Definition at line 54 of file am43_base.h.

◆ has_position()

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

Definition at line 53 of file am43_base.h.

◆ has_set_position_response()

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

Definition at line 51 of file am43_base.h.

◆ has_set_state_response()

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

Definition at line 52 of file am43_base.h.

Field Documentation

◆ [union]

◆ battery_level_

uint8_t esphome::am43::Am43Decoder::battery_level_

Definition at line 58 of file am43_base.h.

◆ has_battery_level_

bool esphome::am43::Am43Decoder::has_battery_level_ {false}
protected

Definition at line 66 of file am43_base.h.

◆ has_light_level_

bool esphome::am43::Am43Decoder::has_light_level_ {false}
protected

Definition at line 67 of file am43_base.h.

◆ has_pin_response_

bool esphome::am43::Am43Decoder::has_pin_response_ {false}
protected

Definition at line 71 of file am43_base.h.

◆ has_position_

bool esphome::am43::Am43Decoder::has_position_ {false}
protected

Definition at line 70 of file am43_base.h.

◆ has_set_position_response_

bool esphome::am43::Am43Decoder::has_set_position_response_ {false}
protected

Definition at line 68 of file am43_base.h.

◆ has_set_state_response_

bool esphome::am43::Am43Decoder::has_set_state_response_ {false}
protected

Definition at line 69 of file am43_base.h.

◆ light_level_

float esphome::am43::Am43Decoder::light_level_

Definition at line 59 of file am43_base.h.

◆ pin_ok_

uint8_t esphome::am43::Am43Decoder::pin_ok_

Definition at line 62 of file am43_base.h.

◆ position_

uint8_t esphome::am43::Am43Decoder::position_

Definition at line 57 of file am43_base.h.

◆ set_position_ok_

uint8_t esphome::am43::Am43Decoder::set_position_ok_

Definition at line 60 of file am43_base.h.

◆ set_state_ok_

uint8_t esphome::am43::Am43Decoder::set_state_ok_

Definition at line 61 of file am43_base.h.


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