cy_en_prot_status_t Cy_Prot_ConfigPpuFixedSlMasterStruct | ( | PERI_GR_PPU_SL_Type * | base, |
const cy_stc_ppu_sl_cfg_t * | config | ||
) |
Configures a Fixed Peripheral Slave Protection Unit (PPU SL) master protection struct with its protection attributes.
This function configures the master struct governing the corresponding slave struct pair. It is a mechanism to protect the slave PPU SL struct. Since the memory location of the slave struct is known, the address, regionSize and subregions of the configuration struct are not applicable.
Note that only the user/privileged write permissions are configurable. The read and execute permissions are read-only and cannot be configured.
base | The register base address of the protection struct being configured. |
config | Initialization structure with all the protection attributes. |
Status | Description |
---|---|
CY_PROT_SUCCESS | PPU SL master struct was successfully configured. |
CY_PROT_FAILURE | The resource is locked. |
CY_PROT_BAD_PARAM | An incorrect/invalid parameter was passed. |
CY_PROT_INVALID_STATE | The function was called on the device with an unsupported PERI HW version. |
cy_en_prot_status_t Cy_Prot_ConfigPpuFixedSlSlaveStruct | ( | PERI_GR_PPU_SL_Type * | base, |
const cy_stc_ppu_sl_cfg_t * | config | ||
) |
Configures a Fixed Peripheral Slave Protection Unit (PPU SL) slave protection struct with its protection attributes.
This function configures the slave struct of a PPU SL pair, which can protect an entire peripheral slave instance from invalid bus master accesses. For example, TCPWM0, TCPWM1, SCB0 and SCB1 etc.
Each fixed PPU SL is devoted to a defined peripheral slave. Hence the address, regionSize and subregions of the configuration struct are not applicable.
Note that the user/privileged execute accesses are read-only and are always enabled.
base | The register base address of the protection structure being configured. |
config | Initialization structure with all the protection attributes. |
Status | Description |
---|---|
CY_PROT_SUCCESS | PPU SL slave struct was successfully configured. |
CY_PROT_FAILURE | The resource is locked. |
CY_PROT_BAD_PARAM | An incorrect/invalid parameter was passed. |
CY_PROT_INVALID_STATE | The function was called on the device with an unsupported PERI HW version. |
cy_en_prot_status_t Cy_Prot_EnablePpuFixedSlMasterStruct | ( | PERI_GR_PPU_SL_Type * | base | ) |
Enables the Master PPU SL structure.
This is a PPU SL master struct enable function. The PPU SL protection settings will take effect after successful completion of this function call.
base | The base address for the protection unit structure being configured. |
Status | Description |
---|---|
CY_PROT_SUCCESS | The Master PU struct was enabled. |
CY_PROT_FAILURE | The Master PU struct is disabled and possibly locked. |
CY_PROT_INVALID_STATE | The function was called on the device with an unsupported PERI HW version. |
cy_en_prot_status_t Cy_Prot_DisablePpuFixedSlMasterStruct | ( | PERI_GR_PPU_SL_Type * | base | ) |
Disables the Master PPU SL structure.
This is a PPU SL master struct disable function. The PPU SL protection settings will seize to take effect after successful completion of this function call.
base | The base address for the protection unit structure being configured. |
Status | Description |
---|---|
CY_PROT_SUCCESS | The Master PU struct was disabled. |
CY_PROT_FAILURE | The Master PU struct is enabled and possibly locked. |
CY_PROT_INVALID_STATE | The function was called on the device with an unsupported PERI HW version. |
cy_en_prot_status_t Cy_Prot_EnablePpuFixedSlSlaveStruct | ( | PERI_GR_PPU_SL_Type * | base | ) |
Enables the Slave PPU SL structure.
This is a PPU SL slave struct enable function. The PPU SL protection settings will take effect after successful completion of this function call.
base | The base address for the protection unit structure being configured. |
Status | Description |
---|---|
CY_PROT_SUCCESS | The Slave PU struct was enabled. |
CY_PROT_FAILURE | The Slave PU struct is disabled and possibly locked. |
CY_PROT_INVALID_STATE | The function was called on the device with an unsupported PERI HW version. |
cy_en_prot_status_t Cy_Prot_DisablePpuFixedSlSlaveStruct | ( | PERI_GR_PPU_SL_Type * | base | ) |
Disables the Slave PPU SL structure.
This is a PPU SL slave struct disable function. The PPU SL protection settings will seize to take effect after successful completion of this function call.
base | The base address for the protection unit structure being configured. |
Status | Description |
---|---|
CY_PROT_SUCCESS | The Slave PU struct was enabled. |
CY_PROT_FAILURE | The Slave PU struct is disabled and possibly locked. |
CY_PROT_INVALID_STATE | The function was called on the device with an unsupported PERI HW version. |