Go to the documentation of this file.
19 #define SHARP_ALT_RAWLEN 32
20 #define SHARP_ALT_ADDRESS_BITS 5
21 #define SHARP_ALT_COMMAND_BITS 8
22 #define SHARP_ALT_BIT_MARK 150
23 #define SHARP_ALT_SEND_BIT_MARK 300
24 #define SHARP_ALT_ONE_SPACE 1750
25 #define SHARP_ALT_ZERO_SPACE 700
26 #define SHARP_ALT_RPT_SPACE 50000
27 #define SHARP_ALT_SEND_RPT_SPACE 44000
28 #define SHARP_ALT_TOGGLE_MASK 0x3FF
29 #define SHARP_ALT_SEND_INVERT_MASK 0x7FE0
36 for (
int n = 0; n < 3; n++) {
37 unsigned long mask = B1;
38 for (
int i = 0; i < nbits; i++) {
55 unsigned long data = 1;
82 static boolean is_first_repeat =
true;
85 if (!is_first_repeat) {
95 is_first_repeat =
false;
106 bits = (bits << 1) | 1;
108 bits = (bits << 1) | 0;
118 is_first_repeat =
true;
#define SHARP_ALT_ZERO_SPACE
#define SHARP_ALT_ONE_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)
#define SHARP_ALT_BIT_MARK
decode_type_t decode_type
UNKNOWN, NEC, SONY, RC5, ...
int MATCH_SPACE(int measured_ticks, int desired_us)
void sendSharpAlt(unsigned int address, unsigned long command)
volatile irparams_t irparams
Allow all parts of the code access to the ISR data NB.
#define SHARP_ALT_SEND_RPT_SPACE
#define SHARP_ALT_SEND_INVERT_MASK
#define SHARP_ALT_ADDRESS_BITS
Public API to the library.
void space(unsigned int usec)
#define REPEAT
Decoded value for NEC when a repeat code is received.
unsigned long value
Decoded value [max 32-bits].
int MATCH_MARK(int measured_ticks, int desired_us)
#define SHARP_ALT_SEND_BIT_MARK
#define SHARP_ALT_COMMAND_BITS
void sendSharpAltRaw(unsigned long data, int nbits)
#define SHARP_ALT_RPT_SPACE
unsigned int rawlen
counter of entries in rawbuf