mn::device::system_stream Class Referenceabstract

A simple abstractes class for easy handle any flash drivers. More...

#include <mn_system.hpp>

+ Inheritance diagram for mn::device::system_stream:

Public Member Functions

virtual int erase (uint32_t sector)=0
 
virtual int erase (uint32_t offset, size_t size)=0
 
virtual int write (uint32_t offset, uint32_t *data, size_t size)=0
 
virtual int read (uint32_t offset, uint32_t *data, size_t size)=0
 

Detailed Description

A simple abstractes class for easy handle any flash drivers.

Member Function Documentation

◆ erase() [1/2]

virtual int mn::device::system_stream::erase ( uint32_t  offset,
size_t  size 
)
pure virtual

◆ erase() [2/2]

virtual int mn::device::system_stream::erase ( uint32_t  sector)
pure virtual

◆ read()

virtual int mn::device::system_stream::read ( uint32_t  offset,
uint32_t *  data,
size_t  size 
)
pure virtual

◆ write()

virtual int mn::device::system_stream::write ( uint32_t  offset,
uint32_t *  data,
size_t  size 
)
pure virtual

The documentation for this class was generated from the following file: