nRF Connect SDK API 0.1.0
Loading...
Searching...
No Matches
wifi_ready.h
Go to the documentation of this file.
1/*
2 * Copyright (c) 2024 Nordic Semiconductor ASA
3 *
4 * SPDX-License-Identifier: LicenseRef-Nordic-5-Clause
5 */
6
7
8#ifndef __LIB_WIFI_READY_H__
9#define __LIB_WIFI_READY_H__
10
11#include <zephyr/net/net_if.h>
12
20#ifdef __cplusplus
21extern "C" {
22#endif
23
27typedef struct {
29 void (*wifi_ready_cb)(bool wifi_ready);
31 struct net_if *iface;
33 struct k_work item;
35
66
67#ifdef __cplusplus
68}
69#endif
70
75#endif /* __LIB_WIFI_READY_H__*/
int unregister_wifi_ready_callback(wifi_ready_callback_t cb, struct net_if *iface)
Unregister a callback that was registered to be called when the Wi-Fi is ready.
int register_wifi_ready_callback(wifi_ready_callback_t cb, struct net_if *iface)
Register a callback to be called when the Wi-Fi is ready.
struct net_if * iface
Definition: wifi_ready.h:31
Structure for storing a callback function to be called when the Wi-Fi is ready.
Definition: wifi_ready.h:27