Zephyr API Documentation 4.0.0-rc3
A Scalable Open Source RTOS
|
Modem pipelink . More...
Macros | |
#define | MODEM_PIPELINK_DT_DECLARE(node_id, name) |
Declare pipelink from devicetree node identifier and name. | |
#define | MODEM_PIPELINK_DT_DEFINE(node_id, name) |
Define pipelink from devicetree node identifier and name. | |
#define | MODEM_PIPELINK_DT_GET(node_id, name) |
Get pointer to pipelink from devicetree node identifier and name. | |
Typedefs | |
typedef void(* | modem_pipelink_callback) (struct modem_pipelink *link, enum modem_pipelink_event event, void *user_data) |
Pipelink callback definition. | |
Enumerations | |
enum | modem_pipelink_event { MODEM_PIPELINK_EVENT_CONNECTED = 0 , MODEM_PIPELINK_EVENT_DISCONNECTED } |
Pipelink event. More... | |
Functions | |
void | modem_pipelink_attach (struct modem_pipelink *link, modem_pipelink_callback callback, void *user_data) |
Attach callback to pipelink. | |
bool | modem_pipelink_is_connected (struct modem_pipelink *link) |
Check whether pipelink pipe is connected. | |
struct modem_pipe * | modem_pipelink_get_pipe (struct modem_pipelink *link) |
Get pipe from pipelink. | |
void | modem_pipelink_release (struct modem_pipelink *link) |
Clear callback. | |
MODEM_PIPELINK_DT_INST macros | |
Device driver instance variants of MODEM_PIPELINK_DT macros | |
#define | MODEM_PIPELINK_DT_INST_DECLARE(inst, name) |
#define | MODEM_PIPELINK_DT_INST_DEFINE(inst, name) |
#define | MODEM_PIPELINK_DT_INST_GET(inst, name) |
Modem pipelink .
#define MODEM_PIPELINK_DT_DECLARE | ( | node_id, | |
name ) |
#include <zephyr/modem/pipelink.h>
Declare pipelink from devicetree node identifier and name.
node_id | Devicetree node identifier |
name | Pipelink name |
#define MODEM_PIPELINK_DT_DEFINE | ( | node_id, | |
name ) |
#include <zephyr/modem/pipelink.h>
Define pipelink from devicetree node identifier and name.
node_id | Devicetree node identifier |
name | Pipelink name |
#define MODEM_PIPELINK_DT_GET | ( | node_id, | |
name ) |
#include <zephyr/modem/pipelink.h>
Get pointer to pipelink from devicetree node identifier and name.
node_id | Devicetree node identifier |
name | Pipelink name |
#define MODEM_PIPELINK_DT_INST_DECLARE | ( | inst, | |
name ) |
#include <zephyr/modem/pipelink.h>
#define MODEM_PIPELINK_DT_INST_DEFINE | ( | inst, | |
name ) |
#include <zephyr/modem/pipelink.h>
#define MODEM_PIPELINK_DT_INST_GET | ( | inst, | |
name ) |
#include <zephyr/modem/pipelink.h>
typedef void(* modem_pipelink_callback) (struct modem_pipelink *link, enum modem_pipelink_event event, void *user_data) |
#include <zephyr/modem/pipelink.h>
Pipelink callback definition.
link | Modem pipelink instance |
event | Modem pipelink event |
user_data | User data passed to modem_pipelink_attach() |
enum modem_pipelink_event |
#include <zephyr/modem/pipelink.h>
Pipelink event.
Enumerator | |
---|---|
MODEM_PIPELINK_EVENT_CONNECTED | Modem pipe has been connected and can be opened. |
MODEM_PIPELINK_EVENT_DISCONNECTED | Modem pipe has been disconnected and can't be opened. |
void modem_pipelink_attach | ( | struct modem_pipelink * | link, |
modem_pipelink_callback | callback, | ||
void * | user_data ) |
#include <zephyr/modem/pipelink.h>
Attach callback to pipelink.
link | Pipelink instance |
callback | Pipelink callback |
user_data | User data passed to pipelink callback |
struct modem_pipe * modem_pipelink_get_pipe | ( | struct modem_pipelink * | link | ) |
#include <zephyr/modem/pipelink.h>
Get pipe from pipelink.
link | Pipelink instance |
Pointer | to pipe if pipelink has been initialized |
NULL | if pipelink has not been initialized |
bool modem_pipelink_is_connected | ( | struct modem_pipelink * | link | ) |
#include <zephyr/modem/pipelink.h>
Check whether pipelink pipe is connected.
link | Pipelink instance |
true | if pipe is connected |
false | if pipe is not connected |
void modem_pipelink_release | ( | struct modem_pipelink * | link | ) |