|
RBE1001Lib
|
#include <IRdecoder.h>

Public Member Functions | |
| IRDecoder (uint8_t pin) | |
| void | init (void) |
| void | handleIRsensor (void) |
| uint32_t | getCode (void) |
| int16_t | getKeyCode (bool acceptRepeat=false) |
Private Types | |
| enum | IR_STATE { IR_READY, IR_PREAMBLE, IR_REPEAT, IR_ACTIVE, IR_COMPLETE, IR_ERROR } |
Private Attributes | |
| uint8_t | irPin |
| IR_STATE | state = IR_READY |
| volatile uint32_t | lastReceiveTime = 0 |
| volatile uint32_t | currCode = 0 |
| volatile uint8_t | index = 0 |
| volatile uint32_t | fallingEdge = 0 |
| volatile uint32_t | risingEdge = 0 |
| volatile uint32_t | lastRisingEdge = 0 |
Definition at line 28 of file IRdecoder.h.
|
private |
| Enumerator | |
|---|---|
| IR_READY | |
| IR_PREAMBLE | |
| IR_REPEAT | |
| IR_ACTIVE | |
| IR_COMPLETE | |
| IR_ERROR | |
Definition at line 31 of file IRdecoder.h.
|
inline |
Definition at line 56 of file IRdecoder.h.
References handleIRsensor(), and init().

|
inline |
Definition at line 60 of file IRdecoder.h.
References currCode, IR_COMPLETE, IR_READY, and IR_REPEAT.
|
inline |
Definition at line 71 of file IRdecoder.h.
References IR_COMPLETE, IR_READY, and IR_REPEAT.
| void IRDecoder::handleIRsensor | ( | void | ) |
Definition at line 16 of file IRdecoder.cpp.
References currCode, fallingEdge, index, IR_ACTIVE, IR_COMPLETE, IR_ERROR, IR_PREAMBLE, IR_REPEAT, irPin, lastReceiveTime, lastRisingEdge, risingEdge, and state.
Referenced by handleIRsensor(), init(), and IRDecoder().
| void IRDecoder::init | ( | void | ) |
Definition at line 10 of file IRdecoder.cpp.
References handleIRsensor(), and irPin.
Referenced by IRDecoder().

|
private |
Definition at line 47 of file IRdecoder.h.
Referenced by getCode(), and handleIRsensor().
|
private |
Definition at line 50 of file IRdecoder.h.
Referenced by handleIRsensor().
|
private |
Definition at line 48 of file IRdecoder.h.
Referenced by handleIRsensor().
|
private |
Definition at line 41 of file IRdecoder.h.
Referenced by handleIRsensor(), and init().
|
private |
Definition at line 45 of file IRdecoder.h.
Referenced by handleIRsensor().
|
private |
Definition at line 53 of file IRdecoder.h.
Referenced by handleIRsensor().
|
private |
Definition at line 51 of file IRdecoder.h.
Referenced by handleIRsensor().
Definition at line 43 of file IRdecoder.h.
Referenced by handleIRsensor().
1.8.13