1 /***************************************************************************/ /** 2 * @file 3 * @brief 4 ******************************************************************************* 5 * # License 6 * <b>Copyright 2019 Silicon Laboratories Inc. www.silabs.com</b> 7 ******************************************************************************* 8 * 9 * SPDX-License-Identifier: Zlib 10 * 11 * The licensor of this software is Silicon Laboratories Inc. 12 * 13 * This software is provided 'as-is', without any express or implied 14 * warranty. In no event will the authors be held liable for any damages 15 * arising from the use of this software. 16 * 17 * Permission is granted to anyone to use this software for any purpose, 18 * including commercial applications, and to alter it and redistribute it 19 * freely, subject to the following restrictions: 20 * 21 * 1. The origin of this software must not be misrepresented; you must not 22 * claim that you wrote the original software. If you use this software 23 * in a product, an acknowledgment in the product documentation would be 24 * appreciated but is not required. 25 * 2. Altered source versions must be plainly marked as such, and must not be 26 * misrepresented as being the original software. 27 * 3. This notice may not be removed or altered from any source distribution. 28 * 29 ******************************************************************************/ 30 #pragma once 31 #include "sl_si91x_types.h" 32 33 #define SL_NET_EVENT_DISPATCH_HANDLER(data, packet) sl_net_si91x_event_dispatch_handler(data, packet) 34 35 void sl_net_si91x_event_dispatch_handler(sli_si91x_queue_packet_t *data, sl_si91x_packet_t *packet); 36 37 #define SLI_NETWORK_CLEANUP_HANDLER() sli_si91x_network_cleanup_handler() 38 39 void sli_si91x_network_cleanup_handler(); 40 41 #if defined(SL_WIFI_COMPONENT_INCLUDED) 42 /* 43 This function flushes all transmit (TX) command and data queues for sockets that match a given destination IP address. 44 It iterates through all available sockets, checks if a socket's remote address matches the specified IP address, 45 and then flushes the command and data queues for that socket based on the provided frame_status*/ 46 sl_status_t sli_si91x_flush_all_socket_tx_queues_based_on_dest_ip_address(uint16_t frame_status, 47 const sl_ip_address_t *dest_ip_add); 48 #endif 49