Go to the documentation of this file.
20 if (decodeNEC(results)) {
27 if (decodeSharp(results)) {
34 if (decodeSharpAlt(results)) {
41 if (decodeSony(results)) {
48 if (decodeSanyo(results)) {
55 if (decodeMitsubishi(results)) {
62 if (decodeRC5(results)) {
69 if (decodeRC6(results)) {
76 if (decodePanasonic(results)) {
83 if (decodeLG(results)) {
90 if (decodeJVC(results)) {
97 if (decodeSAMSUNG(results)) {
104 if (decodeWhynter(results)) {
109 #if DECODE_AIWA_RC_T501
111 if (decodeAiwaRCT501(results)) {
118 if (decodeDenon(results)) {
125 if (decodeLegoPowerFunctions(results)) {
return true ;}
133 if (decodeHash(results)) {
152 pinMode(blinkpin, OUTPUT);
159 #ifdef USE_DEFAULT_ENABLE_IR_IN
167 TIMER_CONFIG_NORMAL();
192 #endif // USE_DEFAULT_ENABLE_IR_IN
238 int IRrecv::compare(
unsigned int oldval,
unsigned int newval) {
240 if (newval * 10 < oldval * 8)
return 0 ;
241 else if (oldval * 10 < newval * 8)
return 2 ;
250 #define FNV_PRIME_32 16777619
251 #define FNV_BASIS_32 2166136261
257 if (results->
rawlen < 6) {
261 for (
unsigned int i = 1; (i + 2) < results->
rawlen; i++) {
262 int value = compare(results->
rawbuf[i], results->
rawbuf[i + 2]);
267 results->
value = hash;
273 #endif // defined(DECODE_HASH)
uint8_t overflow
Raw buffer overflow occurred.
void resume()
Called to re-enable IR reception.
void disableIRIn()
Disable IR reception.
void enableIRIn()
Enable IR reception.
Results returned from the decoder.
int bits
Number of bits in decoded value.
#define DBG_PRINTLN(...)
If DEBUG, print the arguments as a line, otherwise do nothing.
uint8_t recvpin
Pin connected to IR data from detector.
volatile unsigned int * rawbuf
Raw intervals in 50uS ticks.
decode_type_t decode_type
UNKNOWN, NEC, SONY, RC5, ...
uint8_t rcvstate
State Machine state.
volatile irparams_t irparams
Allow all parts of the code access to the ISR data NB.
int decode(decode_results *results)
Attempt to decode the recently receive IR signal.
#define IR_REC_STATE_STOP
Public API to the library.
IRrecv(int recvpin)
Instantiate the IRrecv class.
unsigned long value
Decoded value [max 32-bits].
void blink13(int blinkflag)
TODO: Why is this public???
int overflow
true if IR raw code too long
unsigned int rawbuf[RAW_BUFFER_LENGTH]
raw data
#define BLINKLED
If defined, denotes pin number of LED that should be blinked during IR reception.
uint8_t blinkflag
true -> enable blinking of pin on IR processing
unsigned int rawlen
Number of records in rawbuf.
unsigned int rawlen
counter of entries in rawbuf
#define IR_REC_STATE_IDLE
bool isIdle()
Returns status of reception.