23 static bool getDuration(
microseconds_t duration,
unsigned int time) {
24 return duration <= time * timebaseUpper
25 && duration >= time * timebaseLower;
27 static int decodeParameter(
const IrReader &irCapturer,
unsigned int index);
29 static constexpr const char *nec1DittoLiteral =
"NEC1 ditto";
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 NEC1 signals.
static bool tryDecode(const IrReader &irReader, Stream &stream)
Convenience function; constructs an Nec1Decoder and calls its printDecode.
int getF() const
Returns the F parameter, or -1 if invalid.
int getD() const
Returns the D parameter, or -1 if invalid.
bool 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.
int getS() const
Returns the S parameter, or -1 if invalid.