Zephyr API Documentation
2.7.0-rc2
A Scalable Open Source RTOS
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
44
typedef
void
(*
console_input_fn
)(
struct
k_fifo
*avail,
struct
k_fifo
*lines,
45
uint8_t
(*completion)(
char
*str,
uint8_t
len));
46
47
#ifdef __cplusplus
48
}
49
#endif
50
51
#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:44
CONSOLE_MAX_LINE_LEN
#define CONSOLE_MAX_LINE_LEN
Definition:
console.h:14
void
void
Definition:
eswifi_shell.c:15
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:2153
include
drivers
console
console.h
Generated on Sun Oct 9 2022 09:21:56 for Zephyr API Documentation by
1.9.4