ESPHome  2024.4.1
Public Member Functions | Protected Attributes
esphome::partition::AddressableSegment Class Reference

#include <light_partition.h>

Public Member Functions

 AddressableSegment (light::LightState *src, int32_t src_offset, int32_t size, bool reversed)
 
light::AddressableLightget_src () const
 
int32_t get_src_offset () const
 
int32_t get_size () const
 
int32_t get_dst_offset () const
 
void set_dst_offset (int32_t dst_offset)
 
bool is_reversed () const
 

Protected Attributes

light::AddressableLightsrc_
 
int32_t src_offset_
 
int32_t size_
 
int32_t dst_offset_
 
bool reversed_
 

Detailed Description

Definition at line 12 of file light_partition.h.

Constructor & Destructor Documentation

◆ AddressableSegment()

esphome::partition::AddressableSegment::AddressableSegment ( light::LightState src,
int32_t  src_offset,
int32_t  size,
bool  reversed 
)
inline

Definition at line 14 of file light_partition.h.

Member Function Documentation

◆ get_dst_offset()

int32_t esphome::partition::AddressableSegment::get_dst_offset ( ) const
inline

Definition at line 23 of file light_partition.h.

◆ get_size()

int32_t esphome::partition::AddressableSegment::get_size ( ) const
inline

Definition at line 22 of file light_partition.h.

◆ get_src()

light::AddressableLight* esphome::partition::AddressableSegment::get_src ( ) const
inline

Definition at line 20 of file light_partition.h.

◆ get_src_offset()

int32_t esphome::partition::AddressableSegment::get_src_offset ( ) const
inline

Definition at line 21 of file light_partition.h.

◆ is_reversed()

bool esphome::partition::AddressableSegment::is_reversed ( ) const
inline

Definition at line 25 of file light_partition.h.

◆ set_dst_offset()

void esphome::partition::AddressableSegment::set_dst_offset ( int32_t  dst_offset)
inline

Definition at line 24 of file light_partition.h.

Field Documentation

◆ dst_offset_

int32_t esphome::partition::AddressableSegment::dst_offset_
protected

Definition at line 31 of file light_partition.h.

◆ reversed_

bool esphome::partition::AddressableSegment::reversed_
protected

Definition at line 32 of file light_partition.h.

◆ size_

int32_t esphome::partition::AddressableSegment::size_
protected

Definition at line 30 of file light_partition.h.

◆ src_

light::AddressableLight* esphome::partition::AddressableSegment::src_
protected

Definition at line 28 of file light_partition.h.

◆ src_offset_

int32_t esphome::partition::AddressableSegment::src_offset_
protected

Definition at line 29 of file light_partition.h.


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