rcbench
Servo and ESC test bench: panel, IOmcu and shared C
Loading...
Searching...
No Matches
sense_trace_hw.h
Go to the documentation of this file.
1
23#ifndef RCBENCH_SENSE_TRACE_HW_H
24#define RCBENCH_SENSE_TRACE_HW_H
25
26#include <stdint.h>
27
28#include "outputs.h"
29#include "sense_svc.h"
30
35#define SENSE_TRACE_HW_RING 4096u
36
40void sense_trace_hw_init(void);
41
49void sense_trace_hw_feed(const sense_svc_t *svc, uint64_t tick_us);
50
64
70void sense_trace_hw_edge(uint64_t edge_us);
71
76void sense_trace_hw_pass(void);
77
78#endif /* RCBENCH_SENSE_TRACE_HW_H */
The intermediary every output goes through: one set of rules for arming, clamping,...
The IOmcu's sensor service: what core 1 does each 1ms tick with the orders core 0 gives it,...
void sense_trace_hw_feed(const sense_svc_t *svc, uint64_t tick_us)
Core 1, after each step of svc; tick_us is the time the tick started at, as the loop read it.
Definition sense_trace_hw.c:38
void sense_trace_hw_edge(uint64_t edge_us)
Core 0: the capture's PWM edge, as outputs_hw_edge() stamped it.
Definition sense_trace_hw.c:72
void sense_trace_hw_init(void)
Core 0, before core 1 starts.
Definition sense_trace_hw.c:33
void sense_trace_hw_pass(void)
Core 0, once a pass: a character from the console, and the lines the console has room for.
Definition sense_trace_hw.c:77
void sense_trace_hw_outputs(const outputs_t *o)
Core 0, straight after outputs_hw_service(): each bound PWM slot's pulse of this pass,...
Definition sense_trace_hw.c:43
The state of a bank of channels and slots.
Definition outputs.h:143
The sensor service: its schedule and the command state it acts on.
Definition sense_svc.h:174