rcbench
Servo and ESC test bench: panel, IOmcu and shared C
Loading...
Searching...
No Matches
tone_svc_t Struct Reference

State of the tone service: the detector, the ring reader and the generations last seen. More...

#include <tone_svc.h>

Data Fields

tone_t det
tone_holdoff_t hold
edge_ring_t ring
uint16_t gen
uint16_t cap_gen
bool active
bool overrun
 Whether a lap or a FIFO overflow happened since the start.
uint8_t discard
 Passes still to discard after a FIFO overflow: the one that sees it and the next.
tone_edge_t batch [TONE_SVC_BATCH]
 One pass's words as edges.

Detailed Description

State of the tone service: the detector, the ring reader and the generations last seen.

Field Documentation

◆ active

bool tone_svc_t::active

whether the capture runs

◆ batch

tone_edge_t tone_svc_t::batch[TONE_SVC_BATCH]

One pass's words as edges.

Here, not on the stack: core 1's stack is small.

◆ cap_gen

uint16_t tone_svc_t::cap_gen

the capture generation last seen

◆ gen

uint16_t tone_svc_t::gen

the set-up generation last seen

◆ hold

tone_holdoff_t tone_svc_t::hold

only its horizon is used

◆ ring

edge_ring_t tone_svc_t::ring

the ring of edges


The documentation for this struct was generated from the following file: