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

Method sendSamsung16BitAddressAndCommand

src/ir_Samsung.hpp:220–229  ·  view source on GitHub ↗

* Maybe no one needs it in the wild... * As above, but we are able to send e.g. 0x0042 as 16 bit address, which is otherwise interpreted as 8 bit address * @param aNumberOfRepeats If < 0 then only a special repeat frame will be sent */

Source from the content-addressed store, hash-verified

218 * @param aNumberOfRepeats If < 0 then only a special repeat frame will be sent
219 */
220void IRsend::sendSamsung16BitAddressAndCommand(uint16_t aAddress, uint16_t aCommand, int_fast8_t aNumberOfRepeats) {
221
222 LongUnion tSendValue;
223 // send 16 bit address
224 tSendValue.UWords[0] = aAddress;
225 // Send 16 command bits
226 tSendValue.UWords[1] = aCommand;
227
228 sendPulseDistanceWidth_P(&SamsungProtocolConstants, tSendValue.ULong, SAMSUNG_BITS, aNumberOfRepeats);
229}
230/**
231 * Here we send Samsung48
232 * We send 2 x (8 bit command and then ~command)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected