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

The panel's side of the programming ports' page. More...

#include <prog_link.h>

Data Fields

bool up
bool page
bool target_rate
uint8_t seen
uint8_t rate
bool known
bool read_once
uint32_t read_ms
uint16_t regs [LINK_PG_REGS]
uint8_t want_target
bool want_pwm
bool held
bool func
bool dshot
uint8_t ask_state
uint8_t ask_port
uint8_t ask_kind
uint16_t ask_value
bool reread
bool hitec
uint8_t hitec_held

Detailed Description

The panel's side of the programming ports' page.

Field Documentation

◆ ask_kind

uint8_t prog_link_t::ask_kind

◆ ask_port

uint8_t prog_link_t::ask_port

port the ask is for

◆ ask_state

uint8_t prog_link_t::ask_state

◆ ask_value

uint16_t prog_link_t::ask_value

the register value to write

◆ dshot

bool prog_link_t::dshot

from 4.28: FUNC takes DShot

◆ func

bool prog_link_t::func

from 4.26: FUNC and 28 registers

◆ held

bool prog_link_t::held

the programmer has a port

◆ hitec

bool prog_link_t::hitec

from 4.23: the HITEC page

◆ hitec_held

uint8_t prog_link_t::hitec_held

bit n: the HITEC page holds port n

◆ known

bool prog_link_t::known

regs holds a read of it

◆ page

bool prog_link_t::page

the IOmcu has the page

◆ rate

uint8_t prog_link_t::rate

a prog_link_rate_t not yet asked

◆ read_ms

uint32_t prog_link_t::read_ms

when the page was last read, ms

◆ read_once

bool prog_link_t::read_once

read_ms is a time

◆ regs

uint16_t prog_link_t::regs[LINK_PG_REGS]

the page's registers as last read

◆ reread

bool prog_link_t::reread

an ask was written: nothing more until the page is read again

◆ seen

uint8_t prog_link_t::seen

the TARGET last known, or PROG_LINK_SEEN_NONE

◆ target_rate

bool prog_link_t::target_rate

from 4.19: a TARGET change sets the SERVO rate to 0

◆ up

bool prog_link_t::up

an IOmcu answers

◆ want_pwm

bool prog_link_t::want_pwm

whether the wanted target is a PWM port

◆ want_target

uint8_t prog_link_t::want_target

0, or 1 + n for port n


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