62 static boolean getDuration(
microseconds_t duration,
unsigned int time) {
63 return duration <= time * timebaseUpper
64 && duration >= time * timebaseLower;
A decoder class for RC5 signals.
uint16_t microseconds_t
Type for durations in micro seconds.
static const char * format
int getT() const
Returns the T parameter, or -1 if invalid.
int getF() const
Returns the F parameter, or -1 if invalid.
Rc5Decoder(const IrReader &irReader)
Constructs a Rc5Decoder from an IrReader, containing data.
Abstract base class for all IR readers, capturing or receiving.
Abstract base class for all decoder classes.
int getD() const
Returns the D parameter, or -1 if invalid.
const char * getDecode() const
Returns a textual description the decode for human consumption.
static boolean tryDecode(const IrReader &irReader, Stream &stream)
Convenience function; constructs an Rc5Decoder and calls its printDecode.