45#ifndef __DEV_TERMINAL_HH__
46#define __DEV_TERMINAL_HH__
55#include "params/Terminal.hh"
62class TerminalListener;
124 size_t read(uint8_t *buf,
size_t len);
126 size_t write(
const uint8_t *buf,
size_t len);
Circular buffer backed by a vector.
Base class for serial devices such as terminals.
OutputStream * terminalDump(const TerminalParams &p)
uint8_t readData() override
Read a character from the device.
Terminal(const Params &p)
void writeData(uint8_t c) override
Transmit a character from the host interface to the device.
ListenEvent * listenEvent
bool dataAvailable() const override
Check if there is pending data from the serial device.
Copyright (c) 2024 - Pranith Kumar Copyright (c) 2020 Inria All rights reserved.
std::unique_ptr< ListenSocket > ListenSocketPtr