Go to the documentation of this file.
21 #define BITS 14 // The number of bits in the command
23 #define HDR_MARK 300 // The length of the Header:Mark
24 #define HDR_SPACE 750 // The lenght of the Header:Space
26 #define BIT_MARK 300 // The length of a Bit:Mark
27 #define ONE_SPACE 1800 // The length of a Bit:Space for 1's
28 #define ZERO_SPACE 750 // The length of a Bit:Space for 0's
42 for (
unsigned long mask = 1UL << (nbits - 1); mask; mask >>= 1) {
62 unsigned long data = 0;
82 for (
int i = 0; i <
BITS; i++) {
92 data = (data << 1) | 1;
94 data = (data << 1) | 0;
103 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.
void mark(unsigned int usec)
void enableIROut(int khz)
void sendDenon(unsigned long data, int nbits)
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.
Public API to the library.
void space(unsigned int usec)
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