ESPHome  2023.3.2
Public Member Functions | Protected Member Functions | Protected Attributes
esphome::remote_base::RemoteReceiveData Class Reference

#include <remote_base.h>

Public Member Functions

 RemoteReceiveData (std::vector< int32_t > *data, uint8_t tolerance)
 
bool peek_mark (uint32_t length, uint32_t offset=0)
 
bool peek_space (uint32_t length, uint32_t offset=0)
 
bool peek_space_at_least (uint32_t length, uint32_t offset=0)
 
bool peek_item (uint32_t mark, uint32_t space, uint32_t offset=0)
 
int32_t peek (uint32_t offset=0)
 
void advance (uint32_t amount=1)
 
bool expect_mark (uint32_t length)
 
bool expect_space (uint32_t length)
 
bool expect_item (uint32_t mark, uint32_t space)
 
bool expect_pulse_with_gap (uint32_t mark, uint32_t space)
 
uint32_t get_index ()
 
void reset ()
 
int32_t pos (uint32_t index) const
 
int32_t operator[] (uint32_t index) const
 
int32_t size () const
 
std::vector< int32_t > * get_raw_data ()
 

Protected Member Functions

int32_t lower_bound_ (uint32_t length)
 
int32_t upper_bound_ (uint32_t length)
 

Protected Attributes

uint32_t index_ {0}
 
std::vector< int32_t > * data_
 
uint8_t tolerance_
 

Detailed Description

Definition at line 58 of file remote_base.h.

Constructor & Destructor Documentation

◆ RemoteReceiveData()

esphome::remote_base::RemoteReceiveData::RemoteReceiveData ( std::vector< int32_t > *  data,
uint8_t  tolerance 
)
inline

Definition at line 60 of file remote_base.h.

Member Function Documentation

◆ advance()

void esphome::remote_base::RemoteReceiveData::advance ( uint32_t  amount = 1)
inline

Definition at line 94 of file remote_base.h.

◆ expect_item()

bool esphome::remote_base::RemoteReceiveData::expect_item ( uint32_t  mark,
uint32_t  space 
)
inline

Definition at line 112 of file remote_base.h.

◆ expect_mark()

bool esphome::remote_base::RemoteReceiveData::expect_mark ( uint32_t  length)
inline

Definition at line 96 of file remote_base.h.

◆ expect_pulse_with_gap()

bool esphome::remote_base::RemoteReceiveData::expect_pulse_with_gap ( uint32_t  mark,
uint32_t  space 
)
inline

Definition at line 120 of file remote_base.h.

◆ expect_space()

bool esphome::remote_base::RemoteReceiveData::expect_space ( uint32_t  length)
inline

Definition at line 104 of file remote_base.h.

◆ get_index()

uint32_t esphome::remote_base::RemoteReceiveData::get_index ( )
inline

Definition at line 128 of file remote_base.h.

◆ get_raw_data()

std::vector<int32_t>* esphome::remote_base::RemoteReceiveData::get_raw_data ( )
inline

Definition at line 138 of file remote_base.h.

◆ lower_bound_()

int32_t esphome::remote_base::RemoteReceiveData::lower_bound_ ( uint32_t  length)
inlineprotected

Definition at line 141 of file remote_base.h.

◆ operator[]()

int32_t esphome::remote_base::RemoteReceiveData::operator[] ( uint32_t  index) const
inline

Definition at line 134 of file remote_base.h.

◆ peek()

int32_t esphome::remote_base::RemoteReceiveData::peek ( uint32_t  offset = 0)
inline

Definition at line 92 of file remote_base.h.

◆ peek_item()

bool esphome::remote_base::RemoteReceiveData::peek_item ( uint32_t  mark,
uint32_t  space,
uint32_t  offset = 0 
)
inline

Definition at line 88 of file remote_base.h.

◆ peek_mark()

bool esphome::remote_base::RemoteReceiveData::peek_mark ( uint32_t  length,
uint32_t  offset = 0 
)
inline

Definition at line 62 of file remote_base.h.

◆ peek_space()

bool esphome::remote_base::RemoteReceiveData::peek_space ( uint32_t  length,
uint32_t  offset = 0 
)
inline

Definition at line 71 of file remote_base.h.

◆ peek_space_at_least()

bool esphome::remote_base::RemoteReceiveData::peek_space_at_least ( uint32_t  length,
uint32_t  offset = 0 
)
inline

Definition at line 80 of file remote_base.h.

◆ pos()

int32_t esphome::remote_base::RemoteReceiveData::pos ( uint32_t  index) const
inline

Definition at line 132 of file remote_base.h.

◆ reset()

void esphome::remote_base::RemoteReceiveData::reset ( )
inline

Definition at line 130 of file remote_base.h.

◆ size()

int32_t esphome::remote_base::RemoteReceiveData::size ( ) const
inline

Definition at line 136 of file remote_base.h.

◆ upper_bound_()

int32_t esphome::remote_base::RemoteReceiveData::upper_bound_ ( uint32_t  length)
inlineprotected

Definition at line 142 of file remote_base.h.

Field Documentation

◆ data_

std::vector<int32_t>* esphome::remote_base::RemoteReceiveData::data_
protected

Definition at line 145 of file remote_base.h.

◆ index_

uint32_t esphome::remote_base::RemoteReceiveData::index_ {0}
protected

Definition at line 144 of file remote_base.h.

◆ tolerance_

uint8_t esphome::remote_base::RemoteReceiveData::tolerance_
protected

Definition at line 146 of file remote_base.h.


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