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

What core 0 asks for. More...

#include <sense_svc.h>

Data Fields

uint16_t cfg_gen
uint8_t sda
uint8_t scl
sense_sched_cfg_t parts
uint16_t run_gen
uint16_t cap_gen
bool cap_on
sense_cap_arm_t cap
bool edge_set
uint64_t edge_us
uint16_t limit_ma [SENSE_CHANNELS]

Detailed Description

What core 0 asks for.

Each generation moves when what it covers changes; core 1 acts on a generation it has not seen.

Field Documentation

◆ cap

sense_cap_arm_t sense_cmd_t::cap

the arm's levels

◆ cap_gen

uint16_t sense_cmd_t::cap_gen

moves on each arm and each disarm

◆ cap_on

bool sense_cmd_t::cap_on

cap_gen is an arm; false a disarm

◆ cfg_gen

uint16_t sense_cmd_t::cfg_gen

the bus's pins and the parts

◆ edge_set

bool sense_cmd_t::edge_set

edge_us is cap_gen's PWM edge

◆ edge_us

uint64_t sense_cmd_t::edge_us

on the clock now_us() reads

◆ limit_ma

uint16_t sense_cmd_t::limit_ma[SENSE_CHANNELS]

each channel's current limit in mA, 0 none (SENSE_LIMIT): taken from the next window that closes, with no new set-up

◆ parts

sense_sched_cfg_t sense_cmd_t::parts

neither enabled: the bus is closed

◆ run_gen

uint16_t sense_cmd_t::run_gen

moves on each edge into driving

◆ scl

uint8_t sense_cmd_t::scl

GPIO number of the clock line

◆ sda

uint8_t sense_cmd_t::sda

GPIO number of the data line


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