ESPectre SDK 2.8.0-280-gac7af68
Wi-Fi CSI motion sensing for ESP32 firmware
Loading...
Searching...
No Matches
csi_traffic_types.h
Go to the documentation of this file.
1/*
2 * ESPectre - CSI Traffic Types
3 *
4 * Platform-agnostic CSI traffic mode shared between the runtime interface
5 * and the ESP-IDF traffic service implementation.
6 *
7 * Author: Francesco Pace <francesco.pace@gmail.com>
8 * SPDX-License-Identifier: GPL-3.0-only
9 * Commercial licensing available under separate agreement; see LICENSING.md.
10 */
11#pragma once
12
13namespace espectre {
14
15/**
16 * Where the CSI-bearing traffic comes from.
17 *
18 * CSI is only produced when packets actually arrive, so something has to keep
19 * the link busy. This picks who does it.
20 */
21enum class CsiTrafficMode {
22 /**
23 * The runtime generates its own traffic at `csi_target_pps`.
24 * Default, and the only self-sufficient mode.
25 */
27 /** Another device supplies the traffic; the runtime only listens. */
29 /** External traffic, with the runtime pacing the sender to hold the rate. */
31 /**
32 * No traffic management at all.
33 *
34 * Only sensible when ambient traffic already sustains the packet rate the
35 * detector needs; otherwise the detector starves.
36 */
38};
39
40} // namespace espectre
CsiTrafficMode
Where the CSI-bearing traffic comes from.
@ DISABLED
No traffic management at all.
@ INTERNAL
The runtime generates its own traffic at csi_target_pps.
@ PACING
External traffic, with the runtime pacing the sender to hold the rate.
@ EXTERNAL
Another device supplies the traffic; the runtime only listens.