MTB CAT1 Peripheral driver library

General Description

Functions

cy_en_mpc_status_t Cy_Mpc_ConfigRotMpcStruct (MPC_Type *base, const cy_stc_mpc_rot_cfg_t *rotConfig)
 Initializes the referenced mpc by setting the PC, NS/S and RW/R/W permissions. More...
 
cy_en_mpc_status_t Cy_Mpc_ConfigMpcStruct (MPC_Type *base, const cy_stc_mpc_cfg_t *config)
 Initializes the referenced mpc by setting the NS/S permissions. More...
 
cy_en_mpc_status_t Cy_Mpc_GetRotBlockAttr (MPC_Type *base, cy_en_mpc_prot_context_t pc, uint32_t block, cy_stc_mpc_rot_block_attr_t *p_block_settings)
 Get MPC attributes settings corresponding to block and the PC for ROT. More...
 
cy_en_mpc_status_t Cy_Mpc_GetBlockAttr (MPC_Type *base, uint32_t block, cy_stc_mpc_block_attr_t *p_block_settings)
 Get MPC attributes settings corresponding to a block. More...
 
void Cy_Mpc_Lock (MPC_Type *base)
 Locks the MPC configuration. More...
 
void Cy_Mpc_RotLock (MPC_Type *base)
 Locks the MPC configuration for ROT. More...
 
void Cy_Mpc_RotAutoInc (MPC_Type *base, uint8_t control)
 Auto increment of BLK ID for ROT. More...
 
void Cy_Mpc_AutoInc (MPC_Type *base, uint8_t control)
 Auto increment of BLK ID. More...
 
cy_en_mpc_status_t Cy_Mpc_SetViolationResponse (MPC_Type *base, bool mpcResponse)
 Set MPC Violation Response. More...
 

Function Documentation

◆ Cy_Mpc_ConfigRotMpcStruct()

cy_en_mpc_status_t Cy_Mpc_ConfigRotMpcStruct ( MPC_Type *  base,
const cy_stc_mpc_rot_cfg_t rotConfig 
)

Initializes the referenced mpc by setting the PC, NS/S and RW/R/W permissions.

This is called by ROT module.

Parameters
baseBase address of mpc being configured
rotConfigMPC configuration structure to be used by the ROT code
Returns
Initialization status

◆ Cy_Mpc_ConfigMpcStruct()

cy_en_mpc_status_t Cy_Mpc_ConfigMpcStruct ( MPC_Type *  base,
const cy_stc_mpc_cfg_t config 
)

Initializes the referenced mpc by setting the NS/S permissions.

This is called by TFM module.

Parameters
baseBase address of mpc being configured
configMPC configuration structure to be used by the TFM code
Returns
Initialization status

◆ Cy_Mpc_GetRotBlockAttr()

cy_en_mpc_status_t Cy_Mpc_GetRotBlockAttr ( MPC_Type *  base,
cy_en_mpc_prot_context_t  pc,
uint32_t  block,
cy_stc_mpc_rot_block_attr_t p_block_settings 
)

Get MPC attributes settings corresponding to block and the PC for ROT.

Parameters
baseBase address of mpc being configured
pcProtection Context
blockIndex of MPC block for PC. Use CY_MPC_GET_BLOCK_INDEX to get index of block.
p_block_settingsPointer to return value of block settings
Returns
Initialization status

◆ Cy_Mpc_GetBlockAttr()

cy_en_mpc_status_t Cy_Mpc_GetBlockAttr ( MPC_Type *  base,
uint32_t  block,
cy_stc_mpc_block_attr_t p_block_settings 
)

Get MPC attributes settings corresponding to a block.

Parameters
baseBase address of mpc being configured
blockIndex of MPC block for PC. Use CY_MPC_GET_BLOCK_INDEX to get index of block.
p_block_settingsPointer to return value of block settings
Returns
Initialization status

◆ Cy_Mpc_Lock()

void Cy_Mpc_Lock ( MPC_Type *  base)

Locks the MPC configuration.

Parameters
baseBase address of mpc being configured

◆ Cy_Mpc_RotLock()

void Cy_Mpc_RotLock ( MPC_Type *  base)

Locks the MPC configuration for ROT.

Parameters
baseBase address of mpc being configured

◆ Cy_Mpc_RotAutoInc()

void Cy_Mpc_RotAutoInc ( MPC_Type *  base,
uint8_t  control 
)

Auto increment of BLK ID for ROT.

Parameters
baseBase address of mpc being configured
controlAuto increment control

◆ Cy_Mpc_AutoInc()

void Cy_Mpc_AutoInc ( MPC_Type *  base,
uint8_t  control 
)

Auto increment of BLK ID.

Parameters
baseBase address of mpc being configured
controlAuto increment control

◆ Cy_Mpc_SetViolationResponse()

cy_en_mpc_status_t Cy_Mpc_SetViolationResponse ( MPC_Type *  base,
bool  mpcResponse 
)

Set MPC Violation Response.

Parameters
baseBase address of mpc being configured
mpcResponseEnable/Disable MPC Response on violation
Returns
API status