47 lines
857 B
C
47 lines
857 B
C
#pragma once
|
|
|
|
#include <stdbool.h>
|
|
#include <stdint.h>
|
|
#include "esp_err.h"
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
|
|
/**
|
|
* @brief Initialize CSI Manager state
|
|
*/
|
|
void csi_mgr_init(void);
|
|
|
|
/**
|
|
* @brief Enable CSI capture asynchronously
|
|
* Spawns a task to wait 2 seconds (to let connection settle) then enables CSI.
|
|
* Safe to call from Event Handlers.
|
|
*/
|
|
void csi_mgr_enable_async(void);
|
|
|
|
/**
|
|
* @brief Disable CSI capture immediately
|
|
*/
|
|
void csi_mgr_disable(void);
|
|
|
|
/**
|
|
* @brief Dump collected CSI data to UART asynchronously
|
|
* Spawns a task that waits 20s then dumps data (simulating your original logic).
|
|
*/
|
|
void csi_mgr_schedule_dump(void);
|
|
|
|
/**
|
|
* @brief Check if CSI is currently enabled
|
|
*/
|
|
bool csi_mgr_is_enabled(void);
|
|
|
|
/**
|
|
* @brief Get total packet count (stats)
|
|
*/
|
|
uint32_t csi_mgr_get_packet_count(void);
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|