Infrared4Arduino
MultiDecoder.h
Go to the documentation of this file.
1 #pragma once
2 
3 #include "IrReader.h"
4 #include "IrDecoder.h"
5 
9 class MultiDecoder : public IrDecoder {
10 public:
14  enum Type {
18  nec,
20  rc5
21  };
22 
23 private:
24  char decode[17];
25  Type type;
26 
27 public:
28  Type getType() const {
29  return type;
30  }
31 
36  MultiDecoder(const IrReader &irReader);
37 
38  virtual ~MultiDecoder() {
39  }
40 
41  const char *getDecode() const {
42  return decode;
43  }
44 };
MultiDecoder(const IrReader &irReader)
Constructs a MultiDecoder from an IrReader, containing data.
Definition: MultiDecoder.cpp:6
virtual ~MultiDecoder()
Definition: MultiDecoder.h:38
nothing sensible found
Definition: MultiDecoder.h:16
Type getType() const
Definition: MultiDecoder.h:28
Abstract base class for all IR readers, capturing or receiving.
Definition: IrReader.h:30
Abstract base class for all decoder classes.
Definition: IrDecoder.h:8
decoding failed
Definition: MultiDecoder.h:17
const char * getDecode() const
Returns a textual description the decode for human consumption.
Definition: MultiDecoder.h:41
RC5 signal (= repeat sequence)
Definition: MultiDecoder.h:20
NEC1 intro.
Definition: MultiDecoder.h:18
beginTimeout reached
Definition: MultiDecoder.h:15
Type
Enum over possible outcomes of the decoder.
Definition: MultiDecoder.h:14
A preliminary multi protocol decoder.
Definition: MultiDecoder.h:9