Zephyr Project API 4.0.0
A Scalable Open Source RTOS
|
Go to the source code of this file.
Typedefs | |
typedef void(* | modem_pipe_api_callback) (struct modem_pipe *pipe, enum modem_pipe_event event, void *user_data) |
Enumerations | |
enum | modem_pipe_event { MODEM_PIPE_EVENT_OPENED = 0 , MODEM_PIPE_EVENT_RECEIVE_READY , MODEM_PIPE_EVENT_TRANSMIT_IDLE , MODEM_PIPE_EVENT_CLOSED } |
Modem pipe event. More... | |
Functions | |
int | modem_pipe_open (struct modem_pipe *pipe, k_timeout_t timeout) |
Open pipe. | |
int | modem_pipe_open_async (struct modem_pipe *pipe) |
Open pipe asynchronously. | |
void | modem_pipe_attach (struct modem_pipe *pipe, modem_pipe_api_callback callback, void *user_data) |
Attach pipe to callback. | |
int | modem_pipe_transmit (struct modem_pipe *pipe, const uint8_t *buf, size_t size) |
Transmit data through pipe. | |
int | modem_pipe_receive (struct modem_pipe *pipe, uint8_t *buf, size_t size) |
Receive data through pipe. | |
void | modem_pipe_release (struct modem_pipe *pipe) |
Clear callback. | |
int | modem_pipe_close (struct modem_pipe *pipe, k_timeout_t timeout) |
Close pipe. | |
int | modem_pipe_close_async (struct modem_pipe *pipe) |
Close pipe asynchronously. | |