24 static boolean getDuration(
microseconds_t duration,
unsigned int time) {
25 return duration <= time * timebaseUpper
26 && duration >= time * timebaseLower;
28 static int decodeParameter(
const IrReader &irCapturer,
unsigned int index);
uint16_t microseconds_t
Type for durations in micro seconds.
int getD() const
Returns the D parameter, or -1 if invalid.
int getS() const
Returns the S parameter, or -1 if invalid.
boolean isDitto() const
Returns true if the signal received is a NEC1 ditto, i,e.
const char * getDecode() const
Returns a textual description the decode for human consumption.
Abstract base class for all IR readers, capturing or receiving.
Abstract base class for all decoder classes.
int getF() const
Returns the F parameter, or -1 if invalid.
A decoder class for NEC1 signals.
static boolean tryDecode(const IrReader &irReader, Stream &stream)
Convenience function; constructs an Nec1Decoder and calls its printDecode.