Go to the documentation of this file.
11 #define PANASONIC_BITS 48
12 #define PANASONIC_HDR_MARK 3502
13 #define PANASONIC_HDR_SPACE 1750
14 #define PANASONIC_BIT_MARK 502
15 #define PANASONIC_ONE_SPACE 1244
16 #define PANASONIC_ZERO_SPACE 400
29 for (
unsigned long mask = 1UL << (16 - 1); mask; mask >>= 1) {
38 for (
unsigned long mask = 1UL << (32 - 1); mask; mask >>= 1) {
55 unsigned long long data = 0;
75 data = (data << 1) | 1;
77 data = (data << 1) | 0;
84 results->
value = (
unsigned long) data;
85 results->
address = (
unsigned int) (data >> 32);
#define PANASONIC_HDR_SPACE
Results returned from the decoder.
int bits
Number of bits in decoded value.
unsigned int address
Used by Panasonic & Sharp [16-bits].
volatile unsigned int * rawbuf
Raw intervals in 50uS ticks.
void mark(unsigned int usec)
void enableIROut(int khz)
void sendPanasonic(unsigned int address, unsigned long data)
decode_type_t decode_type
UNKNOWN, NEC, SONY, RC5, ...
int MATCH_SPACE(int measured_ticks, int desired_us)
#define PANASONIC_ONE_SPACE
#define PANASONIC_HDR_MARK
Public API to the library.
#define PANASONIC_ZERO_SPACE
void space(unsigned int usec)
#define PANASONIC_BIT_MARK
unsigned long value
Decoded value [max 32-bits].
int MATCH_MARK(int measured_ticks, int desired_us)