20 virtual const char *
getDecode()
const = 0;
42 const static uint32_t endingMin = 20000U;
57 return duration > endingMin;
uint16_t microseconds_t
Type for durations in micro seconds.
virtual bool isValid() const
Returns true if the decode was successful.
void setValid(bool valid_)
Abstract base class for all decoder classes.
virtual const char * getDecode() const =0
Returns a textual description the decode for human consumption.
static bool isEnding(microseconds_t duration)
Tests if the argument is large enough to be considered an ending of a decodable signal.
This file defines some general data types that are used in the library.
bool printDecode(Stream &stream) const
If valid, prints the decode to the stream.