#pragma once #include "esp_err.h" #include #include /* 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);