nRF Connect SDK API 3.3.99
Loading...
Searching...
No Matches
at_shell_internal.h
Go to the documentation of this file.
1/*
2 * Copyright (c) 2026 Nordic Semiconductor ASA
3 *
4 * SPDX-License-Identifier: LicenseRef-Nordic-5-Clause
5 */
6
7#ifndef AT_SHELL_INTERNAL_H__
8#define AT_SHELL_INTERNAL_H__
9
10#include <zephyr/kernel.h>
11#include <stdbool.h>
12
13struct shell;
14
15/* AT command mode (if enabled) */
16#if defined(CONFIG_AT_SHELL_CMD_MODE)
17enum at_shell_cmd_mode_termination {
18 AT_SHELL_CMD_MODE_TERM_NULL = 0,
19 AT_SHELL_CMD_MODE_TERM_CR = 1,
20 AT_SHELL_CMD_MODE_TERM_LF = 2,
21 AT_SHELL_CMD_MODE_TERM_CR_LF = 3,
22};
23
24struct at_shell_cmd_mode_config {
25 enum at_shell_cmd_mode_termination termination;
26 bool echo;
27};
28
29struct k_work_q *at_shell_work_q_get(void);
30void at_shell_submit_at_cmd_mode_work(struct k_work *work);
31
32int at_shell_cmd_mode_start(const struct shell *sh, const struct at_shell_cmd_mode_config *cfg);
33#endif /* CONFIG_AT_SHELL_CMD_MODE */
34
35#endif /* AT_SHELL_INTERNAL_H__ */