hexo/flash.h header reference
[Hardware abstraction layer module]

The source code of this header can be browsed online.

Description  

This low level API provides a way to erase and write pages in platform specific memory mapped flash memory.

This simple API is not asynchronous and is not designed to access any flash devices. This might not be available on platforms other than microcontrollers.

The Description class is the right way to access any flash device in a portable way.

Members  

Functions  

Members detail  

#define HEXO_FLASH_H_  

This macro is declared in hexo/flash.h source file, line 39.

reg_t flash_page_erase(uintptr_t addr)  

This function erases a page in the platform memory mapped flash memory. The page size is platform specific.

The function returns 0 on success.

reg_t flash_page_write(uintptr_t addr, const uint8_t *data, size_t size)  

This function writes a page in the platform memory mapped flash memory.

The function returns 0 on success. It should not fail when requested to flip bits from 0 to 1.

Valid XHTML 1.0 StrictGenerated by diaxen on Wed Oct 17 21:18:38 2018 using MkDoc