Zephyr API Documentation 4.0.0-rc3
A Scalable Open Source RTOS
Loading...
Searching...
No Matches
conn_mgr_connectivity_impl.h File Reference

API for defining conn_mgr connectivity implementations (allowing ifaces to be used with conn_mgr_connectivity). More...

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_bindingconn_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.
 

Detailed Description

API for defining conn_mgr connectivity implementations (allowing ifaces to be used with conn_mgr_connectivity).