This file defines some general data types that are used in the library.
uint16_t microseconds_t
Type for durations in micro seconds.
uint32_t frequency_t
Type for modulation frequency in Hz.
uint8_t pin_t
Type for GPIO pin, compatible with Arduino libs.
static Board * getInstance()
Abstract base class for all IR readers, capturing or receiving.
int16_t markExcess
Microseconds subtracted from pulses and added to gaps.
Abstract base class for demodulating IR receivers.
static constexpr bool invertingSensor
Are we using inverting sensor, like most TSOPs?
static constexpr microseconds_t defaultMarkExcess
virtual frequency_t getFrequency() const
Returns frequency of received signal.
virtual void receive()
Convenience function: enable, wait until data is collected or timeout has occured,...
irdata_t
Enum for the duration types.
@ IR_SPACE
off-period, also called gap
@ IR_MARK
on-period, also called flash
static constexpr pin_t defaultPin
static constexpr frequency_t defaultFrequency