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

The state of the KST link module. More...

#include <kst_link.h>

Data Fields

bool up
bool page
uint16_t minor
bool known
uint8_t phase
uint8_t pending
uint8_t tries
bool was_held
uint16_t status [LINK_KS_W_CMD_FRAME]
bool polled
bool poll_now
uint32_t status_ms
uint16_t seq
bool active
bool verdict
bool taken
uint8_t op
uint32_t id
uint8_t stage_at
uint16_t staged [LINK_KS_W_STAGED]
bool supply_due
uint16_t supply [2]
bool leave_due
uint16_t leave_ms
uint16_t cmd_proto [LINK_KS_W_CMD_FRAME]
bool cmd_live
bool cmd_abort
bool cmd_doubt
uint16_t cmd [LINK_KS_W_CMD_FRAME]
bool abort_wanted
uint8_t fetch
uint16_t end_status [LINK_KS_W_CMD_FRAME]
bool have_results
uint16_t results [LINK_KS_IMAGE - LINK_KS_FAIL]
bool have_image
uint16_t image_regs [LINK_KS_IMAGE_REGS]
bool have_backup
uint16_t backup_regs [LINK_KS_IMAGE_REGS]
bool outcome_new
kst_link_outcome_t outcome

Detailed Description

The state of the KST link module.

Field Documentation

◆ active

bool kst_link_t::active

an operation is on its way

◆ cmd_doubt

bool kst_link_t::cmd_doubt

the operation's command went without an answer and an abort came: it is not sent again, and the next status read says whether the page took it

◆ cmd_proto

uint16_t kst_link_t::cmd_proto[LINK_KS_W_CMD_FRAME]

the command less its SEQ

◆ end_status

uint16_t kst_link_t::end_status[LINK_KS_W_CMD_FRAME]

status as the operation ended

◆ fetch

uint8_t kst_link_t::fetch

the step of the fetch

◆ id

uint32_t kst_link_t::id

◆ known

bool kst_link_t::known

status was read since the link came up

◆ leave_due

bool kst_link_t::leave_due

a LEAVE's wait register is owed

◆ leave_ms

uint16_t kst_link_t::leave_ms

LEAVE_MS

◆ minor

uint16_t kst_link_t::minor

the IOmcu's protocol minor

◆ op

uint8_t kst_link_t::op

◆ pending

uint8_t kst_link_t::pending

the exchange in flight

◆ phase

uint8_t kst_link_t::phase

kst_link_phase_t, never KST_LINK_PLANNING: that is KST_LINK_RUNNING here

◆ poll_now

bool kst_link_t::poll_now

a status read is owed at once

◆ polled

bool kst_link_t::polled

status_ms is meaningful

◆ seq

uint16_t kst_link_t::seq

the page's SEQ

◆ stage_at

uint8_t kst_link_t::stage_at

staged windows written, to STAGE_WINDOWS

◆ status_ms

uint32_t kst_link_t::status_ms

when status was last asked

◆ supply

uint16_t kst_link_t::supply[2]

SUPPLY_MV, SUPPLY_MA

◆ supply_due

bool kst_link_t::supply_due

an ENTER's supply registers are owed

◆ taken

bool kst_link_t::taken

its command was acknowledged

◆ tries

uint8_t kst_link_t::tries

exchanges unanswered in a row

◆ verdict

bool kst_link_t::verdict

its command was taken; the status that says what became of it is owed

◆ was_held

bool kst_link_t::was_held

the status last read had the port out of PWM


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