Zephyr API Documentation 4.2.99
A Scalable Open Source RTOS
|
Modem PPP. More...
Macros | |
#define | MODEM_DEV_PPP_DEFINE(_dev, _name, _init_iface, _prio, _mtu, _buf_size) |
Define a modem PPP module and bind it to a network interface. | |
#define | MODEM_DT_INST_PPP_DEFINE(inst, _name, _init_iface, _prio, _mtu, _buf_size) |
Define a modem PPP module for cellular device tree instance. | |
#define | MODEM_PPP_DEFINE(_name, _init_iface, _prio, _mtu, _buf_size) |
Define a modem PPP module without a device and bind it to a network interface. |
Typedefs | |
typedef void(* | modem_ppp_init_iface) (struct net_if *iface) |
L2 network interface init callback. |
Functions | |
int | modem_ppp_attach (struct modem_ppp *ppp, struct modem_pipe *pipe) |
Attach pipe to instance and connect. | |
struct net_if * | modem_ppp_get_iface (struct modem_ppp *ppp) |
Get network interface modem PPP instance is bound to. | |
void | modem_ppp_release (struct modem_ppp *ppp) |
Release pipe from instance. |
Modem PPP.
#define MODEM_DEV_PPP_DEFINE | ( | _dev, | |
_name, | |||
_init_iface, | |||
_prio, | |||
_mtu, | |||
_buf_size ) |
#include <zephyr/modem/ppp.h>
Define a modem PPP module and bind it to a network interface.
This macro defines the modem_ppp instance, initializes a PPP L2 network device instance, and binds the modem_ppp instance to the PPP L2 instance.
If underlying cellular device is given, the PPP interface will manage the power state of the cellular device when starting and stopping the PPP.
_dev | Cellular device instance for power management or NULL if not used |
_name | Name of the statically defined modem_ppp instance |
_init_iface | Hook for the PPP L2 network interface init function |
_prio | Initialization priority of the PPP L2 net iface |
_mtu | Max size of net_pkt data sent and received on PPP L2 net iface |
_buf_size | Size of partial PPP frame transmit and receive buffers |
#define MODEM_DT_INST_PPP_DEFINE | ( | inst, | |
_name, | |||
_init_iface, | |||
_prio, | |||
_mtu, | |||
_buf_size ) |
#include <zephyr/modem/ppp.h>
Define a modem PPP module for cellular device tree instance.
#define MODEM_PPP_DEFINE | ( | _name, | |
_init_iface, | |||
_prio, | |||
_mtu, | |||
_buf_size ) |
#include <zephyr/modem/ppp.h>
Define a modem PPP module without a device and bind it to a network interface.
typedef void(* modem_ppp_init_iface) (struct net_if *iface) |
#include <zephyr/modem/ppp.h>
L2 network interface init callback.
int modem_ppp_attach | ( | struct modem_ppp * | ppp, |
struct modem_pipe * | pipe ) |
#include <zephyr/modem/ppp.h>
Attach pipe to instance and connect.
ppp | Modem PPP instance |
pipe | Pipe to attach to modem PPP instance |
struct net_if * modem_ppp_get_iface | ( | struct modem_ppp * | ppp | ) |
#include <zephyr/modem/ppp.h>
Get network interface modem PPP instance is bound to.
ppp | Modem PPP instance |
void modem_ppp_release | ( | struct modem_ppp * | ppp | ) |