|
rcbench
Servo and ESC test bench: panel, IOmcu and shared C
|
What is kept: the two pages that describe the outputs; the PD mini's wiring – SUPPLY's ENABLE to BAUD – so a module left on can be switched off after a restart before any panel has written the page; and the current monitors' set-up; and the phase tap's set-up; and where the programming ports are and how their pulse is shaped. More...
#include <out_store_rec.h>
Data Fields | |
| uint16_t | slots [LINK_OS_COUNT] |
| uint16_t | chan_cfg [LINK_CC_COUNT] |
| uint16_t | supply [LINK_SP_OUTPUT] |
| uint16_t | sense [LINK_SN_CONFIG_COUNT] |
| uint16_t | tone [LINK_TN_CONFIG_COUNT] |
| uint16_t | prog_func |
| Each port's function (protocol 4.26): bits 4n to 4n + 3 hold 1 + port n's FUNC, 0 none stored (prog_port_kept_func()). | |
| uint16_t | prog [LINK_PG_PORTS_MAX *4u] |
| uint16_t | sense_map [LINK_SM_KEPT] |
| uint16_t | sense_map_set |
| uint16_t | sense_limit [LINK_SM_CHANNELS] |
| uint16_t | spare8 |
What is kept: the two pages that describe the outputs; the PD mini's wiring – SUPPLY's ENABLE to BAUD – so a module left on can be switched off after a restart before any panel has written the page; and the current monitors' set-up; and the phase tap's set-up; and where the programming ports are and how their pulse is shaped.
The supply's command is not kept.
| uint16_t out_store_t::chan_cfg[LINK_CC_COUNT] |
the CHAN_CFG page (version 3)
| uint16_t out_store_t::prog[LINK_PG_PORTS_MAX *4u] |
| uint16_t out_store_t::prog_func |
Each port's function (protocol 4.26): bits 4n to 4n + 3 hold 1 + port n's FUNC, 0 none stored (prog_port_kept_func()).
0 in a record of version 6, of an image older than 4.26, or written by one. Makes the set a whole number of 32-bit words.
| uint16_t out_store_t::sense[LINK_SN_CONFIG_COUNT] |
SENSE 0 to 11 (version 5)
| uint16_t out_store_t::sense_limit[LINK_SM_CHANNELS] |
mA, 0 = none (4.27)
| uint16_t out_store_t::sense_map[LINK_SM_KEPT] |
| uint16_t out_store_t::sense_map_set |
1: the map is in force
| uint16_t out_store_t::slots[LINK_OS_COUNT] |
the OUTPUTS page (version 3)
| uint16_t out_store_t::spare8 |
0; a whole number of 32-bit words again
| uint16_t out_store_t::supply[LINK_SP_OUTPUT] |
SUPPLY ENABLE to BAUD, version 4
| uint16_t out_store_t::tone[LINK_TN_CONFIG_COUNT] |
TONE 0 to 6 (version 6)