Zephyr API Documentation  3.7.0
A Scalable Open Source RTOS
Loading...
Searching...
No Matches
console.h
Go to the documentation of this file.
1/*
2 * Copyright (c) 2017 Linaro Limited
3 *
4 * SPDX-License-Identifier: Apache-2.0
5 */
6
7#ifndef ZEPHYR_INCLUDE_CONSOLE_CONSOLE_H_
8#define ZEPHYR_INCLUDE_CONSOLE_CONSOLE_H_
9
10#include <sys/types.h>
11#include <zephyr/types.h>
12#include <zephyr/kernel.h>
13
14#ifdef __cplusplus
15extern "C" {
16#endif
17
35int console_init(void);
36
48ssize_t console_read(void *dummy, void *buf, size_t size);
49
60ssize_t console_write(void *dummy, const void *buf, size_t size);
61
76
84int console_putchar(char c);
85
94
111char *console_getline(void);
112
113#ifdef __cplusplus
114}
115#endif
116
121#endif /* ZEPHYR_INCLUDE_CONSOLE_CONSOLE_H_ */
int console_init(void)
Initialize console device.
ssize_t console_write(void *dummy, const void *buf, size_t size)
Write data to console.
ssize_t console_read(void *dummy, void *buf, size_t size)
Read data from console.
int console_getchar(void)
Get next char from console input buffer.
char * console_getline(void)
Get next line from console input buffer.
int console_putchar(char c)
Output a char to console (buffered).
void console_getline_init(void)
Initialize console_getline() call.
Public kernel APIs.
__SIZE_TYPE__ ssize_t
Definition: types.h:28