| 73 | } |
| 74 | |
| 75 | unsigned FluxmapReader::readInterval(nanoseconds_t clock) |
| 76 | { |
| 77 | unsigned thresholdTicks = |
| 78 | (clock * _config.pulse_debounce_threshold()) / NS_PER_TICK; |
| 79 | unsigned ticks = 0; |
| 80 | |
| 81 | while (ticks <= thresholdTicks) |
| 82 | { |
| 83 | unsigned thisTicks; |
| 84 | if (!findEvent(F_BIT_PULSE, thisTicks)) |
| 85 | break; |
| 86 | ticks += thisTicks; |
| 87 | } |
| 88 | return ticks; |
| 89 | } |
| 90 | |
| 91 | void FluxmapReader::seek(nanoseconds_t ns) |
| 92 | { |