Lines Matching +full:flash +full:- +full:id

3  * SPDX-License-Identifier: Apache-2.0
11 #include <zephyr/drivers/flash.h>
35 /** File system offset in flash */
39 * - high 4 bytes correspond to the sector
40 * - low 4 bytes are the offset in the sector
46 * `erase-block-size` if the device has erase capabilities
55 /** Mutex used to lock flash writes */
57 /** Flash device runtime structure */
59 /** Flash memory parameters structure */
84 * @retval -ERRNO Negative errno code on error
93 * @retval -ERRNO Negative errno code on error
105 * @param id ID of the entry to be written
111 * When a rewrite of the same data already stored is attempted, nothing is written to flash,
114 ssize_t zms_write(struct zms_fs *fs, uint32_t id, const void *data, size_t len);
120 * @param id ID of the entry to be deleted
122 * @retval -ERRNO Negative errno code on error
124 int zms_delete(struct zms_fs *fs, uint32_t id);
130 * @param id ID of the entry to be read
138 ssize_t zms_read(struct zms_fs *fs, uint32_t id, void *data, size_t len);
144 * @param id ID of the entry to be read
154 ssize_t zms_read_hist(struct zms_fs *fs, uint32_t id, void *data, size_t len, uint32_t cnt);
157 * @brief Gets the length of the data that is stored in an entry with a given ID
160 * @param id ID of the entry whose data length to retrieve.
165 ssize_t zms_get_data_length(struct zms_fs *fs, uint32_t id);
174 * Calculating the free space is a time-consuming operation, especially on SPI flash.
194 * It collides with ZMS's goal of avoiding any unnecessary flash erase operations.
195 * Using this routine extensively can result in premature failure of the flash device.