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

The TONE page state: the set-up, what core 1 last reported, and the beep ring of the capture. More...

#include <tone_page.h>

Data Fields

uint16_t cfg [LINK_TN_CONFIG_COUNT]
uint16_t evt_sel
uint16_t gen
uint16_t cap_gen
bool refused
bool no_capture
bool running
bool overrun
bool beep
bool tone
uint16_t window
uint16_t win_freq_dhz
uint16_t win_periods
uint32_t lost
uint32_t glitches
uint32_t seen_lost
uint32_t seen_glitches
tone_rec_t ring [LINK_TN_RING]
uint64_t n
uint64_t first
uint32_t ms_shift
bool broke
tone_t scratch

Detailed Description

The TONE page state: the set-up, what core 1 last reported, and the beep ring of the capture.

Field Documentation

◆ beep

bool tone_page_t::beep

core 1's last status: a run of bursts is under way

◆ broke

bool tone_page_t::broke

such a restart cut this capture: OVERRUN

◆ cap_gen

uint16_t tone_page_t::cap_gen

moves each time the capture starts again

◆ cfg

uint16_t tone_page_t::cfg[LINK_TN_CONFIG_COUNT]

registers 0 to 6

◆ evt_sel

uint16_t tone_page_t::evt_sel

register 13, not kept

◆ first

uint64_t tone_page_t::first

the first still valid, as a count

◆ gen

uint16_t tone_page_t::gen

moves with every change of the set-up

◆ glitches

uint32_t tone_page_t::glitches

counted across set-ups

◆ ms_shift

uint32_t tone_page_t::ms_shift

added to each start: a restart that kept the ring keeps the time base too

◆ n

uint64_t tone_page_t::n

beeps taken since boot; 64 bit: no wrap

◆ no_capture

bool tone_page_t::no_capture

no capture runs this boot: core 1 did not start (tone_page_no_capture())

◆ overrun

bool tone_page_t::overrun

core 1's last status: a lap or a FIFO overflow

◆ refused

bool tone_page_t::refused

enabled, and the pin could not be taken

◆ running

bool tone_page_t::running

core 1's last status: an order with run was taken

◆ scratch

tone_t tone_page_t::scratch

tone_init()'s verdict on a set-up

◆ seen_glitches

uint32_t tone_page_t::seen_glitches

the status's own, last

◆ tone

bool tone_page_t::tone

core 1's last status: the last window held a tone


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