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

The state of one Hitec port: the hardware, the staged registers, the running or last transaction and its capture. More...

#include <hitec_port.h>

Data Fields

hitec_port_hw_t hw
uint16_t staged [LINK_HT_W_STAGED]
uint16_t last_cmd [LINK_HT_W_CMD_FRAME]
hitec_xfer_t xfer
hitec_capture_t cap
hitec_reply_t reply
hitec_port_run_t info
uint32_t t0_ms
uint32_t t1_ms
uint32_t start_us
uint32_t cap_us
uint16_t seq
uint16_t count
uint16_t mv
uint16_t ma
uint16_t off_ms
uint8_t state
uint8_t port
uint8_t pin
uint8_t family
uint8_t drive
uint8_t op
uint8_t result
uint8_t refusal
uint8_t rx
uint8_t dec
uint8_t dec_arg
uint8_t view
uint8_t safe
uint8_t armed
uint8_t other
uint8_t has_pin
uint8_t has_cap
uint8_t stopped
uint8_t keyed
uint8_t cutting
uint8_t off_seen
uint8_t rx_mode
uint8_t rx_line
uint8_t supply_on
uint8_t read_on

Detailed Description

The state of one Hitec port: the hardware, the staged registers, the running or last transaction and its capture.

Field Documentation

◆ armed

uint8_t hitec_port_t::armed

whether the bank is armed

◆ cap

hitec_capture_t hitec_port_t::cap

the last capture

◆ cap_us

uint32_t hitec_port_t::cap_us

from the start to the capture

◆ count

uint16_t hitec_port_t::count

transactions since the port was taken

◆ cutting

uint8_t hitec_port_t::cutting

the driver was told to abort

◆ dec

uint8_t hitec_port_t::dec

link_hitec_dec_t of the last transaction

◆ dec_arg

uint8_t hitec_port_t::dec_arg

argument of dec

◆ drive

uint8_t hitec_port_t::drive

whether the port drives

◆ family

uint8_t hitec_port_t::family

the servo family

◆ has_cap

uint8_t hitec_port_t::has_cap

whether a capture is held

◆ has_pin

uint8_t hitec_port_t::has_pin

whether pin holds a GPIO

◆ info

hitec_port_run_t hitec_port_t::info

the driver's word at the last start

◆ keyed

uint8_t hitec_port_t::keyed

the last transaction puts a byte out

◆ ma

uint16_t hitec_port_t::ma

the running POWER's current limit, mA

◆ mv

uint16_t hitec_port_t::mv

the running POWER's set points

◆ off_ms

uint16_t hitec_port_t::off_ms

the POWER off time, ms

◆ off_seen

uint8_t hitec_port_t::off_seen

POWER: the supply read off

◆ op

uint8_t hitec_port_t::op

link_hitec_op_t of the last operation

◆ other

uint8_t hitec_port_t::other

ports the KST page holds

◆ pin

uint8_t hitec_port_t::pin

the port's GPIO

◆ port

uint8_t hitec_port_t::port

the programming port

◆ read_on

uint8_t hitec_port_t::read_on

the output read on (not off) since the start; set at the start but for POWER

◆ refusal

uint8_t hitec_port_t::refusal

link_hitec_refusal_t of the last command

◆ reply

hitec_reply_t hitec_port_t::reply

its decoding

◆ result

uint8_t hitec_port_t::result

link_hitec_result_t of that operation

◆ rx

uint8_t hitec_port_t::rx

hitec_rx_t of the last decoding

◆ rx_line

uint8_t hitec_port_t::rx_line

the receive mode of the line, from its OPEN

◆ rx_mode

uint8_t hitec_port_t::rx_mode

LINK_HT_W_RX_MODE as written

◆ safe

uint8_t hitec_port_t::safe

0 while the bench is not SAFE

◆ seq

uint16_t hitec_port_t::seq

sequence number of the last transaction

◆ start_us

uint32_t hitec_port_t::start_us

driver time of its start, µs

◆ state

uint8_t hitec_port_t::state

◆ stopped

uint8_t hitec_port_t::stopped

whether the port was stopped

◆ supply_on

uint8_t hitec_port_t::supply_on

the supply was asked on at the start

◆ t0_ms

uint32_t hitec_port_t::t0_ms

bench time of the transaction's start, ms

◆ t1_ms

uint32_t hitec_port_t::t1_ms

bench time of its end, ms

◆ view

uint8_t hitec_port_t::view

the supply's view of the port

◆ xfer

hitec_xfer_t hitec_port_t::xfer

the running transaction, or the last


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