Zephyr API Documentation
4.0.99
A Scalable Open Source RTOS
Loading...
Searching...
No Matches
console.h
Go to the documentation of this file.
1
/*
2
* Copyright (c) 2017 Intel Corporation
3
*
4
* SPDX-License-Identifier: Apache-2.0
5
*/
6
7
#ifndef ZEPHYR_INCLUDE_DRIVERS_CONSOLE_CONSOLE_H_
8
#define ZEPHYR_INCLUDE_DRIVERS_CONSOLE_CONSOLE_H_
9
10
#ifdef __cplusplus
11
extern
"C"
{
12
#endif
13
14
#define CONSOLE_MAX_LINE_LEN CONFIG_CONSOLE_INPUT_MAX_LINE_LEN
15
21
struct
console_input
{
23
intptr_t
_unused;
25
uint8_t
is_mcumgr
: 1;
27
char
line
[
CONSOLE_MAX_LINE_LEN
];
28
};
29
42
typedef
void (*
console_input_fn
)(
struct
k_fifo
*avail,
struct
k_fifo
*lines,
43
uint8_t
(*completion)(
char
*str,
uint8_t
len));
44
45
#ifdef __cplusplus
46
}
47
#endif
48
49
#endif
/* ZEPHYR_INCLUDE_DRIVERS_CONSOLE_CONSOLE_H_ */
console_input_fn
void(* console_input_fn)(struct k_fifo *avail, struct k_fifo *lines, uint8_t(*completion)(char *str, uint8_t len))
Console input processing handler signature.
Definition
console.h:42
CONSOLE_MAX_LINE_LEN
#define CONSOLE_MAX_LINE_LEN
Definition
console.h:14
intptr_t
__INTPTR_TYPE__ intptr_t
Definition
stdint.h:104
uint8_t
__UINT8_TYPE__ uint8_t
Definition
stdint.h:88
console_input
Console input representation.
Definition
console.h:21
console_input::is_mcumgr
uint8_t is_mcumgr
Whether this is an mcumgr command.
Definition
console.h:25
console_input::line
char line[CONFIG_CONSOLE_INPUT_MAX_LINE_LEN]
Buffer where the input line is recorded.
Definition
console.h:27
k_fifo
Definition
kernel.h:2474
zephyr
drivers
console
console.h
Generated on Sun Dec 22 2024 09:02:42 for Zephyr API Documentation by
1.12.0