Home
last modified time | relevance | path

Searched refs:modem_pipe (Results 1 – 25 of 36) sorted by relevance

12

/Zephyr-latest/include/zephyr/modem/
Dpipe.h36 struct modem_pipe;
42 typedef void (*modem_pipe_api_callback)(struct modem_pipe *pipe, enum modem_pipe_event event,
64 struct modem_pipe { struct
80 void modem_pipe_init(struct modem_pipe *pipe, void *data, const struct modem_pipe_api *api); argument
99 int modem_pipe_open(struct modem_pipe *pipe, k_timeout_t timeout);
112 int modem_pipe_open_async(struct modem_pipe *pipe);
124 void modem_pipe_attach(struct modem_pipe *pipe, modem_pipe_api_callback callback, void *user_data);
139 int modem_pipe_transmit(struct modem_pipe *pipe, const uint8_t *buf, size_t size);
154 int modem_pipe_receive(struct modem_pipe *pipe, uint8_t *buf, size_t size);
161 void modem_pipe_release(struct modem_pipe *pipe);
[all …]
Dpipelink.h54 struct modem_pipe *pipe;
87 struct modem_pipe *modem_pipelink_get_pipe(struct modem_pipelink *link);
98 void modem_pipelink_init(struct modem_pipelink *link, struct modem_pipe *pipe);
Dcmux.h90 struct modem_pipe pipe;
129 struct modem_pipe *pipe;
229 struct modem_pipe *modem_cmux_dlci_init(struct modem_cmux *cmux, struct modem_cmux_dlci *dlci,
238 int modem_cmux_attach(struct modem_cmux *cmux, struct modem_pipe *pipe);
Dubx.h82 struct modem_pipe *pipe;
108 int modem_ubx_attach(struct modem_ubx *ubx, struct modem_pipe *pipe);
Dppp.h90 struct modem_pipe *pipe;
134 int modem_ppp_attach(struct modem_ppp *ppp, struct modem_pipe *pipe);
Dchat.h212 struct modem_pipe *pipe;
325 int modem_chat_attach(struct modem_chat *chat, struct modem_pipe *pipe);
/Zephyr-latest/subsys/modem/
Dmodem_pipe.c14 static void pipe_set_callback(struct modem_pipe *pipe, in pipe_set_callback()
24 static void pipe_call_callback(struct modem_pipe *pipe, enum modem_pipe_event event) in pipe_call_callback()
33 static uint32_t pipe_test_events(struct modem_pipe *pipe, uint32_t events) in pipe_test_events()
38 static uint32_t pipe_await_events(struct modem_pipe *pipe, in pipe_await_events()
45 static void pipe_post_events(struct modem_pipe *pipe, uint32_t events) in pipe_post_events()
50 static void pipe_clear_events(struct modem_pipe *pipe, uint32_t events) in pipe_clear_events()
55 static void pipe_set_events(struct modem_pipe *pipe, uint32_t events) in pipe_set_events()
60 static int pipe_call_open(struct modem_pipe *pipe) in pipe_call_open()
65 static int pipe_call_transmit(struct modem_pipe *pipe, const uint8_t *buf, size_t size) in pipe_call_transmit()
70 static int pipe_call_receive(struct modem_pipe *pipe, uint8_t *buf, size_t size) in pipe_call_receive()
[all …]
Dmodem_pipelink.c39 struct modem_pipe *modem_pipelink_get_pipe(struct modem_pipelink *link) in modem_pipelink_get_pipe()
52 void modem_pipelink_init(struct modem_pipelink *link, struct modem_pipe *pipe) in modem_pipelink_init()
DCMakeLists.txt10 zephyr_library_sources_ifdef(CONFIG_MODEM_PIPE modem_pipe.c)
Dmodem_ubx.c179 static void modem_ubx_pipe_callback(struct modem_pipe *pipe, enum modem_pipe_event event, in modem_ubx_pipe_callback()
284 int modem_ubx_attach(struct modem_ubx *ubx, struct modem_pipe *pipe) in modem_ubx_attach()
/Zephyr-latest/include/zephyr/modem/backend/
Dtty.h25 struct modem_pipe pipe;
38 struct modem_pipe *modem_backend_tty_init(struct modem_backend_tty *backend,
Duart.h46 struct modem_pipe pipe;
69 struct modem_pipe *modem_backend_uart_init(struct modem_backend_uart *backend,
/Zephyr-latest/tests/subsys/modem/modem_pipe/src/
Dmain.c27 struct modem_pipe pipe;
137 static struct modem_pipe *modem_backend_fake_init(struct modem_backend_fake *backend) in modem_backend_fake_init()
171 static struct modem_pipe *test_pipe;
180 static void modem_pipe_fake_handler(struct modem_pipe *pipe, enum modem_pipe_event event, in modem_pipe_fake_handler()
330 ZTEST(modem_pipe, test_async_open_close) in ZTEST() argument
341 ZTEST(modem_pipe, test_sync_open_close) in ZTEST() argument
353 ZTEST(modem_pipe, test_async_transmit) in ZTEST() argument
360 ZTEST(modem_pipe, test_sync_transmit) in ZTEST() argument
368 ZTEST(modem_pipe, test_attach) in ZTEST() argument
400 ZTEST_SUITE(modem_pipe, NULL, modem_backend_fake_setup, modem_backend_fake_before,
/Zephyr-latest/tests/subsys/modem/mock/
Dmodem_backend_mock.h25 struct modem_pipe pipe;
50 struct modem_pipe *modem_backend_mock_init(struct modem_backend_mock *mock,
Dmodem_backend_mock.c106 struct modem_pipe *modem_backend_mock_init(struct modem_backend_mock *mock, in modem_backend_mock_init()
120 struct modem_pipe *modem_backend_mock_get_pipe(struct modem_backend_mock *mock) in modem_backend_mock_get_pipe()
/Zephyr-latest/tests/subsys/modem/modem_cmux_pair/src/
Dmain.c30 static struct modem_pipe *dlci1_pipe;
31 static struct modem_pipe *dlci2_pipe;
39 static struct modem_pipe *dlci1_pipe_dce;
40 static struct modem_pipe *dlci2_pipe_dce;
53 static struct modem_pipe *bus_mock_pipe;
54 static struct modem_pipe *bus_mock_pipe_dce;
64 static void test_dlci1_pipe_cb(struct modem_pipe *pipe, enum modem_pipe_event event, in test_dlci1_pipe_cb()
85 static void test_dlci2_pipe_cb(struct modem_pipe *pipe, enum modem_pipe_event event, in test_dlci2_pipe_cb()
105 static void test_dlci1_pipe_cb_dce(struct modem_pipe *pipe, enum modem_pipe_event event, in test_dlci1_pipe_cb_dce()
126 static void test_dlci2_pipe_cb_dce(struct modem_pipe *pipe, enum modem_pipe_event event, in test_dlci2_pipe_cb_dce()
/Zephyr-latest/doc/services/modem/
Dindex.rst23 A modem backend will internally contain an instance of a modem_pipe
27 The modem backend will return a pointer to its internal modem_pipe
31 .. doxygengroup:: modem_pipe
/Zephyr-latest/tests/subsys/modem/backends/uart/src/
Dmain.c33 static struct modem_pipe *pipe;
47 static void modem_pipe_callback_handler(struct modem_pipe *pipe, enum modem_pipe_event event, in modem_pipe_callback_handler()
/Zephyr-latest/subsys/modem/backends/
Dmodem_backend_uart.c30 struct modem_pipe *modem_backend_uart_init(struct modem_backend_uart *backend, in modem_backend_uart_init()
Dmodem_backend_tty.c113 struct modem_pipe *modem_backend_tty_init(struct modem_backend_tty *backend, in modem_backend_tty_init()
/Zephyr-latest/tests/subsys/modem/backends/tty/src/
Dmain.c34 static struct modem_pipe *tty_pipe;
64 static void modem_pipe_callback_handler(struct modem_pipe *pipe, enum modem_pipe_event event, in modem_pipe_callback_handler()
/Zephyr-latest/tests/subsys/modem/modem_pipelink/src/
Dmain.c24 static struct modem_pipe test_pipe;
/Zephyr-latest/tests/subsys/modem/modem_cmux/src/
Dmain.c39 static struct modem_pipe *dlci1_pipe;
40 static struct modem_pipe *dlci2_pipe;
47 static struct modem_pipe *bus_mock_pipe;
58 static void test_modem_dlci1_pipe_callback(struct modem_pipe *pipe, enum modem_pipe_event event, in test_modem_dlci1_pipe_callback()
83 static void test_modem_dlci2_pipe_callback(struct modem_pipe *pipe, enum modem_pipe_event event, in test_modem_dlci2_pipe_callback()
/Zephyr-latest/drivers/gnss/
Dgnss_nmea_generic.c42 struct modem_pipe *uart_pipe;
/Zephyr-latest/drivers/modem/
Dmodem_at_shell.c88 static void at_shell_pipe_callback(struct modem_pipe *pipe, in at_shell_pipe_callback()

12