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

The sensor service: its schedule and the command state it acts on. More...

#include <sense_svc.h>

Data Fields

sense_svc_io_t io
bool started
uint16_t cfg_gen
uint16_t run_gen
uint16_t cap_gen
bool open
uint8_t sda
uint8_t scl
bool edge_given
bool refused
uint16_t refusals
uint16_t seq_base
bool scan_due
uint64_t scan_at_us
uint16_t present
bool lim_have
uint16_t lim_win
uint16_t over_n [SENSE_CHANNELS]
uint32_t setups
sense_sched_t sched

Detailed Description

The sensor service: its schedule and the command state it acts on.

Field Documentation

◆ cap_gen

uint16_t sense_svc_t::cap_gen

generation of the capture command taken

◆ cfg_gen

uint16_t sense_svc_t::cfg_gen

generation of the bus's configuration taken

◆ edge_given

bool sense_svc_t::edge_given

cap_gen's edge went to the schedule

◆ lim_have

bool sense_svc_t::lim_have

lim_win is a window judged

◆ lim_win

uint16_t sense_svc_t::lim_win

the number of the last one judged

◆ open

bool sense_svc_t::open

the bus runs on its pins

◆ over_n

uint16_t sense_svc_t::over_n[SENSE_CHANNELS]

per channel, the windows judged over the limit

◆ present

uint16_t sense_svc_t::present

bit n: 0x40 + n answered

◆ refusals

uint16_t sense_svc_t::refusals

refused arms, modulo 65536

◆ refused

bool sense_svc_t::refused

cap_gen's arm was refused

◆ run_gen

uint16_t sense_svc_t::run_gen

generation of the run command taken

◆ scan_at_us

uint64_t sense_svc_t::scan_at_us

the next scan while a part is missing

◆ scan_due

bool sense_svc_t::scan_due

whether a scan for missing parts is due

◆ sched

sense_sched_t sense_svc_t::sched

the schedule

◆ scl

uint8_t sense_svc_t::scl

GPIO number of the clock line

◆ sda

uint8_t sense_svc_t::sda

GPIO number of the data line

◆ seq_base

uint16_t sense_svc_t::seq_base

captures ended under earlier set-ups

◆ setups

uint32_t sense_svc_t::setups

schedules set up, modulo 2^32: each one's sched.gen

◆ started

bool sense_svc_t::started

a command has been taken


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