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

The panel's state of the SENSE link page. More...

#include <sense_link.h>

Data Fields

bool up
bool page
bool enc_page
bool win_page
bool map
 The INA3221 parts go by SENSE_MAP (4.25, sense_map_link.h): SENSE's ENABLE bit 1 and registers 8 to 11 mirror the map and are never written.
bool map_held
 With the map in force: SENSE_MAP holds the map asked, so FAST and its shunt are the ones SETUP names (sense_link_set_map_held()).
bool want_set
bool want_i228
bool want_i3221
bool want_enc
int8_t want_sda
int8_t want_scl
uint8_t want_parts
bool want_unwatched
bool want_off_ch1
uint16_t want [LINK_SN_CONFIG_COUNT]
uint32_t want_ms
bool known
uint16_t held [LINK_SN_CONFIG_COUNT]
uint32_t setup_ms
bool refused_bus
bool refused_i228
bool refused_i3221
bool bus_told
bool bus_retry
uint32_t bus_refused_ms
bool caps_owed
sense_link_op_kind_t pending
uint16_t out [4]
bool asked_status
bool asked_servo
uint32_t status_asked_ms
uint32_t servo_asked_ms
bool have_status
bool have_servo
uint16_t status [SENSE_LINK_STATUS_COUNT]
uint16_t servo [SENSE_LINK_SERVO_COUNT]
uint32_t status_ms
uint32_t status_reads
bool window_taken
uint16_t window_last
bool asked_win
uint32_t win_asked_ms
bool win_all
bool win_synced
bool win_restart
uint16_t win_next
uint32_t win_sync_ms
uint32_t win_lost
bool win_have
bool win_valid
uint16_t win_newest
uint32_t win_moved_ms
bool win_stands
uint8_t winq_n
sense_link_win_t winq [LINK_SW_RING]
uint16_t setups
bool caps_new
uint16_t caps
uint16_t was_flags
uint16_t was_clipped
bool silent_told [2]
bool online_seen [2]
bool enc_silent_told
bool enc_online_seen
bool enc_magnet_told
uint16_t enc_magnet
uint16_t was_faults
uint8_t clipped_ch
uint8_t clip_pending
uint16_t ev_id [2]
uint8_t ev_found [2]
uint32_t events
bool event_given
uint32_t event_ms

Detailed Description

The panel's state of the SENSE link page.

Field Documentation

◆ bus_retry

bool sense_link_t::bus_retry

the refused pair may be let go of

◆ bus_told

bool sense_link_t::bus_told

the bus refusal said for this edit

◆ caps_owed

bool sense_link_t::caps_owed

a write taken; identity not re-read

◆ clip_pending

uint8_t sense_link_t::clip_pending

INA3221 channels clipped, not yet handed out: bit n-1 for CHn

◆ enc_magnet

uint16_t sense_link_t::enc_magnet

the magnet bits of the last read

◆ enc_magnet_told

bool sense_link_t::enc_magnet_told

the magnet event is said

◆ enc_page

bool sense_link_t::enc_page

and the encoder (4.9)

◆ ev_found

uint8_t sense_link_t::ev_found[2]

the address a SILENT event found

◆ ev_id

uint16_t sense_link_t::ev_id[2]

the ID a WRONG event was raised with

◆ event_given

bool sense_link_t::event_given

an event has been handed out

◆ event_ms

uint32_t sense_link_t::event_ms

when

◆ page

bool sense_link_t::page

the IOmcu has SENSE (4.7)

◆ setup_ms

uint32_t sense_link_t::setup_ms

when the set-up in force was taken

◆ setups

uint16_t sense_link_t::setups

set-ups taken and links lost

◆ status_reads

uint32_t sense_link_t::status_reads

SENSE reads answered, since init

◆ up

bool sense_link_t::up

an IOmcu answers

◆ want_enc

bool sense_link_t::want_enc

the encoder, likewise

◆ want_i3221

bool sense_link_t::want_i3221

enabled on SETUP, as asked

◆ want_ms

uint32_t sense_link_t::want_ms

when it last changed

◆ want_off_ch1

bool sense_link_t::want_off_ch1

and .i3221_fast_off_ch1

◆ want_parts

uint8_t sense_link_t::want_parts

◆ want_scl

int8_t sense_link_t::want_scl

as asked, -1 unset

◆ want_unwatched

bool sense_link_t::want_unwatched

and .i3221_unwatched

◆ was_clipped

uint16_t sense_link_t::was_clipped

CH_FLAGS' clipped bits, likewise

◆ was_flags

uint16_t sense_link_t::was_flags

FLAGS as last read under this set-up

◆ win_all

bool sense_link_t::win_all

the whole page is owed

◆ win_have

bool sense_link_t::win_have

a read showed LINK_SW_HAVE

◆ win_lost

uint32_t sense_link_t::win_lost

numbers that left the ring, since init

◆ win_moved_ms

uint32_t sense_link_t::win_moved_ms

when win_newest last moved

◆ win_page

bool sense_link_t::win_page

and SERVO_WIN and RESETS (4.11)

◆ win_restart

bool sense_link_t::win_restart

every closed entry of the next read is owed

◆ win_stands

bool sense_link_t::win_stands

a read found it SENSE_LINK_STALE_MS old or more; until it moves

◆ win_sync_ms

uint32_t sense_link_t::win_sync_ms

when a read last left nothing owed

◆ win_synced

bool sense_link_t::win_synced

win_next is the next number owed

◆ win_valid

bool sense_link_t::win_valid

its newest entry holds current

◆ window_last

uint16_t sense_link_t::window_last

the number of the last one

◆ window_taken

bool sense_link_t::window_taken

a window has gone to the log

◆ winq_n

uint8_t sense_link_t::winq_n

windows waiting in winq, oldest first


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