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

Go to the source code of this file.

Functions

void modem_at_user_pipe_init (struct modem_chat *chat)
 Initialise the AT command user pipe.
int modem_at_user_pipe_claim (void)
 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 ( void )

Claim the AT command user pipe to run commands.

Return values
0On success
-EPERMModem is not ready
-EBUSYUser pipe already claimed

◆ modem_at_user_pipe_init()

void modem_at_user_pipe_init ( struct modem_chat * chat)

Initialise the AT command user pipe.

Parameters
chatChat instance that will be used with the user pipe

◆ 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.