|
rcbench
Servo and ESC test bench: panel, IOmcu and shared C
|
The sampling schedule of the sensor bus: its parts, windows and captures. More...
#include <sense_sched.h>
Data Fields | |
| sense_sched_io_t | io |
| sense_sched_cfg_t | cfg |
| sense_bus_t | bus |
| ina228_t | i228 |
| ina3221_t | i3221 [SENSE_I3221_PARTS] |
| ina228_setup_err_t | i228_setup |
| ina3221_setup_err_t | i3221_setup [SENSE_I3221_PARTS] |
| int32_t | ch_clip_ua [SENSE_CHANNELS] |
| int32_t | ch_top_ua [SENSE_CHANNELS] |
| int32_t | ch_bottom_ua [SENSE_CHANNELS] |
| uint8_t | others [SENSE_CHANNELS] |
| uint8_t | n_others |
| uint8_t | other_at |
| uint8_t | volt_at |
| uint32_t | ticks |
| uint32_t | gen |
| uint32_t | rot |
| bool | started |
| uint64_t | t0_ms |
| uint64_t | win |
| sense_acc_t | acc [SENSE_SRC_COUNT] |
| sense_window_t | last [SENSE_SRC_COUNT] |
| bool | have_last |
| uint8_t | last_online |
| sense_ring_win_t | ring [SENSE_WIN_RING] |
| uint64_t | ring_at |
| uint8_t | i228_resets |
| uint8_t | i3221_resets [SENSE_I3221_PARTS] |
| bool | have_vbus |
| int32_t | vbus_uv |
| bool | have_temp |
| bool | have_diag |
| uint8_t | have_flags |
| int32_t | temp_mdegc |
| uint16_t | diag |
| uint16_t | flags [SENSE_I3221_PARTS] |
| sense_run_t | run |
| sense_cap_t | cap |
| sense_enc_t | enc |
| sense_fast_t | hist [SENSE_FAST_HISTORY] |
| uint8_t | hist_n |
| uint8_t | hist_head |
The sampling schedule of the sensor bus: its parts, windows and captures.
| uint16_t sense_sched_t::diag |
INA228 DIAG_ALRT as last read
| uint16_t sense_sched_t::flags[SENSE_I3221_PARTS] |
each Mask/Enable as last read
| uint32_t sense_sched_t::gen |
which set-up this schedule is: 0 from sense_sched_init(), numbered by its caller (sense_svc counts them)
| uint8_t sense_sched_t::have_flags |
bit a: flags[a] holds a reading
| bool sense_sched_t::have_vbus |
vbus_uv is the last INA228 slot's voltage
| uint8_t sense_sched_t::i228_resets |
INA228 found reset, modulo 256
| ina228_setup_err_t sense_sched_t::i228_setup |
INA228_SETUP_OK when disabled
| uint8_t sense_sched_t::i3221_resets[SENSE_I3221_PARTS] |
each INA3221, mod 256
| ina3221_setup_err_t sense_sched_t::i3221_setup[SENSE_I3221_PARTS] |
OK when not fitted
| uint8_t sense_sched_t::last_online |
bit a: part a online as last[] closed
| uint32_t sense_sched_t::rot |
rotation items read
| uint64_t sense_sched_t::t0_ms |
the first tick
| int32_t sense_sched_t::temp_mdegc |
INA228 DIETEMP as last read
| uint8_t sense_sched_t::volt_at |
the channel whose voltage is next
| uint64_t sense_sched_t::win |
the window being filled, from t0_ms