VitroIO SDK
Software development kit for Vitro Shard.
Loading...
Searching...
No Matches
vitroio::sdk::FlashSpace Struct Reference

Structure representing space of flash memory. More...

#include <types.h>

Public Member Functions

 FlashSpace (uint32_t aoffset, uint32_t asectors)
 Contructor initializes the structure. More...
 

Public Attributes

uint32_t offset
 Specifies offset of flash memory in bytes. More...
 
uint32_t sectors
 Specifies size of flash memory in sectors count. More...
 

Detailed Description

Structure representing space of flash memory.

Constructor & Destructor Documentation

◆ FlashSpace()

vitroio::sdk::FlashSpace::FlashSpace ( uint32_t  aoffset,
uint32_t  asectors 
)

Contructor initializes the structure.

Parameters
aoffsetOffset value
asectorsSectors value

Member Data Documentation

◆ offset

uint32_t vitroio::sdk::FlashSpace::offset

Specifies offset of flash memory in bytes.

Note
The size of flash space is specified in sectors count, therefore the offset has to be aligned to the sector size (it must be an address of new sector).

◆ sectors

uint32_t vitroio::sdk::FlashSpace::sectors

Specifies size of flash memory in sectors count.