Zephyr API Documentation 4.0.0
A Scalable Open Source RTOS
|
Zephyr Memory Storage file system structure. More...
#include <zms.h>
Data Fields | |
off_t | offset |
File system offset in flash. | |
uint64_t | ate_wra |
Allocation Table Entry (ATE) write address. | |
uint64_t | data_wra |
Data write address. | |
uint32_t | sector_size |
Storage system is split into sectors. | |
uint32_t | sector_count |
Number of sectors in the file system. | |
uint8_t | sector_cycle |
Current cycle counter of the active sector (pointed to by ate_wra ) | |
bool | ready |
Flag indicating if the file system is initialized. | |
struct k_mutex | zms_lock |
Mutex used to lock flash writes. | |
const struct device * | flash_device |
Flash device runtime structure. | |
const struct flash_parameters * | flash_parameters |
Flash memory parameters structure. | |
size_t | ate_size |
Size of an Allocation Table Entry. | |
Zephyr Memory Storage file system structure.
size_t zms_fs::ate_size |
Size of an Allocation Table Entry.
uint64_t zms_fs::ate_wra |
Allocation Table Entry (ATE) write address.
Addresses are stored as uint64_t
:
uint64_t zms_fs::data_wra |
Data write address.
const struct device* zms_fs::flash_device |
Flash device runtime structure.
const struct flash_parameters* zms_fs::flash_parameters |
Flash memory parameters structure.
off_t zms_fs::offset |
File system offset in flash.
bool zms_fs::ready |
Flag indicating if the file system is initialized.
uint32_t zms_fs::sector_count |
Number of sectors in the file system.
uint8_t zms_fs::sector_cycle |
Current cycle counter of the active sector (pointed to by ate_wra
)
uint32_t zms_fs::sector_size |
Storage system is split into sectors.
The sector size must be a multiple of erase-block-size
if the device has erase capabilities
struct k_mutex zms_fs::zms_lock |
Mutex used to lock flash writes.