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

The debt. More...

#include <endpoints_link.h>

Data Fields

atomic_uint pair
atomic_uint edit_ms
atomic_bool owed
bool hold
 Control task only: raised at a link-up edge, the far end is held disarmed until the debt is paid.
uint8_t refused
 Control task only: what the last answered payment left, an endpoints_block_t in one byte.

Detailed Description

The debt.

Zeroed is nothing owed, no hold, no block, a pair of 0 and 0.

Field Documentation

◆ edit_ms

atomic_uint endpoints_debt_t::edit_ms

when the last edit was published

◆ hold

bool endpoints_debt_t::hold

Control task only: raised at a link-up edge, the far end is held disarmed until the debt is paid.

Ends with every outcome but a missing answer, and when nothing is owed.

◆ owed

atomic_bool endpoints_debt_t::owed

a pair is owed to the far end

◆ pair

atomic_uint endpoints_debt_t::pair

min << 16 | max, in us


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