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

The state of the servo programmer. More...

#include <kst_prog.h>

Data Fields

kst_prog_feed_t f
bool fed
uint32_t outcomes_seen
uint32_t next_id
bool have_servo
bool fp_ok
kst_image_t servo
kst_image_t draft
bool journal
bool journal_open
bool journal_other
bool need_read
uint8_t journal_port
 The programming port the journal's image was read on.
uint8_t journal_pin
kst_image_t journal_img
kst_image_t journal_target
bool write_enabled
bool written
bool backed_up
bool no_file
bool held_no_file
uint8_t port
uint16_t supply_mv
uint16_t supply_ma
uint16_t caps_mv
uint16_t caps_ma
uint16_t floor_mv
uint16_t pwm_wait_ms
uint8_t wait
uint8_t op
uint8_t writes
uint8_t restoring
bool chain_read
bool armed
kst_field_set_t wrote
kst_field_set_t held_wrote
kst_field_set_t wrote_before
bool wrote_known
bool leave_doubt
uint32_t wait_ms
uint32_t run_ms
uint32_t fetch_ms
bool fetched
bool cmd_fetch
uint32_t wait_id
bool cmd_ready
kst_prog_cmd_t cmd
kst_link_request_t held
kst_image_t held_target
bool held_journal
bool held_over
kst_image_t held_before
kst_prog_gate_t * gate
bool cmd_out
bool cmd_run
bool keep
bool keep_soft
bool keep_soft_load
kst_image_t keep_draft
uint8_t card_op
bool card_ready
bool card_auto
bool soft_load
kst_field_set_t load_skipped
kst_field_set_t soft_skipped
uint8_t file_types [KST_PROG_FILES_MAX]
uint8_t load_kind
uint8_t load_named
uint8_t load_fields
char card_name [KST_PROG_NAME_MAX]
char preset [KST_PROG_NAME_MAX]
char backup [KST_PROG_NAME_MAX]
uint32_t card_id
 Number of the card operation on its way; 0 is never used.
uint32_t card_ms
uint32_t late_id
kst_image_t late_img
uint8_t files_n
uint16_t files_total
uint16_t files_first
uint16_t card_first
uint32_t files_seq
char files [KST_PROG_FILES_MAX][KST_PROG_NAME_MAX]
bool soft
kst_image_t soft_img
kst_rules_t soft_rules
kst_field_set_t conf_set
uint16_t conf_raw [KST_F_COUNT]
uint8_t plan_n
bool file_wanted
bool file_busy
bool file_stale
bool file_retry
uint32_t file_retry_ms
uint8_t file_next
uint8_t file_for
bool run_hold
bool run_own
bool run_written
kst_image_t run_img
char run_backup [KST_PROG_NAME_MAX]
kst_prog_msg_t msg
kst_plan_t plan

Detailed Description

The state of the servo programmer.

Field Documentation

◆ armed

bool kst_prog_t::armed

◆ backed_up

bool kst_prog_t::backed_up

a file holds this session's servo

◆ backup

char kst_prog_t::backup[KST_PROG_NAME_MAX]

the file of backed_up

◆ caps_ma

uint16_t kst_prog_t::caps_ma

the supply's current limit, mA; 0 for none

◆ caps_mv

uint16_t kst_prog_t::caps_mv

the supply's limits, 0 for none

◆ card_auto

bool kst_prog_t::card_auto

the save a write waits for

◆ card_first

uint16_t kst_prog_t::card_first

of the list asked for

◆ card_ms

uint32_t kst_prog_t::card_ms

when the card operation was started, ms

◆ card_name

char kst_prog_t::card_name[KST_PROG_NAME_MAX]

the file saved or loaded

◆ card_op

uint8_t kst_prog_t::card_op

kst_prog_card_op_t on its way

◆ card_ready

bool kst_prog_t::card_ready

and not taken yet

◆ chain_read

bool kst_prog_t::chain_read

READ_ALL follows the ENTER

◆ cmd

kst_prog_cmd_t kst_prog_t::cmd

the command waiting to be taken

◆ cmd_fetch

bool kst_prog_t::cmd_fetch

whether a FETCH command is owed to the link task

◆ cmd_out

bool kst_prog_t::cmd_out

the START awaited was handed out

◆ cmd_ready

bool kst_prog_t::cmd_ready

whether cmd holds a command not yet taken

◆ cmd_run

bool kst_prog_t::cmd_run

and its pass was taken: it is carried out or was

◆ conf_raw

uint16_t kst_prog_t::conf_raw[KST_F_COUNT]

the value a soft rule was confirmed for

◆ conf_set

kst_field_set_t kst_prog_t::conf_set

fields with a confirmed value

◆ draft

kst_image_t kst_prog_t::draft

what the operator made of it

◆ fetch_ms

uint32_t kst_prog_t::fetch_ms

when the backup was last fetched, ms

◆ fetched

bool kst_prog_t::fetched

whether a backup was fetched this session

◆ file_for

uint8_t kst_prog_t::file_for

what the write on its way is for

◆ file_next

uint8_t kst_prog_t::file_next

what the write wanted is for

◆ file_retry

bool kst_prog_t::file_retry

the card owes the file

◆ file_retry_ms

uint32_t kst_prog_t::file_retry_ms

when the card last owed the file, ms

◆ file_stale

bool kst_prog_t::file_stale

the text on its way is of before the write that waits: its answer is not that write's

◆ file_types

