4#ifdef USE_REMOTE_RECEIVER_TIMER_SAMPLING
62 if (this->
ready !=
nullptr) {
100 const auto run_us =
static_cast<int32_t
>(this->
run_ticks / TIMER_TICKS_PER_US);
102 this->count =
count + 1;
const int32_t *volatile ready
Finished frame for the loop, nullptr once the loop has dispatched it.
bool sample(bool level, uint32_t elapsed)
Takes one sample: the logical pin level (true for a mark) and the ticks since the previous sample.
void finish_run(bool level, uint32_t ticks)
volatile bool busy
A finished frame was dropped because the loop was still dispatching the other half.
volatile uint16_t ready_count
bool frame_overflow
The frame being captured did not fit in its half.
bool end_frame(bool level)
uint16_t frame_entries
Entries per frame half; buffer_size is capped at 65535 bytes, so at most 8191.