46 return irSequence[index];
uint16_t microseconds_t
Type for durations in micro seconds.
uint32_t frequency_t
Type for modulation frequency in Hz.
Abstract base class for all IR readers, capturing or receiving.
This class packs an IrSequence into a dummy, immutable IrReader.
microseconds_t getDuration(unsigned int index) const
Returns the index-th duration, if possible.
IrSequenceReader(const IrSequence &irSequence_)
virtual frequency_t getFrequency() const
Returns frequency of received signal.
virtual ~IrSequenceReader()
bool isReady() const
Returns true if there is collected data.
IrSequenceReader(IrSequenceReader &&orig)
size_t getDataLength() const
Returns the number of collected durations.
void receive()
Convenience function: enable, wait until data is collected or timeout has occured,...
IrSequenceReader(const IrSequenceReader &orig)
This class consists of a vector of durations.
size_t getLength() const
Returns the number of durations.
static constexpr frequency_t defaultFrequency