ESPHome  2021.11.3
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)
 
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 57 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 59 of file remote_base.h.

Member Function Documentation

◆ advance()

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

Definition at line 93 of file remote_base.h.

◆ expect_item()

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

Definition at line 111 of file remote_base.h.

◆ expect_mark()

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

Definition at line 95 of file remote_base.h.

◆ expect_space()

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

Definition at line 103 of file remote_base.h.

◆ get_raw_data()

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

Definition at line 127 of file remote_base.h.

◆ lower_bound_()

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

Definition at line 130 of file remote_base.h.

◆ operator[]()

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

Definition at line 123 of file remote_base.h.

◆ peek()

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

Definition at line 91 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 87 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 61 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 70 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 79 of file remote_base.h.

◆ pos()

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

Definition at line 121 of file remote_base.h.

◆ reset()

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

Definition at line 119 of file remote_base.h.

◆ size()

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

Definition at line 125 of file remote_base.h.

◆ upper_bound_()

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

Definition at line 131 of file remote_base.h.

Field Documentation

◆ data_

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

Definition at line 134 of file remote_base.h.

◆ index_

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

Definition at line 133 of file remote_base.h.

◆ tolerance_

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

Definition at line 135 of file remote_base.h.


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