Zephyr API Documentation
3.6.99
A Scalable Open Source RTOS
|
Modem PPP. More...
Macros | |
#define | MODEM_PPP_DEFINE(_name, _init_iface, _prio, _mtu, _buf_size) |
Define a modem PPP module 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_PPP_DEFINE | ( | _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.
_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 |
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 | ) |