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

Detector state. The fields belong to tone.c. More...

#include <tone.h>

Data Fields

tone_cfg_t c
uint64_t win_ticks
uint64_t per_min
uint64_t per_max
uint64_t car_max
uint64_t glitch
uint64_t gap
uint64_t start_low
uint64_t spacing
 The shortest time between two burst starts that makes a counted period, ticks: the most of half the shortest period in range, the glitch and start_low.
bool seen
uint64_t now
bool have_edge
uint64_t last_edge
bool high
uint64_t last_rise
uint64_t last_fall
bool in_run
uint64_t car_low
uint64_t car_high
uint64_t car_rise
bool rise_started
uint64_t burst_start
uint64_t burst_e_before
uint64_t b_start
uint64_t b_sum
uint32_t b_n
uint32_t b_bursts
uint8_t b_flags
tone_pend_t pend [TONE_BLOCK]
uint32_t n_pend
uint64_t w_index
uint64_t w_end
uint64_t w_sum
uint32_t w_n
uint32_t w_bursts
bool have_window
tone_window_t window
tone_beep_t q [TONE_BEEP_QUEUE]
uint32_t q_head
uint32_t q_len
tone_stats_t st

Detailed Description

Detector state. The fields belong to tone.c.

Field Documentation

◆ car_high

uint64_t tone_t::car_high

longest carrier-rate high

◆ car_low

uint64_t tone_t::car_low

shortest carrier-rate low; 0 none

◆ car_rise

uint64_t tone_t::car_rise

shortest rise interval inside a burst, not its first; 0 none

◆ have_edge

bool tone_t::have_edge

whether an edge was given

◆ high

bool tone_t::high

the line's level after the last edge

◆ last_edge

uint64_t tone_t::last_edge

the latest edge's time

◆ last_fall

uint64_t tone_t::last_fall

time of the last falling edge

◆ last_rise

uint64_t tone_t::last_rise

time of the last rising edge

◆ now

uint64_t tone_t::now

the latest time given

◆ rise_started

bool tone_t::rise_started

the last rise started a burst

◆ seen

bool tone_t::seen

any time given yet

◆ start_low

uint64_t tone_t::start_low

twice the hold-off, ticks


The documentation for this struct was generated from the following file:
  • protocols/phase_tap/include/tone.h