Go to the documentation of this file.
11 #define WHYNTER_BITS 32
12 #define WHYNTER_HDR_MARK 2850
13 #define WHYNTER_HDR_SPACE 2850
14 #define WHYNTER_BIT_MARK 750
15 #define WHYNTER_ONE_MARK 750
16 #define WHYNTER_ONE_SPACE 2150
17 #define WHYNTER_ZERO_MARK 750
18 #define WHYNTER_ZERO_SPACE 750
35 for (
unsigned long mask = 1UL << (nbits - 1); mask; mask >>= 1) {
92 data = (data << 1) | 1;
94 data = (data << 1) | 0;
108 results->
value = data;
#define WHYNTER_HDR_SPACE
Results returned from the decoder.
int bits
Number of bits in decoded value.
volatile unsigned int * rawbuf
Raw intervals in 50uS ticks.
void mark(unsigned int usec)
void enableIROut(int khz)
decode_type_t decode_type
UNKNOWN, NEC, SONY, RC5, ...
#define WHYNTER_ONE_SPACE
int MATCH_SPACE(int measured_ticks, int desired_us)
#define WHYNTER_ZERO_MARK
volatile irparams_t irparams
Allow all parts of the code access to the ISR data NB.
Public API to the library.
void space(unsigned int usec)
void sendWhynter(unsigned long data, int nbits)
#define WHYNTER_ZERO_SPACE
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