18#ifndef MBED_SERIALWIREOUTPUT_H
19#define MBED_SERIALWIREOUTPUT_H
21#include "platform/platform.h"
23#if defined(DEVICE_ITM)
25#include "platform/FileHandle.h"
40 ssize_t
write(
const void *buffer,
size_t size)
override;
42 ssize_t
read(
void *buffer,
size_t size)
override
48 off_t
seek(off_t offset,
int whence = SEEK_SET)
override
off_t size() override
Get the size of the file.
ssize_t write(const void *buffer, size_t size) override
Write the contents of a buffer to a file.
off_t seek(off_t offset, int whence=SEEK_SET) override
Move the file position to a given offset from from a given location.
int close() override
Close a file.
ssize_t read(void *buffer, size_t size) override
Read the contents of a file into a buffer.
int isatty() override
Check if the file in an interactive terminal device.