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

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

#include <hitec_link.h>

Data Fields

uint8_t up
uint8_t page
uint16_t minor
uint8_t known
uint8_t phase
uint8_t pending
uint8_t tries
uint8_t polled
uint8_t poll_now
uint32_t status_ms
uint32_t now_ms
uint16_t seq
uint16_t status [LINK_HT_DATA]
uint8_t ours
uint8_t have_line
uint16_t line [3]
uint8_t active
uint8_t op
uint8_t port
uint32_t id
uint8_t stage_at
uint16_t staged [HITEC_LINK_STAGED]
uint16_t cmd_proto [LINK_HT_W_CMD_FRAME]
uint8_t verdict
uint8_t taken
uint32_t taken_ms
uint8_t limit_cut
uint8_t cmd_live
uint8_t cmd_abort
uint8_t cmd_tries
uint8_t cmd_doubt
uint8_t doubt_abort
uint8_t doubt_nack
uint16_t cmd [LINK_HT_W_CMD_FRAME]
uint8_t abort_wanted
uint16_t end [LINK_HT_DATA]
uint8_t outcome_new
hitec_link_outcome_t outcome

Detailed Description

The state of the HITEC link module.

Field Documentation

◆ abort_wanted

uint8_t hitec_link_t::abort_wanted

an ABORT is owed

◆ active

uint8_t hitec_link_t::active

a request is on its way

◆ cmd

uint16_t hitec_link_t::cmd[LINK_HT_W_CMD_FRAME]

its registers 0 to 3

◆ cmd_abort

uint8_t hitec_link_t::cmd_abort

it is an ABORT

◆ cmd_doubt

uint8_t hitec_link_t::cmd_doubt

it went without an answer and is not sent again; the next status read says whether the page took it

◆ cmd_live

uint8_t hitec_link_t::cmd_live

it goes, or goes again

◆ cmd_proto

uint16_t hitec_link_t::cmd_proto[LINK_HT_W_CMD_FRAME]

the command less its SEQ

◆ cmd_tries

uint8_t hitec_link_t::cmd_tries

tries of it without an answer

◆ doubt_abort

uint8_t hitec_link_t::doubt_abort

the doubt came from an abort, not from HITEC_LINK_RETRIES unanswered tries

◆ doubt_nack

uint8_t hitec_link_t::doubt_nack

the doubt came from a NACK of a try after one without an answer: its reason

◆ end

uint16_t hitec_link_t::end[LINK_HT_DATA]

registers 0 to 15 as the request ended

◆ have_line

uint8_t hitec_link_t::have_line

line[] was read since the OPEN

◆ id

uint32_t hitec_link_t::id

the caller's number of it

◆ known

uint8_t hitec_link_t::known

status was read since the link came up

◆ limit_cut

uint8_t hitec_link_t::limit_cut

HITEC_LINK_RUN_MAX_MS asked an abort

◆ line

uint16_t hitec_link_t::line[3]

LINK_HT_I_BIT_NS, _LINE, _PIN

◆ minor

uint16_t hitec_link_t::minor

its protocol minor

◆ now_ms

uint32_t hitec_link_t::now_ms

the time hitec_link_next() last had

◆ op

uint8_t hitec_link_t::op

◆ ours

uint8_t hitec_link_t::ours

this module opened the held port

◆ outcome

hitec_link_outcome_t hitec_link_t::outcome

how the last request went

◆ outcome_new

uint8_t hitec_link_t::outcome_new

outcome is not handed out yet

◆ page

uint8_t hitec_link_t::page

it has the page

◆ pending

uint8_t hitec_link_t::pending

the exchange in flight

◆ phase

uint8_t hitec_link_t::phase

◆ poll_now

uint8_t hitec_link_t::poll_now

a status read is owed at once

◆ polled

uint8_t hitec_link_t::polled

status_ms is meaningful

◆ port

uint8_t hitec_link_t::port

the port it names

◆ seq

uint16_t hitec_link_t::seq

the page's SEQ

◆ stage_at

uint8_t hitec_link_t::stage_at

staged windows written

◆ staged

uint16_t hitec_link_t::staged[HITEC_LINK_STAGED]

registers 4 to 22 as they go out

◆ status

uint16_t hitec_link_t::status[LINK_HT_DATA]

registers 0 to 15 as last read

◆ status_ms

uint32_t hitec_link_t::status_ms

when status was last asked

◆ taken

uint8_t hitec_link_t::taken

the page took the command

◆ taken_ms

uint32_t hitec_link_t::taken_ms

when the page took it

◆ tries

uint8_t hitec_link_t::tries

exchanges unanswered in a row

◆ up

uint8_t hitec_link_t::up

an IOmcu answers

◆ verdict

uint8_t hitec_link_t::verdict

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


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