Go to the documentation of this file.
15 #define SANYO_HDR_MARK 3500 // seen range 3500
16 #define SANYO_HDR_SPACE 950 // seen 950
17 #define SANYO_ONE_MARK 2400 // seen 2400
18 #define SANYO_ZERO_MARK 700 // seen 700
19 #define SANYO_DOUBLE_SPACE_USECS 800 // usually see 713 - not using ticks as get number wrap around
20 #define SANYO_RPT_LENGTH 45000
26 unsigned int offset = 0;
34 Serial.print(
"IR Gap: ");
36 Serial.println(
"test against:");
69 data = (data << 1) | 1;
71 data = (data << 1) | 0;
79 results->
bits = (offset - 1) / 2;
80 if (results->
bits < 12) {
85 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, ...
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 SANYO_DOUBLE_SPACE_USECS
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)
unsigned int rawlen
counter of entries in rawbuf