MCPcopy Create free account
hub / github.com/Arduino-IRremote/Arduino-IRremote / decodeWhynter

Method decodeWhynter

src/ir_Others.hpp:94–108  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

92}
93
94bool IRrecv::decodeWhynter() {
95 // Check we have the right amount of data (68). The +4 is for initial gap, start bit mark and space + stop bit mark.
96 if (decodedIRData.rawlen != (2 * WHYNTER_BITS) + 4) {
97 return false;
98 }
99 if (!checkHeader_P(&WhynterProtocolConstants)) {
100 return false;
101 }
102 decodePulseDistanceWidthData_P(&WhynterProtocolConstants, WHYNTER_BITS);
103
104 decodedIRData.flags = IRDATA_FLAGS_IS_MSB_FIRST;
105 decodedIRData.numberOfBits = WHYNTER_BITS;
106 decodedIRData.protocol = WHYNTER;
107 return true;
108}
109
110/**
111 * VELUX

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected