Go to the documentation of this file.
107 #define SHUZU_ADDRESS_BITS 16 // 16 bit address
108 #define SHUZU_COMMAND_BITS 8 // Command
110 #define SHUZU_BITS (SHUZU_ADDRESS_BITS + SHUZU_COMMAND_BITS) // The number of bits in the protocol
111 #define SHUZU_UNIT 560 // All timings are in microseconds
113 #define SHUZU_HEADER_MARK (16 * SHUZU_UNIT) // The length of the Header:Mark
114 #define SHUZU_HEADER_SPACE (8 * SHUZU_UNIT) // The length of the Header:Space
116 #define SHUZU_BIT_MARK SHUZU_UNIT // The length of a Bit:Mark
117 #define SHUZU_ONE_SPACE (3 * SHUZU_UNIT) // The length of a Bit:Space for 1's
118 #define SHUZU_ZERO_SPACE SHUZU_UNIT // The length of a Bit:Space for 0's
120 #define SHUZU_REPEAT_HEADER_SPACE (4 * SHUZU_UNIT) // 2250
122 #define SHUZU_REPEAT_PERIOD 110000 // From start to start
123 #define SHUZU_REPEAT_SPACE 45000 // SHUZU_REPEAT_PERIOD - default frame duration. Used for repeat detection.
125 #define SHUZU_OTHER 1234 // Other things you may need to define
159 if (!decodePulseDistanceData_P(&ShuzuProtocolConstants,
SHUZU_BITS)) {
179 #endif // _IR_SHUZU_HPP
uint16_t address
Decoded address, Distance protocol (tMarkTicksLong (if tMarkTicksLong == 0, then tMarkTicksShort) << ...
#define SHUZU_REPEAT_SPACE
void sendShuzu(uint16_t aAddress, uint8_t aCommand, int_fast8_t aNumberOfRepeats)
struct PulseDistanceWidthProtocolConstants const ShuzuProtocolConstants PROGMEM
#define SHUZU_REPEAT_PERIOD
uint16_t numberOfBits
Number of bits received for data (address + command + parity) - to determine protocol length if diffe...
void int_fast8_t aNumberOfRepeats
#define MICROS_IN_ONE_MILLI
bool checkHeader_P(PulseDistanceWidthProtocolConstants const *aProtocolConstantsPGM)
void sendPulseDistanceWidth_P(PulseDistanceWidthProtocolConstants const *aProtocolConstantsPGM, IRDecodedRawDataType aData, uint_fast8_t aNumberOfBits, int_fast8_t aNumberOfRepeats)
IRRawlenType rawlen
counter of entries in rawbuf
#define PROTOCOL_IS_LSB_FIRST
#define SHUZU_HEADER_SPACE
uint16_t command
Decoded command, Distance protocol (tMarkTicksShort << 8) | tSpaceTicksShort.
IRDecodedRawDataType decodedRawData
Up to 32/64 bit decoded raw data, to be used for send<protocol>Raw functions.
#define SHUZU_ADDRESS_BITS
#define DEBUG_PRINTLN(...)
#define SHUZU_HEADER_MARK
decode_type_t protocol
UNKNOWN, NEC, SONY, RC5, PULSE_DISTANCE, ...