WS63 SDK 文档 7021f4f@fbb_ws63
ws63 和 ws63e 解决方案的 SDK 文档
载入中...
搜索中...
未找到
Wakeup
Wakeup 的协作图:

结构体

struct  tagRunstopParam
 

类型定义

typedef void(* RUNSTOP_CALLBACK_FUNC) (void)
 Define the type of a runstop callback function.
 
typedef INT32(* FLASH_READ_FUNC) (void *memAddr, size_t start, size_t size)
 Define the type of a flash-reading function.
 
typedef INT32(* FLASH_WRITE_FUNC) (void *memAddr, size_t start, size_t size)
 Define the type of a flash-writing function.
 
typedef struct tagRunstopParam RUNSTOP_PARAM_S
 

函数

void LOS_MakeImage (const RUNSTOP_PARAM_S *runstopParam)
 Store the memory image on a flash.
 

详细描述

类型定义说明

◆ FLASH_READ_FUNC

typedef INT32(* FLASH_READ_FUNC) (void *memAddr, size_t start, size_t size)

Define the type of a flash-reading function.

Description:
This API is used to define the type of a flash-reading function, so that it can be called to read data from a certain flash.
注意
  • None.
参数
memAddr[IN] The memory starting address where to write the data reading from a certain flash.
start[IN] The starting address to read data from a certain flash.
size[IN] The size of data reading from a certain flash.
返回值
INT32The size of data read from flash.
Dependency:
  • los_runstop.h: the header file that contains the API declaration.
参见
None.
自从
Huawei LiteOS V100R001C00

◆ FLASH_WRITE_FUNC

typedef INT32(* FLASH_WRITE_FUNC) (void *memAddr, size_t start, size_t size)

Define the type of a flash-writing function.

Description:
This API is used to define the type of a flash-writing function, so that it can be called to write data to a certain flash.
注意
  • None.
参数
memAddr[IN] The memory starting address where to read data and be wrote to a certain flash.
start[IN] The starting address of a certain flash to write data.
size[IN] The size of data writing to a certain flash.
返回值
INT32The size of data write to flash.
Dependency:
  • los_runstop.h: the header file that contains the API declaration.
参见
None.
自从
Huawei LiteOS V100R001C00

◆ RUNSTOP_CALLBACK_FUNC

typedef void(* RUNSTOP_CALLBACK_FUNC) (void)

Define the type of a runstop callback function.

Description:
This API is used to define the type of a runstop callback function, so that it can be called in the phase of wake-up.
注意
  • None.
参数
None.
返回值
None.
Dependency:
  • los_runstop.h: the header file that contains the API declaration.
参见
None.
自从
Huawei LiteOS V100R001C00

◆ RUNSTOP_PARAM_S

Define the structure of the parameters used for runstop.

Information of specified parameters passed in during runstop.

函数说明

◆ LOS_MakeImage()

void LOS_MakeImage ( const RUNSTOP_PARAM_S runstopParam)
extern

Store the memory image on a flash.

Description:
This API is used to store the memory image to the flash starting address passed in by a user.
注意
  • uwWowFlashAddr in runstopParam specifies the flash starting address to which the memory image is to be stored.It needs to be ensured that the flash starting address and the flash of the memory image size after the starting address are not occupied.
参数
runstopParam[IN] Parameter which contains key information for runstop to use, including flash starting address to which the memory image is to be stored, etc.
返回值
None.
Dependency:
  • los_runstop.h: the header file that contains the API declaration.
参见
自从
Huawei LiteOS V100R001C00