|
rcbench
Servo and ESC test bench: panel, IOmcu and shared C
|
What core 0 asks for. More...
#include <sense_svc.h>
Data Fields | |
| uint16_t | cfg_gen |
| uint8_t | sda |
| uint8_t | scl |
| sense_sched_cfg_t | parts |
| uint16_t | run_gen |
| uint16_t | cap_gen |
| bool | cap_on |
| sense_cap_arm_t | cap |
| bool | edge_set |
| uint64_t | edge_us |
| uint16_t | limit_ma [SENSE_CHANNELS] |
What core 0 asks for.
Each generation moves when what it covers changes; core 1 acts on a generation it has not seen.
| sense_cap_arm_t sense_cmd_t::cap |
the arm's levels
| uint16_t sense_cmd_t::cap_gen |
moves on each arm and each disarm
| bool sense_cmd_t::cap_on |
cap_gen is an arm; false a disarm
| uint16_t sense_cmd_t::cfg_gen |
the bus's pins and the parts
| bool sense_cmd_t::edge_set |
edge_us is cap_gen's PWM edge
| uint64_t sense_cmd_t::edge_us |
on the clock now_us() reads
| uint16_t sense_cmd_t::limit_ma[SENSE_CHANNELS] |
each channel's current limit in mA, 0 none (SENSE_LIMIT): taken from the next window that closes, with no new set-up
| sense_sched_cfg_t sense_cmd_t::parts |
neither enabled: the bus is closed
| uint16_t sense_cmd_t::run_gen |
moves on each edge into driving
| uint8_t sense_cmd_t::scl |
GPIO number of the clock line
| uint8_t sense_cmd_t::sda |
GPIO number of the data line