|
rcbench
Servo and ESC test bench: panel, IOmcu and shared C
|
When a new build's first start is kept: see fw_trial.h. More...
Functions | |
| void | fw_trial_init (fw_trial_t *t, uint32_t start_ms) |
| Start a trial with no step seen. | |
| void | fw_trial_mark (fw_trial_t *t, uint32_t steps) |
| Record steps as seen. FW_TRIAL_TICK counts only once FW_TRIAL_FRAME is seen, before this call or in it; bits outside FW_TRIAL_ALL are ignored. | |
| void | fw_trial_settle (fw_trial_t *t) |
| Settle the trial outside this model, as the start without touch does; every later poll says FW_TRIAL_SETTLED. | |
| fw_trial_verdict_t | fw_trial_poll (fw_trial_t *t, uint32_t now_ms, bool quiet) |
Decide at now_ms. FW_TRIAL_KEEP and FW_TRIAL_KEEP_BOUND settle the trial: each is returned once. | |
| uint32_t | fw_trial_missing (const fw_trial_t *t) |
| The steps not seen yet. | |
When a new build's first start is kept: see fw_trial.h.
SPDX-License-Identifier: MIT
| void fw_trial_init | ( | fw_trial_t * | t, |
| uint32_t | start_ms ) |
Start a trial with no step seen.
| t | The trial. |
| start_ms | The millisecond count the bound counts from. |
| void fw_trial_mark | ( | fw_trial_t * | t, |
| uint32_t | steps ) |
Record steps as seen. FW_TRIAL_TICK counts only once FW_TRIAL_FRAME is seen, before this call or in it; bits outside FW_TRIAL_ALL are ignored.
| t | The trial. |
| steps | One or more FW_TRIAL_* steps. |
| uint32_t fw_trial_missing | ( | const fw_trial_t * | t | ) |
The steps not seen yet.
| t | The trial. |
| fw_trial_verdict_t fw_trial_poll | ( | fw_trial_t * | t, |
| uint32_t | now_ms, | ||
| bool | quiet ) |
Decide at now_ms. FW_TRIAL_KEEP and FW_TRIAL_KEEP_BOUND settle the trial: each is returned once.
| t | The trial. |
| now_ms | The millisecond count; it may wrap past 2^32. |
| quiet | Whether the bench can take a flash write now. |
| void fw_trial_settle | ( | fw_trial_t * | t | ) |
Settle the trial outside this model, as the start without touch does; every later poll says FW_TRIAL_SETTLED.
| t | The trial. |