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
11extern "C" {
12#endif
13
14#define CONSOLE_MAX_LINE_LEN CONFIG_CONSOLE_INPUT_MAX_LINE_LEN
15
23 intptr_t _unused;
28};
29
44typedef 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_ */
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
#define CONSOLE_MAX_LINE_LEN
Definition: console.h:14
void
Definition: eswifi_shell.c:15
__INTPTR_TYPE__ intptr_t
Definition: stdint.h:74
__UINT8_TYPE__ uint8_t
Definition: stdint.h:58
Console input representation.
Definition: console.h:21
uint8_t is_mcumgr
Definition: console.h:25
char line[CONFIG_CONSOLE_INPUT_MAX_LINE_LEN]
Definition: console.h:27
Definition: kernel.h:2153