Go to the documentation of this file.
11 #define SAMSUNG_BITS 32
12 #define SAMSUNG_HDR_MARK 5000
13 #define SAMSUNG_HDR_SPACE 5000
14 #define SAMSUNG_BIT_MARK 560
15 #define SAMSUNG_ONE_SPACE 1600
16 #define SAMSUNG_ZERO_SPACE 560
17 #define SAMSUNG_RPT_SPACE 2250
30 for (
unsigned long mask = 1UL << (nbits - 1); mask; mask >>= 1) {
85 data = (data << 1) | 1;
87 data = (data << 1) | 0;
96 results->
value = data;
#define SAMSUNG_RPT_SPACE
#define SAMSUNG_ZERO_SPACE
Results returned from the decoder.
int bits
Number of bits in decoded value.
volatile unsigned int * rawbuf
Raw intervals in 50uS ticks.
#define SAMSUNG_HDR_SPACE
void mark(unsigned int usec)
void enableIROut(int khz)
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)
#define REPEAT
Decoded value for NEC when a repeat code is received.
#define SAMSUNG_ONE_SPACE
unsigned long value
Decoded value [max 32-bits].
int MATCH_MARK(int measured_ticks, int desired_us)
void sendSAMSUNG(unsigned long data, int nbits)
unsigned int rawlen
counter of entries in rawbuf