rcbench
Servo and ESC test bench: panel, IOmcu and shared C
Loading...
Searching...
No Matches
sense_sched_int.h File Reference

The schedule's parts shared between its two files: sense_sched.c reads the bus, sense_sched_cap.c runs the move capture and FAST's history on what it read. More...

#include "sense_sched.h"

Go to the source code of this file.

Functions

void sense_cap_step (sense_sched_t *s, const sense_value_t *v, uint32_t at_t)
 The capture's step: FAST's sample of this tick, or NULL with none, at at_t (0.1ms).
bool sense_cap_under_way (const sense_cap_t *c)
 Whether a capture is armed, waiting or moving.

Detailed Description

The schedule's parts shared between its two files: sense_sched.c reads the bus, sense_sched_cap.c runs the move capture and FAST's history on what it read.

Not for any other module.

SPDX-License-Identifier: MIT

Function Documentation

◆ sense_cap_step()

void sense_cap_step ( sense_sched_t * s,
const sense_value_t * v,
uint32_t at_t )

The capture's step: FAST's sample of this tick, or NULL with none, at at_t (0.1ms).

Then the sample into the history.

Parameters
sThe schedule whose capture and history are updated.
vFAST's sample of this tick, or NULL when there is none.
at_tTime of the step, in 0.1ms.

◆ sense_cap_under_way()

bool sense_cap_under_way ( const sense_cap_t * c)

Whether a capture is armed, waiting or moving.

Parameters
cThe capture to test.
Returns
true while the capture is armed, waiting or moving.