Zephyr API Documentation
3.0.0
A Scalable Open Source RTOS
3.0.0
Toggle main menu visibility
Main Page
Related Pages
Modules
Data Structures
Data Structures
Data Structure Index
Data Fields
All
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Functions
Variables
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Enumerator
Files
File List
Globals
All
$
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Functions
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Variables
$
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
z
Typedefs
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
z
Enumerations
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
r
s
t
u
v
w
x
Enumerator
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
z
Macros
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
z
•
All
Data Structures
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Macros
Modules
Pages
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:74
uint8_t
__UINT8_TYPE__ uint8_t
Definition:
stdint.h:58
console_input
Console input representation.
Definition:
console.h:21
console_input::is_mcumgr
uint8_t is_mcumgr
Definition:
console.h:25
console_input::line
char line[CONFIG_CONSOLE_INPUT_MAX_LINE_LEN]
Definition:
console.h:27
k_fifo
Definition:
kernel.h:2116
include
drivers
console
console.h
Generated on Mon Feb 21 2022 22:43:01 for Zephyr API Documentation by
1.9.2