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

Whether an arm stands until the render loop has seen it. More...

#include <touch_loss.h>

Data Fields

bool on
uint32_t loss_gen
uint32_t drv_gaps
uint32_t arm_gen

Detailed Description

Whether an arm stands until the render loop has seen it.

Two loss counts are compared, because the two queues are watched by two tasks: loss_gen is how many times the render loop has dropped the screens' gestures for a loss, and drv_gaps is how many gaps the control task has found in the driver's stream. The first is stamped on the arm when the render loop posts it; the second is read when the control task takes it, after draining the driver's queue, so a driver loss the render loop has not been told about yet is still caught here.

Field Documentation

◆ arm_gen

uint32_t arm_watch_t::arm_gen

which arm this is, as the snapshot carries it

◆ drv_gaps

uint32_t arm_watch_t::drv_gaps

the control task's count when it took the arm

◆ loss_gen

uint32_t arm_watch_t::loss_gen

the render loop's count the arm was posted under


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