* 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
| 225 | * If you read the first binary sequence backwards (right to left), you get the second sequence. |
| 226 | */ |
| 227 | void 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" |
nothing calls this directly
no outgoing calls
no test coverage detected