43 #define HD44780_MAX_ERROR 64 52 static const int FOLDER_ID = INT32_MAX;
63 virtual PropWare::ErrorCode
mount (
const uint8_t partition = 0) = 0;
68 virtual PropWare::ErrorCode
unmount () = 0;
80 printer.
println(
"Filesystem is already mounted");
83 printer.
printf(
"Unknown error: %u\n", err);
94 this->m_buf.buf = NULL;
95 this->m_buf.meta = &m_dirMeta;
99 return this->m_driver;
102 virtual uint32_t compute_tier1_from_tier2 (uint32_t tier2)
const = 0;
104 int next_file_id () {
105 return this->m_nextFileId++;
112 uint8_t get_tier1s_per_tier2_shift () {
113 return this->m_tier1sPerTier2Shift;
119 const uint16_t m_sectorSize;
120 uint8_t m_tier1sPerTier2Shift;
virtual uint16_t get_sector_size() const =0
Return the size of a sector (also known as a "block") for the given storage device.
virtual PropWare::ErrorCode unmount()=0
Unmounting will ensure that any changes are saved back to the physical device.
Interface for all filesystems, such as FAT 16/32.
static void print_error_str(const Printer &printer, const ErrorCode err)
If an error occurs, this method can be used to determine what that error actually means...
Generic definitions and functions for the Parallax Propeller.
const PropWare::Printer pwOut
Most common use of printing in PropWare applications (not thread safe; see PropWare::pwSyncOut for mu...
void printf(const char fmt[], const T first, const Targs...remaining) const
Similar in functionality to the C-standard function printf.
Container class that has formatting methods for human-readable output. This class can be constructed ...
Any device that uses blocks as hardware level abstraction.
Basic file interface for opening and closing files.
virtual PropWare::ErrorCode mount(const uint8_t partition=0)=0
Prepare a filesystem for use; All filesystems must be mounted before files can be listed or opened...
In-memory buffer containing a single block of data.
void println(const char string[]) const
Print a null-terminated string followed by a newline (' ')