|
Infrared4Arduino
|
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 boolean | isValid () const |
| Returns true if the decode was successful. More... | |
| boolean | 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 boolean | 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 const int | invalid = -1 |
A preliminary multi protocol decoder.
Tries the Nec1- and the Rc5 decoders.
Definition at line 10 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 15 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 39 of file MultiDecoder.h.
|
inlinevirtual |
Returns a textual description the decode for human consumption.
Implements IrDecoder.
Definition at line 42 of file MultiDecoder.h.
|
inline |
Definition at line 29 of file MultiDecoder.h.
1.8.10