思澈科技软件开发工具包  2.20
SECU_Exported_Functions_Group1

Functions

HAL_StatusTypeDef HAL_SECU_SetAttr (SECU_MODULE_TYPE module, uint32_t role, uint32_t flag)
 Config a module's security. More...
 
HAL_StatusTypeDef HAL_SECU_SetMemoryAttr (SECU_MEM_TYPE memory_type, const SECU_MemAttr_Type *attrs, uint32_t attrs_cnt)
 Config memory's security. More...
 
HAL_StatusTypeDef HAL_SECU_Lock (SECU_GROUP_TYPE group)
 
HAL_StatusTypeDef HAL_SECU_Apply (SECU_GROUP_TYPE group)
 
HAL_StatusTypeDef HAL_SECU_ApplyAndLock (SECU_GROUP_TYPE group)
 

Detailed Description

 

Function Documentation

◆ HAL_SECU_SetAttr()

HAL_StatusTypeDef HAL_SECU_SetAttr ( SECU_MODULE_TYPE  module,
uint32_t  role,
uint32_t  flag 
)

Config a module's security.

Parameters
module- module control by SECU, the value is in type of supported modules definition
role- apply security on module while it act as this role Security role
flag- module's security attribute, Security setting flags
Return values
HALstatus

◆ HAL_SECU_SetMemoryAttr()

HAL_StatusTypeDef HAL_SECU_SetMemoryAttr ( SECU_MEM_TYPE  memory_type,
const SECU_MemAttr_Type attrs,
uint32_t  attrs_cnt 
)

Config memory's security.

Parameters
memory_type- memory control by SECU, the value can be one of SECU_MEM_TYPE
attrs- memory's security attributes
attrs_cnt- length of attrs
Return values
HALstatus