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