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

The run since sense_sched_arm(), from the INA228. More...

#include <sense_sched.h>

Data Fields

bool have_v
bool have_i
bool have_p
bool i_clipped
int32_t v_min_uv
int32_t i_max_ua
int64_t p_max_uw
bool clear_owed
bool totals_ok
uint64_t energy_mj
int64_t charge_uc

Detailed Description

The run since sense_sched_arm(), from the INA228.

Field Documentation

◆ charge_uc

int64_t sense_run_t::charge_uc

CHARGE as last read

◆ clear_owed

bool sense_run_t::clear_owed

the accumulators are to be cleared

◆ energy_mj

uint64_t sense_run_t::energy_mj

ENERGY as last read

◆ have_i

bool sense_run_t::have_i

i_max_ua holds a sample

◆ have_p

bool sense_run_t::have_p

p_max_uw holds a sample

◆ have_v

bool sense_run_t::have_v

v_min_uv holds a sample

◆ i_clipped

bool sense_run_t::i_clipped

a clipped current: the peaks lack it

◆ i_max_ua

int32_t sense_run_t::i_max_ua

highest current since arming, µA

◆ p_max_uw

int64_t sense_run_t::p_max_uw

a current times the voltage read before it

◆ totals_ok

bool sense_run_t::totals_ok

energy and charge are this run's

◆ v_min_uv

int32_t sense_run_t::v_min_uv

lowest voltage since arming, µV


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