Zephyr API Documentation
2.7.0-rc2
A Scalable Open Source RTOS
|
Public API for flash map. More...
Go to the source code of this file.
Data Structures | |
struct | flash_area |
Flash partition. More... | |
struct | flash_sector |
Structure for transfer flash sector boundaries. More... | |
Macros | |
#define | SOC_FLASH_0_ID 0 |
#define | SPI_FLASH_0_ID 1 |
#define | FLASH_AREA_LABEL_EXISTS(label) DT_HAS_FIXED_PARTITION_LABEL(label) |
#define | FLASH_AREA_LABEL_STR(lbl) DT_PROP(DT_NODE_BY_FIXED_PARTITION_LABEL(lbl), label) |
#define | FLASH_AREA_ID(label) DT_FIXED_PARTITION_ID(DT_NODE_BY_FIXED_PARTITION_LABEL(label)) |
#define | FLASH_AREA_OFFSET(label) DT_REG_ADDR(DT_NODE_BY_FIXED_PARTITION_LABEL(label)) |
#define | FLASH_AREA_SIZE(label) DT_REG_SIZE(DT_NODE_BY_FIXED_PARTITION_LABEL(label)) |
Typedefs | |
typedef void(* | flash_area_cb_t) (const struct flash_area *fa, void *user_data) |
Functions | |
int | flash_area_open (uint8_t id, const struct flash_area **fa) |
Retrieve partitions flash area from the flash_map. More... | |
void | flash_area_close (const struct flash_area *fa) |
Close flash_area. More... | |
int | flash_area_read (const struct flash_area *fa, off_t off, void *dst, size_t len) |
Read flash area data. More... | |
int | flash_area_write (const struct flash_area *fa, off_t off, const void *src, size_t len) |
Write data to flash area. More... | |
int | flash_area_erase (const struct flash_area *fa, off_t off, size_t len) |
Erase flash area. More... | |
uint8_t | flash_area_align (const struct flash_area *fa) |
Get write block size of the flash area. More... | |
int | flash_area_get_sectors (int fa_id, uint32_t *count, struct flash_sector *sectors) |
void | flash_area_foreach (flash_area_cb_t user_cb, void *user_data) |
int | flash_area_has_driver (const struct flash_area *fa) |
const struct device * | flash_area_get_device (const struct flash_area *fa) |
uint8_t | flash_area_erased_val (const struct flash_area *fa) |
Public API for flash map.