WS63 SDK 文档 7021f4f@fbb_ws63
ws63 和 ws63e 解决方案的 SDK 文档
载入中...
搜索中...
未找到
flash_task_description_t结构体 参考

#include <nv_task_adapt.h>

flash_task_description_t 的协作图:

成员变量

uint32_t identifier
 
volatile flash_task_nodenext
 
owner_callbackowner_callback
 
volatile uint32_t state_code
 
flash_task_type_t task
 
task_node_data_t data
 
uint32_t checksum
 

结构体成员变量说明

◆ checksum

uint32_t flash_task_description_t::checksum

A checksum formed by xoring the flash write task information (task and data) and is used to spot errors.

◆ data

task_node_data_t flash_task_description_t::data

The unique per task data contents.

◆ identifier

uint32_t flash_task_description_t::identifier

A flash_task identifier to maximise the chance that a bug is detected quickly.

◆ next

volatile flash_task_node* flash_task_description_t::next

Next task in the queue or EXT_NULL if nothing.

◆ owner_callback

owner_callback* flash_task_description_t::owner_callback

FOR THE TASK PRODUCER: This is private to the core that owns the cache and will not be examined by the SCPU task handlers. It will nominally be used by the owning core as the call-back it should call when it discovers that this task has been completed combined with a pointer to a struct with any state information.

NB: IN THE SCPU FLASH TASK HANDLER DURING EXECUTION ONLY: this will be nulled out in the copy initially provided to the SCPU task handler and can be used to store task state while the task is in progress, even if the task must be temporarily suspended due to an A/PCPU wake-up.

◆ state_code

volatile uint32_t flash_task_description_t::state_code

The state_code is a soc_errno and is used as a lock so is volatile so that it can be read/written from each core properly. FLASH_TASK_DISCARD - Set by the owning core so that the SCPU will stop checking this memory (and will acknowledge this by setting this to DISCARDED). FLASH_TASK_DISCARDED - Set by the SCPU to acknowledge that this task has not been processed and was discarded by request of the owning core. (the SCPU is no longer examining this memory which can be modified/freed). FLASH_TASK_READY - Set by the owning core so that the SCPU will process this task (and will update it when finished) so the owning core cannot change anything other than the owner_callback once this has been set. FLASH_TASK_BEING_PROCESSED - Set by the SCPU to indicate that this task is being processed; this may take some time if the SCPU has to wait for other cores to sleep. The owning core must not change anything other than the owner_callback. FLASH_TASK_COMPLETED - Set by the SCPU to indicate that this task completed successfully (the SCPU is no longer examining this memory which can be modified/freed). any other value - Provides an error code; contact customer support to obtain it's meaning (the SCPU is no longer examining this memory which can be modified/freed).

◆ task

flash_task_type_t flash_task_description_t::task

The flash task to be performed.


该结构体的文档由以下文件生成: