Infrared4Arduino 1.2.3
|
A preliminary multi protocol decoder. More...
#include <MultiDecoder.h>
Public Types | |
enum | Type { timeout , noise , undecoded , nec , nec_ditto , rc5 } |
Enum over possible outcomes of the decoder. More... | |
Public Member Functions | |
Type | getType () const |
MultiDecoder (const IrReader &irReader) | |
Constructs a MultiDecoder from an IrReader, containing data. More... | |
virtual | ~MultiDecoder () |
const char * | getDecode () const |
Returns a textual description the decode for human consumption. More... | |
Public Member Functions inherited from IrDecoder | |
IrDecoder () | |
virtual | ~IrDecoder () |
virtual const char * | getDecode () const =0 |
Returns a textual description the decode for human consumption. More... | |
virtual bool | isValid () const |
Returns true if the decode was successful. More... | |
operator bool () const | |
Same as isValid(). More... | |
bool | printDecode (Stream &stream) const |
If valid, prints the decode to the stream. More... | |
Additional Inherited Members | |
Protected Member Functions inherited from IrDecoder | |
void | setValid (bool valid_) |
Static Protected Member Functions inherited from IrDecoder | |
static bool | isEnding (microseconds_t duration) |
Tests if the argument is large enough to be considered an ending of a decodable signal. More... | |
Static Protected Attributes inherited from IrDecoder | |
static constexpr int | invalid = -1 |
A preliminary multi protocol decoder.
Tries the Nec1- and the Rc5 decoders.
Definition at line 9 of file MultiDecoder.h.
enum MultiDecoder::Type |
Enum over possible outcomes of the decoder.
Enumerator | |
---|---|
timeout | beginTimeout reached |
noise | nothing sensible found |
undecoded | decoding failed |
nec | NEC1 intro. |
nec_ditto | NEC1 repeat. |
rc5 | RC5 signal (= repeat sequence) |
Definition at line 14 of file MultiDecoder.h.
MultiDecoder::MultiDecoder | ( | const IrReader & | irReader | ) |
Constructs a MultiDecoder from an IrReader, containing data.
irReader | IrReader with data, i.e. with isReady() true. |
Definition at line 6 of file MultiDecoder.cpp.
|
inlinevirtual |
Definition at line 46 of file MultiDecoder.h.
|
inlinevirtual |
Returns a textual description the decode for human consumption.
Implements IrDecoder.
Definition at line 49 of file MultiDecoder.h.
|
inline |
Definition at line 28 of file MultiDecoder.h.