Go to the documentation of this file.
13 #define MITSUBISHI_BITS 16
18 #define MITSUBISHI_HDR_SPACE 350 // 7*50+100
19 #define MITSUBISHI_ONE_MARK 1950 // 41*50-100
20 #define MITSUBISHI_ZERO_MARK 750 // 17*50-100
31 unsigned int offset = 0;
36 Serial.print(
"IR Gap: ");
37 Serial.println( results->
rawbuf[offset]);
38 Serial.println(
"test against:");
39 Serial.println(results->
rawbuf[offset]);
44 if (results->
rawbuf[offset] < MITSUBISHI_DOUBLE_SPACE_USECS) {
73 results->
bits = (offset - 1) / 2;
79 results->
value = data;
Results returned from the decoder.
int bits
Number of bits in decoded value.
volatile unsigned int * rawbuf
Raw intervals in 50uS ticks.
decode_type_t decode_type
UNKNOWN, NEC, SONY, RC5, ...
#define MITSUBISHI_ZERO_MARK
int MATCH_SPACE(int measured_ticks, int desired_us)
volatile irparams_t irparams
Allow all parts of the code access to the ISR data NB.
#define MITSUBISHI_ONE_MARK
Public API to the library.
#define REPEAT
Decoded value for NEC when a repeat code is received.
unsigned long value
Decoded value [max 32-bits].
int MATCH_MARK(int measured_ticks, int desired_us)
#define MITSUBISHI_HDR_SPACE
unsigned int rawlen
counter of entries in rawbuf