CardSight 0.1.0
C API reference for the CardSight firmware and application
Loading...
Searching...
No Matches
console.h
Go to the documentation of this file.
1/* SPDX-License-Identifier: GPL-2.0-or-later */
6
7#ifndef CARDSIGHT_CONSOLE_H
8#define CARDSIGHT_CONSOLE_H
9
10#include <stddef.h>
11
21void console_write(const char *data, size_t length);
29int console_read(int timeout_ms);
40
41#endif /* CARDSIGHT_CONSOLE_H */
void console_write(const char *data, size_t length)
Write bytes to the console.
int console_start_receive(void)
Start interrupt-driven console input.
int console_read(int timeout_ms)
Read one byte from the console.