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

Method sendJVCMSB

src/ir_JVC.hpp:227–239  ·  view source on GitHub ↗

* With Send sendJVCMSB() you can send your old 32 bit codes. * To convert one into the other, you must reverse the byte positions and then reverse all bit positions of each byte. * Use bitreverse32Bit(). * Or write it as one binary string and reverse/mirror it. * Example: * 0xCB340102 byte reverse -> 02 01 34 CB bit reverse-> 40 80 2C D3. * 0xCB340102 is binary 110010110011010000000001000000

Source from the content-addressed store, hash-verified

225 * If you read the first binary sequence backwards (right to left), you get the second sequence.
226 */
227void IRsend::sendJVCMSB(unsigned long data, int nbits, bool repeat) {
228 // Set IR carrier frequency
229 enableIROut (JVC_KHZ);
230
231 // Only send the Header if this is NOT a repeat command
232 if (!repeat) {
233 mark(JVC_HEADER_MARK);
234 space(JVC_HEADER_SPACE);
235 }
236
237 // Old version with MSB first Data
238 sendPulseDistanceWidthData(JVC_BIT_MARK, JVC_ONE_SPACE, JVC_BIT_MARK, JVC_ZERO_SPACE, data, nbits, PROTOCOL_IS_MSB_FIRST);
239}
240
241/** @}*/
242#include "LocalDebugLevelEnd.h"

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected