|
rcbench
Servo and ESC test bench: panel, IOmcu and shared C
|
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. | |
The debt.
Zeroed is nothing owed, no hold, no block, a pair of 0 and 0.
| atomic_uint endpoints_debt_t::edit_ms |
when the last edit was published
| 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.
| atomic_bool endpoints_debt_t::owed |
a pair is owed to the far end
| atomic_uint endpoints_debt_t::pair |
min << 16 | max, in us