Zephyr Project API 3.7.0
A Scalable Open Source RTOS
Loading...
Searching...
No Matches
pipelink.h File Reference

Go to the source code of this file.

Macros

#define MODEM_PIPELINK_DT_DECLARE(node_id, name)    extern struct modem_pipelink MODEM_PIPELINK_DT_SYM(node_id, name)
 Declare pipelink from devicetree node identifier and name.
 
#define MODEM_PIPELINK_DT_DEFINE(node_id, name)    struct modem_pipelink MODEM_PIPELINK_DT_SYM(node_id, name)
 Define pipelink from devicetree node identifier and name.
 
#define MODEM_PIPELINK_DT_GET(node_id, name)    (&MODEM_PIPELINK_DT_SYM(node_id, name))
 Get pointer to pipelink from devicetree node identifier and name.
 
MODEM_PIPELINK_DT_INST macros

Device driver instance variants of MODEM_PIPELINK_DT macros

#define MODEM_PIPELINK_DT_INST_DECLARE(inst, name)    MODEM_PIPELINK_DT_DECLARE(DT_DRV_INST(inst), name)
 
#define MODEM_PIPELINK_DT_INST_DEFINE(inst, name)    MODEM_PIPELINK_DT_DEFINE(DT_DRV_INST(inst), name)
 
#define MODEM_PIPELINK_DT_INST_GET(inst, name)    MODEM_PIPELINK_DT_GET(DT_DRV_INST(inst), 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.