TuyaOS
结构体 | 宏定义 | 类型定义 | 函数
tuya_hal_storage.h 文件参考

Common process - Initialization 更多...

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

浏览源代码.

结构体

struct  UF_PARTITION_TABLE_S
 UF description 更多...
 

宏定义

#define PARTATION_NUM_MAX   3
 
#define tuya_hal_flash_erase(addr, size)   tal_flash_erase(addr, size)
 Erase flash 更多...
 
#define tuya_hal_flash_read(addr, dst, size)   tal_flash_read(addr, dst, size)
 Read flash 更多...
 
#define tuya_hal_flash_write(addr, src, size)   tal_flash_write(addr, src, size)
 Write flash 更多...
 

类型定义

typedef UF_PARTITION_TABLE_S PARTITION_TABLE_S
 

函数

PARTITION_TABLE_Stuya_hal_get_rcd_flash_desc (void)
 get rcd flash description 更多...
 
UNI_STORAGE_DESC_Stuya_hal_storage_get_desc (void)
 Get description of storage 更多...
 
UF_PARTITION_TABLE_Stuya_hal_uf_get_desc (void)
 Get UF file description 更多...
 

详细描述

Common process - Initialization

版本
0.1
日期
2020-11-09

宏定义说明

◆ tuya_hal_flash_erase

#define tuya_hal_flash_erase (   addr,
  size 
)    tal_flash_erase(addr, 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

◆ tuya_hal_flash_read

#define tuya_hal_flash_read (   addr,
  dst,
  size 
)    tal_flash_read(addr, dst, 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

◆ tuya_hal_flash_write

#define tuya_hal_flash_write (   addr,
  src,
  size 
)    tal_flash_write(addr, src, size)

Write flash

参数
[in]addrflash address
[in]srcpointer 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

函数说明

◆ tuya_hal_get_rcd_flash_desc()

PARTITION_TABLE_S * tuya_hal_get_rcd_flash_desc ( void  )

get rcd flash description

返回
pointer to descrtion of rcd flash

◆ tuya_hal_storage_get_desc()

UNI_STORAGE_DESC_S * tuya_hal_storage_get_desc ( void  )

Get description of storage

参数
void
注解
This API is used to get description of storage.
返回
the description of storage

◆ tuya_hal_uf_get_desc()

UF_PARTITION_TABLE_S * tuya_hal_uf_get_desc ( void  )

Get UF file description

参数
void
注解
This API is used to get UF file description.
返回
the UF file description