|
Arduino PulseWire Transceiver Library
|
ProtocolDetector: Uses interrupt edge logic to detect IR protocol by testing all known preambles. More...
#include <IRProtocolDetector.h>

Public Member Functions | |
| bool | begin (uint8_t pin) |
| Starts protocol detection by attaching an interrupt to the specified pin. | |
| void | end () |
| Stops protocol detection by detaching the interrupt. | |
| IRProtocolEnum | getDetectedProtocol () const |
| const char * | getDetectedProtocolStr () const |
| void | reset () |
Protected Member Functions | |
| void | handleInterrupt () |
Static Protected Member Functions | |
| static void | interruptHandler () |
| static void | onProtocolDetected (IRProtocolEnum proto, IRProtocol &info, void *ref) |
Protected Attributes | |
| uint8_t | _pin = -1 |
| IRMultiProtocol | _multiProtocol |
| volatile IRProtocolEnum | _detectedProtocol = IRProtocolEnum::Unknown |
| volatile uint32_t | _lastEdge = 0 |
Static Protected Attributes | |
| static IRProtocolDetector * | _instance = nullptr |
ProtocolDetector: Uses interrupt edge logic to detect IR protocol by testing all known preambles.
This class listens for IR edges and feeds them to all known preamble detectors. When a preamble is detected, it returns the protocol as an enum.
Definition at line 15 of file IRProtocolDetector.h.
|
inline |
Definition at line 17 of file IRProtocolDetector.h.
Starts protocol detection by attaching an interrupt to the specified pin.
Definition at line 24 of file IRProtocolDetector.h.
|
inline |
Stops protocol detection by detaching the interrupt.
Definition at line 33 of file IRProtocolDetector.h.
|
inline |
Definition at line 38 of file IRProtocolDetector.h.
Definition at line 40 of file IRProtocolDetector.h.
|
inlineprotected |
Definition at line 62 of file IRProtocolDetector.h.
Definition at line 51 of file IRProtocolDetector.h.
|
inlinestaticprotected |
Definition at line 55 of file IRProtocolDetector.h.
|
inline |
Definition at line 42 of file IRProtocolDetector.h.
|
protected |
Definition at line 48 of file IRProtocolDetector.h.
|
staticprotected |
Definition at line 45 of file IRProtocolDetector.h.
Definition at line 49 of file IRProtocolDetector.h.
|
protected |
Definition at line 47 of file IRProtocolDetector.h.
|
protected |
Definition at line 46 of file IRProtocolDetector.h.