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

One supply sample. seq is the supply's count of its own readings, modulo 65536 (supply_state_t's samples): it moves when the reading is new, and a step of more than one is a reading the panel never saw. at_ms is when the panel first had the reading (taken_ms), so a supply whose count stops is a supply whose readings stop, however often the panel reads its page. More...

#include <esc_stick.h>

Data Fields

uint32_t seq
uint32_t at_ms
int32_t ma
bool current_ok
bool output
bool reported_on
bool online

Detailed Description

One supply sample. seq is the supply's count of its own readings, modulo 65536 (supply_state_t's samples): it moves when the reading is new, and a step of more than one is a reading the panel never saw. at_ms is when the panel first had the reading (taken_ms), so a supply whose count stops is a supply whose readings stop, however often the panel reads its page.

Field Documentation

◆ at_ms

uint32_t esc_stick_sample_t::at_ms

when the reading was taken

◆ current_ok

bool esc_stick_sample_t::current_ok

the current was read

◆ ma

int32_t esc_stick_sample_t::ma

supply current, mA

◆ online

bool esc_stick_sample_t::online

the supply answers

◆ output

bool esc_stick_sample_t::output

the panel has the output on: its request

◆ reported_on

bool esc_stick_sample_t::reported_on

the supply itself reports it on: what the module read, not what was asked


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