uint8_t kst_prog_t::file_types[KST_PROG_FILES_MAX]

per listed file, its kst_prog_file_kind_t

◆ files

char kst_prog_t::files[KST_PROG_FILES_MAX][KST_PROG_NAME_MAX]

the listed files' names

◆ files_first

uint16_t kst_prog_t::files_first

of the last list

◆ files_n

uint8_t kst_prog_t::files_n

files in the list

◆ files_seq

uint32_t kst_prog_t::files_seq

counts the lists that arrived

◆ files_total

uint16_t kst_prog_t::files_total

files the card holds in all

◆ floor_mv

uint16_t kst_prog_t::floor_mv

the lowest voltage of a session; 0 for none

◆ gate

◆ held

kst_link_request_t kst_prog_t::held

the request the file goes before

◆ held_before

kst_image_t kst_prog_t::held_before

the target of the earlier write's record

◆ held_journal

bool kst_prog_t::held_journal

the held write recorded the journal

◆ held_no_file

bool kst_prog_t::held_no_file

and the held write is such a one

◆ held_over

bool kst_prog_t::held_over

over the record of an earlier write, whose target is in held_before

◆ held_target

kst_image_t kst_prog_t::held_target

and what it is to leave

◆ held_wrote

kst_field_set_t kst_prog_t::held_wrote

those of the write that is held, not taken yet

◆ journal

bool kst_prog_t::journal

an image is recorded

◆ journal_img

kst_image_t kst_prog_t::journal_img

the servo before the write

◆ journal_open

bool kst_prog_t::journal_open

and the servo was not compared

◆ journal_other

bool kst_prog_t::journal_other

the servo read is not the journal's

◆ journal_pin

uint8_t kst_prog_t::journal_pin

the GPIO of journal_port at the write, KST_PROG_NO_PIN not known

◆ journal_target

kst_image_t kst_prog_t::journal_target

and what the write was to leave

◆ keep

bool kst_prog_t::keep

keep_draft holds the pending values of before a restore that is not started yet

◆ keep_draft

kst_image_t kst_prog_t::keep_draft

the pending values kept before a restore

◆ keep_soft

bool kst_prog_t::keep_soft

the soft limits kept with keep_draft

◆ keep_soft_load

bool kst_prog_t::keep_soft_load

whether the kept edit is a file

◆ late_id

uint32_t kst_prog_t::late_id

the save given up at KST_PROG_CARD_MS; 0 for none

◆ late_img

kst_image_t kst_prog_t::late_img

and the image it was asked with

◆ leave_doubt

bool kst_prog_t::leave_doubt

the exit runs without LEAVE: the port asks for a read or holds a servo in doubt, no PD mini answers

◆ load_fields

uint8_t kst_prog_t::load_fields

of this many; 0 not counted

◆ load_kind

uint8_t kst_prog_t::load_kind

◆ load_named

uint8_t kst_prog_t::load_named

fields the file gives a value for

◆ load_skipped

kst_field_set_t kst_prog_t::load_skipped

fields of the loaded file the servo's model skipped

◆ need_read

bool kst_prog_t::need_read

the servo's image is in doubt

◆ no_file

bool kst_prog_t::no_file

a write went with no card for one

◆ op

uint8_t kst_prog_t::op

link_kst_op_t on its way

◆ plan

kst_plan_t kst_prog_t::plan

work space; not on the stack

◆ plan_n

uint8_t kst_prog_t::plan_n

registers the write on its way writes; 0 not known

◆ port

uint8_t kst_prog_t::port

the programming port the session works on

◆ preset

char kst_prog_t::preset[KST_PROG_NAME_MAX]

the next preset name

◆ pwm_wait_ms

uint16_t kst_prog_t::pwm_wait_ms

from the end of a session to PWM

◆ restoring

uint8_t kst_prog_t::restoring

kst_prog_from_t of that write

◆ run_backup

char kst_prog_t::run_backup[KST_PROG_NAME_MAX]

the file of run_img; "" none

◆ run_ms

uint32_t kst_prog_t::run_ms

when the wait for the outcome began

◆ run_own

bool kst_prog_t::run_own

the run is under way: its sessions take the file of its first write

◆ run_written

bool kst_prog_t::run_written

the run's first write was sent

◆ servo

kst_image_t kst_prog_t::servo

the servo as last read

◆ soft_load

bool kst_prog_t::soft_load

the edit that waits is a file

◆ soft_skipped

kst_field_set_t kst_prog_t::soft_skipped

of the file that waits

◆ supply_ma

uint16_t kst_prog_t::supply_ma

what an ENTER asks of the PD mini, mA

◆ supply_mv

uint16_t kst_prog_t::supply_mv

what an ENTER asks of the PD mini

◆ wait

uint8_t kst_prog_t::wait

what is awaited

◆ wait_id

uint32_t kst_prog_t::wait_id

id of the start the session waits for

◆ wait_ms

uint32_t kst_prog_t::wait_ms

when the wait for the port began, ms

◆ writes

uint8_t kst_prog_t::writes

fields the write on its way changes

◆ written

bool kst_prog_t::written

a write was sent in this session

◆ wrote

kst_field_set_t kst_prog_t::wrote

fields the session's writes set out to change: of the writes whose command was taken

◆ wrote_before

kst_field_set_t kst_prog_t::wrote_before

wrote before the last write was taken: what stands when that write ends with no register written

◆ wrote_known

bool kst_prog_t::wrote_known

the session began under this model: wrote is all of them


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