Go to the documentation of this file.
104 #define SHUZU_BITS 32 // The number of bits in the command
106 #define SHUZU_HDR_MARK 1000 // The length of the Header:Mark
107 #define SHUZU_HDR_SPACE 2000 // The lenght of the Header:Space
109 #define SHUZU_BIT_MARK 3000 // The length of a Bit:Mark
110 #define SHUZU_ONE_SPACE 4000 // The length of a Bit:Space for 1's
111 #define SHUZU_ZERO_SPACE 5000 // The length of a Bit:Space for 0's
113 #define SHUZU_OTHER 1234 // Other things you may need to define
118 void IRsend::sendShuzu(
unsigned long data,
int nbits) {
127 for (
unsigned long mask = 1UL << (nbits - 1); mask; mask >>= 1) {
147 unsigned long data = 0;
177 data = (data << 1) | 1;
179 data = (data << 1) | 0;
188 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)
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