TuyaOS
函数
tal_flash.h 文件参考

Common process - adapter the flash api 更多...

#include "tuya_cloud_types.h"
tal_flash.h 的引用(Include)关系图:

浏览源代码.

函数

OPERATE_RET tal_flash_erase (UINT32_T addr, UINT32_T size)
 erase flash 更多...
 
OPERATE_RET tal_flash_get_one_type_info (TUYA_FLASH_TYPE_E type, TUYA_FLASH_BASE_INFO_T *info)
 get one flash type info 更多...
 
OPERATE_RET tal_flash_lock (UINT32_T addr, UINT32_T size)
 lock flash 更多...
 
OPERATE_RET tal_flash_read (UINT32_T addr, UCHAR_T *dst, UINT32_T size)
 read flash 更多...
 
OPERATE_RET tal_flash_unlock (UINT32_T addr, UINT32_T size)
 unlock flash 更多...
 
OPERATE_RET tal_flash_write (UINT32_T addr, CONST UCHAR_T *src, UINT32_T size)
 write flash 更多...
 

详细描述

Common process - adapter the flash api

版本
0.1
日期
2021-08-06

函数说明

◆ tal_flash_erase()

OPERATE_RET tal_flash_erase ( UINT32_T  addr,
UINT32_T  size 
)

erase flash

参数
[in]addrflash address
[in]sizesize of flash block
注解
This API is used for erasing flash.
返回
OPRT_OK on success. Others on error, please refer to tuya_error_code.h

◆ tal_flash_get_one_type_info()

OPERATE_RET tal_flash_get_one_type_info ( TUYA_FLASH_TYPE_E  type,
TUYA_FLASH_BASE_INFO_T *  info 
)

get one flash type info

参数
[in]typeflash type
[in]infoflash info
注解
This API is used for unlock flash.
返回
OPRT_OK on success. Others on error, please refer to tuya_error_code.h

◆ tal_flash_lock()

OPERATE_RET tal_flash_lock ( UINT32_T  addr,
UINT32_T  size 
)

lock flash

参数
[in]addrlock begin addr
[in]sizelock area size
注解
This API is used for lock flash.
返回
OPRT_OK on success. Others on error, please refer to tuya_error_code.h

◆ tal_flash_read()

OPERATE_RET tal_flash_read ( UINT32_T  addr,
UCHAR_T *  dst,
UINT32_T  size 
)

read flash

参数
[in]addrflash address
[out]dstpointer of buffer
[in]sizesize of buffer
注解
This API is used for reading flash.
返回
OPRT_OK on success. Others on error, please refer to tuya_error_code.h

◆ tal_flash_unlock()

OPERATE_RET tal_flash_unlock ( UINT32_T  addr,
UINT32_T  size 
)

unlock flash

参数
[in]addrunlock begin addr
[in]sizeunlock area size
注解
This API is used for unlock flash.
返回
OPRT_OK on success. Others on error, please refer to tuya_error_code.h

◆ tal_flash_write()

OPERATE_RET tal_flash_write ( UINT32_T  addr,
CONST UCHAR_T *  src,
UINT32_T  size 
)

write flash

参数
[in]addrflash address
[in]srcpointer of buffer
[in]sizesize of buffer
注解
This API is used for writing flash.
返回
OPRT_OK on success. Others on error, please refer to tuya_error_code.h