- ST7735 SPI-Treiber (80x160, 5x7-Font) mit Debug-Panel (5MIN/FRM/DROP/SRC/FREE/CH) - SPI2_HOST statt SPI1_HOST (SPI1 = Flash-reserviert auf ESP32-C5) - xTaskCreate statt xTaskCreatePinnedToCore (C5 ist Single-Core) - SD-Karte (SPI 1-bit, 32 GB, FAT32) + Flash-storage-Fallback - Serial-REPL: stats, seron, seroff, reboot - APA102 RGB-Status-LED (blau=boot, gruen=armed, rot=fehler) - Build: ESP-IDF v6.1-dev, RISC-V, ~920 KB Replaced old block1-4 prototype with full modular firmware.
22 lines
816 B
C
22 lines
816 B
C
#pragma once
|
|
#include "esp_err.h"
|
|
#include <stdint.h>
|
|
#include <stdbool.h>
|
|
|
|
/* Start the 5.9 GHz / 802.11p C-ITS promiscuous capture (the "secret command"
|
|
* sequence from the opentrafficmap ITS-G5 receiver) and spawn the processing
|
|
* task that parses frames and logs them to CSV (SD/flash) + serial. */
|
|
esp_err_t cits_rx_start(void);
|
|
|
|
/* Enable/disable live serial logging of each frame (CSV logging is always on). */
|
|
void cits_rx_set_serial(bool on);
|
|
|
|
/* Total 802.11 frames seen (valid rx_state) since start. */
|
|
uint64_t cits_rx_frames(void);
|
|
/* Frames whose payload classified as a known C-ITS ASdu. */
|
|
uint64_t cits_rx_cits(void);
|
|
/* Frames dropped (queue full / out of memory). */
|
|
uint64_t cits_rx_drops(void);
|
|
/* C-ITS ASdu count in the last 5 minutes (sliding window). */
|
|
uint32_t cits_rx_count_5min(void);
|