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

Function dumpNumberHex

src/ir_Pronto.hpp:218–225  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

216}
217
218static void dumpNumberHex(Print *aSerial, uint16_t number) {
219 // Loop through all 4 nibbles
220 for (uint16_t i = 0; i < digitsInProntoNumber; i++) {
221 uint16_t shifts = bitsInHexadecimal * (digitsInProntoNumber - 1 - i);
222 dumpDigitHex(aSerial, (number >> shifts) & hexMask);
223 }
224 aSerial->print(' ');
225}
226
227static void dumpDurationHex(Print *aSerial, uint32_t duration, uint16_t timebase) {
228 dumpNumberHex(aSerial, (duration + timebase / 2) / timebase);

Callers 3

dumpDurationHexFunction · 0.85

Calls 1

dumpDigitHexFunction · 0.85

Tested by

no test coverage detected