- Driver acks each completed DDP frame; the test waits for the acks before broadcasting the sync. - Sync listener on UDP 4049: a frame is held until the next sync, then shown. - DDP pixels are shown at full brightness, ignoring the device brightness settings. - "DDP and sync receive on" setting (NVS, network API, web UI); off ignores DDP and sync packets. - ddp_test.py: finds devices on the subnet, drives them in lockstep at a fixed rate, runs animations. - /api/ddp reports sync counters for diagnosis. - Includes in-progress WebSocket, multi-driver web UI and Wi-Fi work from the same tree. Co-Authored-By: Claude Haiku 5.5 <noreply@anthropic.com>
68 lines
1.7 KiB
C
68 lines
1.7 KiB
C
/*
|
|
* SPDX-FileCopyrightText: 2025 Espressif Systems (Shanghai) CO LTD
|
|
*
|
|
* SPDX-License-Identifier: Apache-2.0
|
|
*/
|
|
#pragma once
|
|
|
|
#include <stddef.h>
|
|
#include "mdns_private.h"
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
|
|
/**
|
|
* @brief Initialize the mDNS network interfaces
|
|
*
|
|
* @note Called from mdns_init() in mdns.c
|
|
*/
|
|
esp_err_t mdns_priv_netif_init(void);
|
|
|
|
/**
|
|
* @brief Deinitialize the mDNS network interfaces
|
|
*
|
|
* @note Called from mdns_init() in mdns.c
|
|
*/
|
|
esp_err_t mdns_priv_netif_deinit(void);
|
|
|
|
/**
|
|
* @brief Unregister predefined (default) network interfaces
|
|
*
|
|
* @note Called from mdns_free() in mdns.c
|
|
*
|
|
*/
|
|
void mdns_priv_netif_unregister_predefined_handlers(void);
|
|
|
|
/**
|
|
* @brief Clean the internal netif for the particular interface
|
|
*
|
|
* @note Called from mdns_responder on disabling pcbs
|
|
*/
|
|
void mdns_priv_netif_disable(mdns_if_t tcpip_if);
|
|
|
|
/**
|
|
* @brief Returns potentially duplicated interface
|
|
*
|
|
* @note Called from multiple places where Rx and Tx packets are processed
|
|
*/
|
|
mdns_if_t mdns_priv_netif_get_other_interface(mdns_if_t tcpip_if);
|
|
|
|
/**
|
|
* @brief Gets the actual esp_netif pointer from the internal network interface list
|
|
*
|
|
* The supplied ordinal number could
|
|
* - point to a predef netif -> "STA", "AP", "ETH"
|
|
* - if no entry in the list (NULL) -> check if the system added this netif
|
|
* - point to a custom netif -> just return the entry in the list
|
|
* - users is responsible for the lifetime of this netif (to be valid between mdns-init -> deinit)
|
|
*
|
|
* @param tcpip_if Ordinal number of the interface
|
|
* @return Pointer ot the esp_netif object if the interface is available, NULL otherwise
|
|
*/
|
|
esp_netif_t *mdns_priv_get_esp_netif(mdns_if_t tcpip_if);
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|