Zephyr API Documentation 4.0.99
A Scalable Open Source RTOS
|
API for defining conn_mgr connectivity implementations (allowing ifaces to be used with conn_mgr_connectivity). More...
#include <zephyr/device.h>
#include <zephyr/net/net_if.h>
#include <zephyr/sys/iterable_sections.h>
#include <zephyr/net/net_mgmt.h>
#include <zephyr/net/conn_mgr_connectivity.h>
Go to the source code of this file.
Data Structures | |
struct | conn_mgr_conn_api |
Connectivity Manager Connectivity API structure. More... | |
struct | conn_mgr_conn_impl |
Connectivity Implementation struct. More... | |
struct | conn_mgr_conn_binding |
Connectivity Manager network interface binding structure. More... | |
Macros | |
#define | CONN_MGR_CONN_DEFINE(conn_id, conn_api) |
Define a conn_mgr connectivity implementation that can be bound to network devices. | |
#define | CONN_MGR_CONN_DECLARE_PUBLIC(conn_id) |
Helper macro to make a conn_mgr connectivity implementation publicly available. | |
#define | CONN_MGR_BIND_CONN_INST(dev_id, inst, conn_id) |
Associate a connectivity implementation with an existing network device instance. | |
#define | CONN_MGR_BIND_CONN(dev_id, conn_id) |
Associate a connectivity implementation with an existing network device. | |
Functions | |
static struct conn_mgr_conn_binding * | conn_mgr_if_get_binding (struct net_if *iface) |
Retrieves the conn_mgr binding struct for a provided iface if it exists. | |
static void | conn_mgr_binding_lock (struct conn_mgr_conn_binding *binding) |
Lock the passed-in binding, making it safe to access. | |
static void | conn_mgr_binding_unlock (struct conn_mgr_conn_binding *binding) |
Unlocks the passed-in binding. | |
static void | conn_mgr_binding_set_flag (struct conn_mgr_conn_binding *binding, enum conn_mgr_if_flag flag, bool value) |
Set the value of the specified connectivity flag for the provided binding. | |
static bool | conn_mgr_binding_get_flag (struct conn_mgr_conn_binding *binding, enum conn_mgr_if_flag flag) |
Check the value of the specified connectivity flag for the provided binding. | |
API for defining conn_mgr connectivity implementations (allowing ifaces to be used with conn_mgr_connectivity).