4 #include "../../src/include/targets.h"
9 uint32_t intEventTime
= 0;
10 uint32_t extEventTime
= 0;
15 inline void extEvent(uint32_t time
) // reference (external osc)
21 inline void intEvent(uint32_t time
) // internal osc event
33 int32_t calcResult() const
35 // Assumes caller has verified hasResult()
36 return (int32_t)(extEventTime
- intEventTime
);
39 bool hasResult() const
41 return gotExtEvent
&& gotIntEvent
;
44 volatile uint32_t getIntEventTime() const { return intEventTime
; }
45 volatile uint32_t getExtEventTime() const { return extEventTime
; }