1#ifndef VITROIO_SDK_FLASH_INTERFACE_H
2#define VITROIO_SDK_FLASH_INTERFACE_H
65 int read(
void* buffer, uint32_t offset, uint32_t size);
78 int write(
void* buffer, uint32_t offset, uint32_t size);
115 uint32_t maxSectorSize_;
116 uint32_t flashStartAddr_;
Class is a wrapper for mbed::FlashIAP module.
Definition: flash_interface.h:26
uint32_t getFlashSize() const
Function allows to obtain flash memory size in bytes.
uint32_t getMaxSectorSize() const
Function allows to obtain maximum size of sector in flash memory.
uint32_t getFlashStartAddress() const
Function allows to obtain flash memory start address.
int read(void *buffer, uint32_t offset, uint32_t size)
Function reads data from flash memory.
uint32_t getSectorSize(uint32_t offset) const
Function allows to obtain sector size of flash memory for specified address.
~FlashInterface()
Destructor.
FlashInterface()
Constructor initializes the interface.
int write(void *buffer, uint32_t offset, uint32_t size)
Function writes data to flash memory.
bool isValid() const
Function allows to check whether the interface is in valid state.
The namespace contains all of components of vitro-shard-sdk and components based on the sdk....
Definition: can_layer.h:9