2#ifndef DRIVER_INTERRUPT_PROBE_H
3#define DRIVER_INTERRUPT_PROBE_H
5namespace InterruptProbe {
6template <
typename Command,
typename Counter>
7bool run(Command command, Counter interruptCompletions) {
8 const auto before = interruptCompletions();
9 const bool completed = command();
11 return completed && interruptCompletions() != before;