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

One 50ms window of INA3221 CH1, as SERVO_WIN carries it. More...

#include <sense_link.h>

Data Fields

uint16_t number
bool current
bool voltage
bool clip_hi
bool clip_lo
uint8_t clipped
int16_t mean_ma
int16_t max_ma
int16_t min_ma
uint16_t mean_mv
uint16_t min_mv
uint32_t taken_ms
 The latest the window can have closed, on the panel's tick: when the panel had the read that brought it, less SENSE_LINK_WINDOW_MS for each window that closed after it and came in the same read.
bool stamped

Detailed Description

One 50ms window of INA3221 CH1, as SERVO_WIN carries it.

A clipped sample counts in the three currents at the end of the range it read.

Field Documentation

◆ clip_hi

bool sense_link_win_t::clip_hi

a sample read the top of the range

◆ clip_lo

bool sense_link_win_t::clip_lo

a sample read the bottom

◆ clipped

uint8_t sense_link_win_t::clipped

samples at an end, held at 255

◆ current

bool sense_link_win_t::current

it holds current samples

◆ max_ma

int16_t sense_link_win_t::max_ma

the highest sample, mA, signed

◆ mean_ma

int16_t sense_link_win_t::mean_ma

mA, signed

◆ mean_mv

uint16_t sense_link_win_t::mean_mv

bus voltage at the load side of the shunt

◆ min_ma

int16_t sense_link_win_t::min_ma

the lowest sample, mA, signed

◆ min_mv

uint16_t sense_link_win_t::min_mv

the lowest bus voltage sample, mV

◆ number

uint16_t sense_link_win_t::number

the window's, modulo 65536

◆ stamped

bool sense_link_win_t::stamped

taken_ms is set; 0 is a tick like any other

◆ taken_ms

uint32_t sense_link_win_t::taken_ms

The latest the window can have closed, on the panel's tick: when the panel had the read that brought it, less SENSE_LINK_WINDOW_MS for each window that closed after it and came in the same read.

The windows of one read are 50ms apart, oldest first.

◆ voltage

bool sense_link_win_t::voltage

it holds bus voltage samples


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