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

A supply's readings, set points, mode and trip state. More...

#include <supply.h>

Data Fields

float set_v
float set_i
float v
float i
float p
supply_mode_t mode
bool output
bool online
bool modelled
uint8_t ok
uint8_t trip
 The trip that switched the output off last, as supply_trip_kind_t; kept until the output is switched on again.
uint16_t samples
 Readings the supply has taken, modulo 65536: a new count is a new reading, and the same count read again is the same reading.
uint32_t taken_ms
 When the panel had this reading, on its millisecond clock: the page read that brought it, or the model's step.
bool stamped
float v_min
float i_max
float p_max
bool sag_seeded
float charge_mah
float energy_wh
uint8_t counted

Detailed Description

A supply's readings, set points, mode and trip state.

Field Documentation

◆ counted

uint8_t supply_state_t::counted

BENCH_COUNTED_* from bench_state.h

◆ i

float supply_state_t::i

out of it, A

◆ mode

supply_mode_t supply_state_t::mode

off, constant voltage or constant current

◆ modelled

bool supply_state_t::modelled

the panel's model produced the readings

◆ ok

uint8_t supply_state_t::ok

SUPPLY_OK_*

◆ online

bool supply_state_t::online

the supply answers

◆ output

bool supply_state_t::output

the output is switched on

◆ p

float supply_state_t::p

v * i, W

◆ sag_seeded

bool supply_state_t::sag_seeded

v_min is a reading yet

◆ samples

uint16_t supply_state_t::samples

Readings the supply has taken, modulo 65536: a new count is a new reading, and the same count read again is the same reading.

The PD mini's from its page; the model counts its steps.

◆ set_i

float supply_state_t::set_i

current limit asked for, A

◆ set_v

float supply_state_t::set_v

asked for, V

◆ stamped

bool supply_state_t::stamped

taken_ms is set

◆ taken_ms

uint32_t supply_state_t::taken_ms

When the panel had this reading, on its millisecond clock: the page read that brought it, or the model's step.

Valid only while stamped is set: 0 is a tick like any other.

◆ v

float supply_state_t::v

at the output, V


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