Fork of mbed-dev build 137, last build before FAT file system appears to be broken. Also reduced HSE timeout time in STM4XX HAL

Fork of mbed-dev by mbed official

Embed: (wiki syntax)

« Back to documentation index

Stream Class Reference

Stream Class Reference
[Drivers]

File stream. More...

#include <Stream.h>

Inherits mbed::FileLike.

Inherited by Serial.

Protected Member Functions

virtual int close ()
 Close the file.
virtual ssize_t write (const void *buffer, size_t length)
 Write the contents of a buffer to the file.
virtual ssize_t read (void *buffer, size_t length)
 Function read Reads the contents of the file into a buffer.
virtual off_t lseek (off_t offset, int whence)
 Move the file position to a given offset from a given location.
virtual int isatty ()
 Check if the handle is for a interactive terminal device.
virtual int fsync ()
 Flush any buffers associated with the FileHandle, ensuring it is up to date on disk.
virtual void lock ()
 Acquire exclusive access to this object.
virtual void unlock ()
 Release exclusive access to this object.

Detailed Description

File stream.

Synchronization level: Set by subclass

Definition at line 35 of file Stream.h.