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... | |
| 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.
| base | Base address of mpc being configured |
| rotConfig | MPC configuration structure to be used by the ROT code |
| 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.
| base | Base address of mpc being configured |
| config | MPC configuration structure to be used by the TFM code |
| 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.
| base | Base address of mpc being configured |
| pc | Protection Context |
| block | Index of MPC block for PC. Use CY_MPC_GET_BLOCK_INDEX to get index of block. |
| p_block_settings | Pointer to return value of block settings |
| 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.
| base | Base address of mpc being configured |
| block | Index of MPC block for PC. Use CY_MPC_GET_BLOCK_INDEX to get index of block. |
| p_block_settings | Pointer to return value of block settings |
| void Cy_Mpc_Lock | ( | MPC_Type * | base | ) |
Locks the MPC configuration.
| base | Base address of mpc being configured |
| void Cy_Mpc_RotLock | ( | MPC_Type * | base | ) |
Locks the MPC configuration for ROT.
| base | Base address of mpc being configured |
| void Cy_Mpc_RotAutoInc | ( | MPC_Type * | base, |
| uint8_t | control | ||
| ) |
Auto increment of BLK ID for ROT.
| base | Base address of mpc being configured |
| control | Auto increment control |
| void Cy_Mpc_AutoInc | ( | MPC_Type * | base, |
| uint8_t | control | ||
| ) |
Auto increment of BLK ID.
| base | Base address of mpc being configured |
| control | Auto increment control |
| cy_en_mpc_status_t Cy_Mpc_SetViolationResponse | ( | MPC_Type * | base, |
| bool | mpcResponse | ||
| ) |
Set MPC Violation Response.
| base | Base address of mpc being configured |
| mpcResponse | Enable/Disable MPC Response on violation |