Go to the documentation of this file.
25 #define SHARP_ONE_SPACE 1805
28 #define SHARP_ADDR_BITS 5
29 #define SHARP_DATA_BITS 8
30 #define SHARP_BIT_MARK_SEND 250
31 #define SHARP_BIT_MARK_RECV 150
33 #define SHARP_ZERO_SPACE 795
34 #define SHARP_GAP 600000
35 #define SHARP_RPT_SPACE 3000
37 #define SHARP_TOGGLE_MASK 0x3FF
46 for (
int n = 0; n < 3; n++) {
47 for (
unsigned long mask = 1UL << (nbits - 1); mask; mask >>= 1) {
94 unsigned long addr = 0;
95 unsigned long data = 0;
96 unsigned long lastData = 0;
118 for (
int j = 0; j < loops; j++) {
156 if (lastData != 0 && data != lastData)
159 lastData = data ^ 0xFF;
164 results->
value = data;
Results returned from the decoder.
int bits
Number of bits in decoded value.
#define SHARP_BIT_MARK_SEND
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)
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 sendSharp(unsigned int address, unsigned int command)
void space(unsigned int usec)
unsigned long value
Decoded value [max 32-bits].
int MATCH_MARK(int measured_ticks, int desired_us)
#define SHARP_BIT_MARK_RECV
#define SHARP_TOGGLE_MASK
void sendSharpRaw(unsigned long data, int nbits)
unsigned int rawlen
counter of entries in rawbuf