luat_soc_sdk_2024 V1.0
luat_flash.h
浏览该文件的文档.
1
2#ifndef LUAT_flash_H
3#define LUAT_flash_H
4#include "luat_base.h"
18int luat_flash_read(char* buff, size_t addr, size_t len);
19
28int luat_flash_write(char* buff, size_t addr, size_t len);
29
37int luat_flash_erase(size_t addr, size_t len);
38
39
45size_t luat_flash_get_fskv_addr(size_t *len);
46
50#endif
int luat_flash_read(char *buff, size_t addr, size_t len)
读取指定区域的Flash数据
int luat_flash_erase(size_t addr, size_t len)
抹除指定区域的flash数据
int luat_flash_write(char *buff, size_t addr, size_t len)
写入指定区域的flash数据
size_t luat_flash_get_fskv_addr(size_t *len)
获取kv起始地址与长度