Zephyr API Documentation 4.4.99
A Scalable Open Source RTOS
Loading...
Searching...
No Matches
user_pipe.h File Reference

Go to the source code of this file.

Functions

int modem_at_user_pipe_claim (struct modem_chat *chat, k_timeout_t timeout)
 Claim the AT command user pipe to run commands.
void modem_at_user_pipe_release (void)
 Release the AT command user pipe to other users.

Function Documentation

◆ modem_at_user_pipe_claim()

int modem_at_user_pipe_claim ( struct modem_chat * chat,
k_timeout_t timeout )

Claim the AT command user pipe to run commands.

Note
This function will not block if the underlying pipe is not opened
All pending data in the pipe is drained before the chat instance is attached
Parameters
chatChat instance that will be used with the user pipe
timeoutMaximum duration to wait for other users to release the pipe
Return values
0On success
-EPERMModem is not ready
-EBUSYUser pipe already claimed

◆ modem_at_user_pipe_release()

void modem_at_user_pipe_release ( void )

Release the AT command user pipe to other users.

Must be called after modem_at_user_pipe_claim when pipe is no longer in use.