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

Method getNumberOfUnitsInInterval

src/ir_RC5_RC6.hpp:283–285  ·  view source on GitHub ↗

* Margin is 1/2 of unit. */

Source from the content-addressed store, hash-verified

281 * Margin is 1/2 of unit.
282 */
283uint8_t IRrecv::getNumberOfUnitsInInterval(uint16_t aCurrentInterval, uint16_t aTimeUnit) {
284 return (aCurrentInterval + (aTimeUnit / 2)) / aTimeUnit;
285}
286
287/**
288 * Gets the level of one time interval (aBiphaseTimeUnit) at a time from the raw buffer.

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected