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

The reply window as the driver saw it. More...

#include <kst_wire.h>

Data Fields

uint32_t window_ns
uint8_t level0
uint8_t overflow
uint8_t n_edges
uint32_t edge_ns [KST_CAP_MAX_EDGES]

Detailed Description

The reply window as the driver saw it.

Times are in ns from the frame's last edge. The capture starts at KST_RELEASE_NS and ends at window_ns. edge_ns holds every level change in ascending order; the driver applies no filter.

Field Documentation

◆ edge_ns

uint32_t kst_capture_t::edge_ns[KST_CAP_MAX_EDGES]

level changes, ascending

◆ level0

uint8_t kst_capture_t::level0

line level at the start, 0 or 1

◆ n_edges

uint8_t kst_capture_t::n_edges

edges in edge_ns

◆ overflow

uint8_t kst_capture_t::overflow

1: more edges than the buffer holds

◆ window_ns

uint32_t kst_capture_t::window_ns

end of the capture


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