- Dual-Core Architecture: Dedicated 1000Hz USB gaming pipeline on Core 1 and BLE/Wi-Fi/Web telemetry on Core 0. - Multi-Input BLE Host: Parsers for Xbox Wireless, Google Stadia, 8BitDo (Ultimate/Pro2/SN30), and Generic HOGP gamepads. - Multi-Console USB Emulation: Nintendo Switch, PC DirectInput, PS3, PS4, Xbox 360 (libxsm3 cryptographic challenge-response), Original Xbox, and Couch Mouse/Keyboard. - Onboard Web Portal & Captive Portal: Real-time SVG gamepad visualizer, stick deadzone calibration, button combo remapping, and Wi-Fi manager. - Low-Latency Radio Management: Interactive SoftAP toggle to drop to 0-latency gaming mode. - Dual OTA Firmware Flashing: Browser-based wireless firmware updater and automated Python OTA script. - Strict Build Quality: Clean build under -Wall -Wextra with zero warnings or errors. - Versioning & Licensing: Semantic Versioning v1.0.0 and GNU GPLv3 with Commercial Restrictions.
56 lines
1.2 KiB
C
56 lines
1.2 KiB
C
#pragma once
|
|
|
|
#include <stdint.h>
|
|
#include <stdbool.h>
|
|
#include "esp_err.h"
|
|
#include "controller_state.h"
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
|
|
/**
|
|
* @brief Initialize config server manager task (must be called once at boot in app_main).
|
|
*/
|
|
esp_err_t config_server_init(void);
|
|
|
|
/**
|
|
* @brief Asynchronously request toggling the Config AP and Web Server on/off.
|
|
* Safe to call from any FreeRTOS task or interrupt context.
|
|
*/
|
|
void config_server_request_toggle(void);
|
|
|
|
/**
|
|
* @brief Asynchronously request starting the Config AP and Web Server.
|
|
*/
|
|
void config_server_request_start(void);
|
|
|
|
/**
|
|
* @brief Asynchronously request stopping the Config AP and Web Server.
|
|
*/
|
|
void config_server_request_stop(void);
|
|
|
|
/**
|
|
* @brief Synchronous toggle alias for compatibility.
|
|
*/
|
|
void config_server_toggle(void);
|
|
|
|
/**
|
|
* @brief Check if Config AP & Web Server are currently active.
|
|
*/
|
|
bool config_server_is_active(void);
|
|
|
|
/**
|
|
* @brief Update latest controller state for web visualizer polling.
|
|
*/
|
|
void config_server_set_latest_state(const controller_state_t *state);
|
|
|
|
/**
|
|
* @brief Check if Wi-Fi Station credentials are saved in NVS.
|
|
*/
|
|
bool config_server_has_saved_wifi(void);
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|