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