We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 73faf5c commit 298f6d8Copy full SHA for 298f6d8
include/zephyr/drivers/flash.h
@@ -125,6 +125,18 @@ int flash_params_get_erase_cap(const struct flash_parameters *p)
125
* @{
126
*/
127
128
+/**
129
+ * @brief Flash read implementation handler type
130
+ *
131
+ * @return 0 on success or len is zero, -EINVAL if page offset doesn't exist or data
132
+ * destination is NULL
133
134
+ * @note Any necessary read protection management must be performed by
135
+ * the driver.
136
137
+ * For consistency across implementations, value check len parameter equal zero and
138
+ * return result 0 before validating the data destination parameter.
139
+ */
140
typedef int (*flash_api_read)(const struct device *dev, off_t offset,
141
void *data,
142
size_t len);
0 commit comments