nRF Connect SDK API 3.3.99
Loading...
Searching...
No Matches
dect_net_l2_shell_util.h
Go to the documentation of this file.
1/*
2 * Copyright (c) 2025 Nordic Semiconductor ASA
3 *
4 * SPDX-License-Identifier: LicenseRef-Nordic-5-Clause
5 */
6
7#ifndef DECT_NET_L2_SHELL_UTIL_H
8#define DECT_NET_L2_SHELL_UTIL_H
9
10#include <stdarg.h>
11#include <stddef.h>
12#include <stdbool.h>
13
14/* Forward declarations */
15struct shell;
17
25typedef void (*dect_net_l2_shell_print_fn_t)(const struct shell *shell, const char *fmt, ...);
26
34typedef void (*dect_net_l2_shell_vprint_fn_t)(const struct shell *shell, const char *fmt,
35 va_list args);
36
45
60
62 size_t out_str_buff_len);
63
64#endif /* DECT_NET_L2_SHELL_UTIL_H */
int dect_net_l2_shell_init(const struct dect_net_l2_shell_print_fns *print_fns)
Initialize l2_shell library with custom print functions.
void(* dect_net_l2_shell_vprint_fn_t)(const struct shell *shell, const char *fmt, va_list args)
Print function pointer type for variadic arguments.
Definition dect_net_l2_shell_util.h:34
void(* dect_net_l2_shell_print_fn_t)(const struct shell *shell, const char *fmt,...)
Print function pointer type matching shell_print signature.
Definition dect_net_l2_shell_util.h:25
char * dect_net_l2_shell_util_mac_err_to_string(enum dect_status_values status, char *out_str_buff, size_t out_str_buff_len)
dect_status_values
DECT-2020 NR Part 4: MAC specification.
Definition dect_net_l2.h:58
dect_net_l2_shell_print_fn_t warn_fn
Definition dect_net_l2_shell_util.h:43
dect_net_l2_shell_print_fn_t error_fn
Definition dect_net_l2_shell_util.h:42
dect_net_l2_shell_print_fn_t print_fn
Definition dect_net_l2_shell_util.h:41
Structure for custom print functions.
Definition dect_net_l2_shell_util.h:40