rcbench
Servo and ESC test bench: panel, IOmcu and shared C
Loading...
Searching...
No Matches
sense_snap_t Struct Reference

What core 1 hands back after each step. More...

#include <sense_svc.h>

Data Fields

uint16_t cfg_gen
uint16_t run_gen
uint16_t cap_gen
bool open
bool stuck
uint64_t held
uint16_t errors
uint16_t present
sense_state_t i228
sense_state_t i3221 [SENSE_I3221_PARTS]
uint16_t i228_maker
uint16_t i228_device
uint16_t i3221_maker [SENSE_I3221_PARTS]
uint16_t i3221_die [SENSE_I3221_PARTS]
uint8_t fast
bool have_temp
bool have_diag
int32_t temp_mdegc
uint16_t diag
bool have_win
sense_window_t win [SENSE_SRC_COUNT]
sense_ring_win_t ring [SENSE_WIN_RING]
 FAST's last windows, newest first: entry k is the window numbered k before the number of win[].
uint8_t i228_resets
uint8_t i3221_resets [SENSE_I3221_PARTS]
 Per INA3221: found reset under this set-up, modulo 256.
sense_run_t run
sense_cap_state_t cap_state
uint16_t cap_seq
uint32_t cap_move_t
uint32_t cap_arrive_t
int32_t cap_peak_ua
int32_t cap_mean_ua
uint32_t cap_samples
bool cap_clipped
sense_state_t enc
bool enc_have_angle
uint8_t enc_status
uint8_t enc_id
uint16_t enc_raw
uint16_t enc_samples
uint16_t enc_still_ms
bool enc_have_mag
uint8_t enc_agc
uint16_t enc_magnitude
uint16_t over_n [SENSE_CHANNELS]

Detailed Description

What core 1 hands back after each step.

Field Documentation

◆ cap_arrive_t

uint32_t sense_snap_t::cap_arrive_t

0.1ms

◆ cap_clipped

bool sense_snap_t::cap_clipped

a sample of it read an end of the range

◆ cap_gen

uint16_t sense_snap_t::cap_gen

the generations taken

◆ cap_mean_ua

int32_t sense_snap_t::cap_mean_ua

the capture's mean current, µA

◆ cap_move_t

uint32_t sense_snap_t::cap_move_t

0.1ms

◆ cap_peak_ua

int32_t sense_snap_t::cap_peak_ua

the capture's peak current, µA

◆ cap_samples

uint32_t sense_snap_t::cap_samples

the capture's samples

◆ cap_seq

uint16_t sense_snap_t::cap_seq

captures ended, modulo 65536

◆ cap_state

sense_cap_state_t sense_snap_t::cap_state

state of the capture of a FAST move

◆ diag

uint16_t sense_snap_t::diag

its DIAG_ALRT as last read

◆ enc_have_angle

bool sense_snap_t::enc_have_angle

enc_raw is a reading of this set-up

◆ enc_id

uint8_t sense_snap_t::enc_id

STATUS at the probe

◆ enc_raw

uint16_t sense_snap_t::enc_raw

RAW ANGLE, 0 to 4095

◆ enc_samples

uint16_t sense_snap_t::enc_samples

angle reads taken, modulo 65536

◆ enc_status

uint8_t sense_snap_t::enc_status

STATUS as last read

◆ enc_still_ms

uint16_t sense_snap_t::enc_still_ms

held within the tolerance, ms

◆ errors

uint16_t sense_snap_t::errors

transactions failed, modulo 65536

◆ fast

uint8_t sense_snap_t::fast

the FAST channel in force, or SENSE_FAST_NONE

◆ have_diag

bool sense_snap_t::have_diag

diag holds a reading

◆ have_temp

bool sense_snap_t::have_temp

temp_mdegc holds a reading

◆ have_win

bool sense_snap_t::have_win

a window has closed

◆ held

uint64_t sense_snap_t::held

the pins the bus holds, a pin mask

◆ i228

sense_state_t sense_snap_t::i228

the INA228's state

◆ i228_device

uint16_t sense_snap_t::i228_device

the INA228's last device ID read

◆ i228_maker

uint16_t sense_snap_t::i228_maker

the INA228's last maker ID read

◆ i228_resets

uint8_t sense_snap_t::i228_resets

found reset under this set-up, mod 256

◆ i3221

sense_state_t sense_snap_t::i3221[SENSE_I3221_PARTS]

UNSET when not fitted

◆ i3221_die

uint16_t sense_snap_t::i3221_die[SENSE_I3221_PARTS]

each INA3221's last die ID read

◆ i3221_maker

uint16_t sense_snap_t::i3221_maker[SENSE_I3221_PARTS]

each INA3221's last maker ID read

◆ open

bool sense_snap_t::open

the bus runs on its pins

◆ over_n

uint16_t sense_snap_t::over_n[SENSE_CHANNELS]

each channel's windows over its limit, modulo 65536, since core 1 started: across set-ups

◆ present

uint16_t sense_snap_t::present

bit n: 0x40 + n answered

◆ run

sense_run_t sense_snap_t::run

the run since arming

◆ stuck

bool sense_snap_t::stuck

nothing is sent until a recovery

◆ temp_mdegc

int32_t sense_snap_t::temp_mdegc

the INA228's die

◆ win

sense_window_t sense_snap_t::win[SENSE_SRC_COUNT]

the newest window of each source


The documentation for this struct was generated from the following file: