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

The supply screen's state: the plot, the sliders, the set points and what the supply reports, the question about a change, the keypad and the revisions the two frame buffers last drew. More...

#include <supply_screen_int.h>

Data Fields

ui_plot_t plot
ui_wb_strip_t wb
uint32_t strip_rev
uint32_t drawn_strip [2]
ui_tabs_t tabs
ui_slider_t v_slider
ui_slider_t i_slider
supply_caps_t caps
supply_limits_t lim
supply_caps_t eff
supply_state_t sup
float cv
float ci
bool on_asked
 Whether an ON this screen asked for is not yet seen applied.
bool port_held
 Whether a servo programming port is out of PWM and holds the supply.
bool held_kst
 The KST programmer's word on the hold.
bool held_hitec
 The Hitec programmer's word on the hold.
supply_by_t owner
bool off_owed
 Whether an OFF is owed for leaving the screen while a port held the supply.
bool confirm_open
uint32_t off_count
uint32_t stops
uint32_t confirm_stops
bool press_on
 Whether OUTPUT's press began on a live output (an OFF tap).
float pend_v
float pend_i
gfx_rect_t apply_btn
gfx_rect_t discard_btn
bool model
uint32_t baud
int tx1
int rx1
bool on
bool out_reported
supply_cmd_t pending
unsigned drawn_mask
 Bit per frame buffer: its title and strip were drawn.
uint32_t drawn_push [2]
uint32_t drawn_plot [2]
uint8_t drawn_title [2]
uint32_t ctrl_rev
uint32_t drawn_ctrl [2]
uint32_t set_rev
uint32_t drawn_set [2]
uint32_t out_rev
uint32_t drawn_out [2]
uint32_t ov_rev
uint32_t drawn_ov [2]
uint8_t drawn_save [2]
uint32_t drawn_kp [2]
ui_hold_t hold
gfx_rect_t out_rect
gfx_rect_t reset_rect
gfx_rect_t modreset_btn
gfx_rect_t v_down
gfx_rect_t v_up
gfx_rect_t i_down
gfx_rect_t i_up
ui_keypad_t kp
int kp_target
setting_id_t kp_setting
 Setting the keypad types when kp_target is KP_SETTING.
int pressed
int press_row
uint8_t press_id
bool have_press

Detailed Description

The supply screen's state: the plot, the sliders, the set points and what the supply reports, the question about a change, the keypad and the revisions the two frame buffers last drew.

Field Documentation

◆ apply_btn

gfx_rect_t sup_state_t::apply_btn

APPLY of the question

◆ baud

uint32_t sup_state_t::baud

PD mini UART rate, baud; 0 when not shown

◆ caps

supply_caps_t sup_state_t::caps

what the supply can be set to

◆ ci

float sup_state_t::ci

current limit given to the supply, A

◆ confirm_open

bool sup_state_t::confirm_open

whether the question about a change is open

◆ confirm_stops

uint32_t sup_state_t::confirm_stops

stop count the question was asked under

◆ ctrl_rev

uint32_t sup_state_t::ctrl_rev

revision of the CONTROL card

◆ cv

float sup_state_t::cv

voltage set point given to the supply, V

◆ discard_btn

gfx_rect_t sup_state_t::discard_btn

CANCEL of the question

◆ drawn_ctrl

uint32_t sup_state_t::drawn_ctrl[2]

CONTROL revision each frame buffer last drew

◆ drawn_kp

uint32_t sup_state_t::drawn_kp[2]

keypad revision each frame buffer last drew

◆ drawn_out

uint32_t sup_state_t::drawn_out[2]

OUTPUT revision each frame buffer last drew

◆ drawn_ov

uint32_t sup_state_t::drawn_ov[2]

SETTINGS revision each frame buffer last drew

◆ drawn_plot

uint32_t sup_state_t::drawn_plot[2]

plot revision each frame buffer last drew

◆ drawn_push

uint32_t sup_state_t::drawn_push[2]

plot pushes each frame buffer last drew

◆ drawn_save

uint8_t sup_state_t::drawn_save[2]

save-line state each frame buffer last drew

◆ drawn_set

uint32_t sup_state_t::drawn_set[2]

set point revision each frame buffer last drew

◆ drawn_strip

uint32_t sup_state_t::drawn_strip[2]

strip revision each frame buffer last drew

◆ drawn_title

uint8_t sup_state_t::drawn_title[2]

title tag each frame buffer last drew

◆ eff

supply_caps_t sup_state_t::eff

the caps narrowed by the limits

◆ have_press

bool sup_state_t::have_press

whether a press is on the glass

◆ hold

ui_hold_t sup_state_t::hold

hold counter of OUTPUT ON

◆ i_down

gfx_rect_t sup_state_t::i_down

current fine step down

◆ i_slider

ui_slider_t sup_state_t::i_slider

current slider

◆ i_up

gfx_rect_t sup_state_t::i_up

current fine step up

◆ kp

ui_keypad_t sup_state_t::kp

the keypad

◆ kp_target

int sup_state_t::kp_target

what the keypad types, KP_*

◆ lim

supply_limits_t sup_state_t::lim

what the operator allows

◆ model

bool sup_state_t::model

whether the panel runs against its model supply

◆ modreset_btn

gfx_rect_t sup_state_t::modreset_btn

RESET PD MINI, on SETTINGS

◆ off_count

uint32_t sup_state_t::off_count

reported ON-to-OFF edges

◆ on

bool sup_state_t::on

the output as this screen believes it

◆ out_rect

gfx_rect_t sup_state_t::out_rect

OUTPUT ON / OFF

◆ out_reported

bool sup_state_t::out_reported

the output as the supply reports it

◆ out_rev

uint32_t sup_state_t::out_rev

revision of OUTPUT

◆ ov_rev

uint32_t sup_state_t::ov_rev

revision of SETTINGS' page

◆ owner

supply_by_t sup_state_t::owner

screen whose ON the output is

◆ pend_i

float sup_state_t::pend_i

current change waiting for its question, A

◆ pend_v

float sup_state_t::pend_v

voltage change waiting for its question, V

◆ pending

supply_cmd_t sup_state_t::pending

the commands waiting to go to the supply

◆ plot

ui_plot_t sup_state_t::plot

plot of the three readings and two set points

◆ press_id

uint8_t sup_state_t::press_id

touch id of the press

◆ press_row

int sup_state_t::press_row

SETTINGS row the press is on

◆ pressed

int sup_state_t::pressed

what the press is on, P_*

◆ reset_rect

gfx_rect_t sup_state_t::reset_rect

RESET PEAKS

◆ rx1

int sup_state_t::rx1

PD mini UART receive pin, GPIO + 1; 0 for none

◆ set_rev

uint32_t sup_state_t::set_rev

revision of the set points

◆ stops

uint32_t sup_state_t::stops

stops seen

◆ strip_rev

uint32_t sup_state_t::strip_rev

revision of the strip, counted up when it changes

◆ sup

supply_state_t sup_state_t::sup

the supply's reported state

◆ tabs

ui_tabs_t sup_state_t::tabs

PLOT | TABLE tabs, on LIVE

◆ tx1

int sup_state_t::tx1

PD mini UART transmit pin, GPIO + 1; 0 for none

◆ v_down

gfx_rect_t sup_state_t::v_down

voltage fine step down

◆ v_slider

ui_slider_t sup_state_t::v_slider

voltage slider

◆ v_up

gfx_rect_t sup_state_t::v_up

voltage fine step up

◆ wb

ui_wb_strip_t sup_state_t::wb

the LIVE | SETTINGS strip


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