+ Inheritance diagram for mn::device::partition_stream:
+ Collaboration diagram for mn::device::partition_stream:

Public Member Functions

 partition_stream (esp_partition_t *part)
 
virtual int erase (uint32_t sector)
 
virtual int erase (uint32_t offset, size_t size)
 
virtual int write (uint32_t offset, uint32_t *data, size_t size)
 
virtual int read (uint32_t offset, uint32_t *data, size_t size)
 

Static Public Member Functions

static esp_partition_t * find (const char *name)
 

Private Attributes

esp_partition_t * m_part
 

Constructor & Destructor Documentation

◆ partition_stream()

mn::device::partition_stream::partition_stream ( esp_partition_t *  part)
inline

Member Function Documentation

◆ erase() [1/2]

virtual int mn::device::partition_stream::erase ( uint32_t  offset,
size_t  size 
)
inlinevirtual

◆ erase() [2/2]

virtual int mn::device::partition_stream::erase ( uint32_t  sector)
inlinevirtual

◆ find()

static esp_partition_t* mn::device::partition_stream::find ( const char *  name)
inlinestatic

◆ read()

virtual int mn::device::partition_stream::read ( uint32_t  offset,
uint32_t *  data,
size_t  size 
)
inlinevirtual

◆ write()

virtual int mn::device::partition_stream::write ( uint32_t  offset,
uint32_t *  data,
size_t  size 
)
inlinevirtual

Member Data Documentation

◆ m_part

esp_partition_t* mn::device::partition_stream::m_part
private

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