Zephyr API Documentation  3.6.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
11extern "C" {
12#endif
13
14#define CONSOLE_MAX_LINE_LEN CONFIG_CONSOLE_INPUT_MAX_LINE_LEN
15
23 intptr_t _unused;
28};
29
42typedef 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_ */
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
#define CONSOLE_MAX_LINE_LEN
Definition: console.h:14
__INTPTR_TYPE__ intptr_t
Definition: stdint.h:104
__UINT8_TYPE__ uint8_t
Definition: stdint.h:88
Console input representation.
Definition: console.h:21
uint8_t is_mcumgr
Whether this is an mcumgr command.
Definition: console.h:25
char line[CONFIG_CONSOLE_INPUT_MAX_LINE_LEN]
Buffer where the input line is recorded.
Definition: console.h:27
Definition: kernel.h:2388