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

Detector settings, as given to tone_init(). More...

#include <tone.h>

Data Fields

uint32_t tick_hz
uint32_t window_us
uint32_t f_min_hz
uint32_t f_max_hz
uint32_t carrier_min_hz
 Rise intervals up to this carrier's period are chopping inside a burst.
uint32_t glitch_ns
 A low shorter than this, ns, is no low; 1 to 10000.
uint32_t hold_ns
 The capture's hold-off (tone_holdoff_t), ns, 0 to TONE_HOLD_NS_MAX; 0 none.
uint32_t gap_us
 No edge for this long ends a beep, us, at most TONE_GAP_US_MAX; at least the period of f_min_hz, so a tone's own off time never does.
uint32_t split_pct
 TONE_BLOCK periods this far from the beep's mean, in percent, start a new beep; 0 splits only on silence; at most 100.
uint32_t min_periods
uint32_t window_min_periods

Detailed Description

Detector settings, as given to tone_init().

Field Documentation

◆ carrier_min_hz

uint32_t tone_cfg_t::carrier_min_hz

Rise intervals up to this carrier's period are chopping inside a burst.

Above f_max_hz.

◆ f_max_hz

uint32_t tone_cfg_t::f_max_hz

highest tone

◆ f_min_hz

uint32_t tone_cfg_t::f_min_hz

lowest tone, at least 50Hz

◆ hold_ns

uint32_t tone_cfg_t::hold_ns

The capture's hold-off (tone_holdoff_t), ns, 0 to TONE_HOLD_NS_MAX; 0 none.

A rise starts a burst only after a low of at least twice it.

◆ min_periods

uint32_t tone_cfg_t::min_periods

in-range periods a beep needs, >= 1

◆ tick_hz

uint32_t tone_cfg_t::tick_hz

the edge stamps' clock

◆ window_min_periods

uint32_t tone_cfg_t::window_min_periods

in-range periods a window needs to hold a tone, >= 1

◆ window_us

uint32_t tone_cfg_t::window_us

a window's length, 1000 to 100000us


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