Functions | |
cy_en_prot_status_t | Cy_Prot_ConfigPpuProgMasterAtt (PERI_MS_PPU_PR_Type *base, uint16_t pcMask, cy_en_prot_perm_t userPermission, cy_en_prot_perm_t privPermission, bool secure) |
Configures the protection-structure attributes of the Programmable Peripheral Protection Unit (PPU PROG) master. More... | |
cy_en_prot_status_t | Cy_Prot_ConfigPpuProgSlaveAddr (PERI_MS_PPU_PR_Type *base, uint32_t address, cy_en_prot_size_t regionSize) |
Configures the protection-structure address settings of the Programmable Peripheral Protection Unit (PPU PROG) slave. More... | |
cy_en_prot_status_t | Cy_Prot_ConfigPpuProgSlaveAtt (PERI_MS_PPU_PR_Type *base, uint16_t pcMask, cy_en_prot_perm_t userPermission, cy_en_prot_perm_t privPermission, bool secure) |
Configures the protection structure with its protection attributes of the Programmable Peripheral Protection Unit (PPU PROG) slave. More... | |
cy_en_prot_status_t | Cy_Prot_EnablePpuProgSlaveRegion (PERI_MS_PPU_PR_Type *base) |
Enables the Slave PPU PROG structure. More... | |
cy_en_prot_status_t | Cy_Prot_DisablePpuProgSlaveRegion (PERI_MS_PPU_PR_Type *base) |
Disables the Slave PPU PROG structure. More... | |
cy_en_prot_status_t Cy_Prot_ConfigPpuProgMasterAtt | ( | PERI_MS_PPU_PR_Type * | base, |
uint16_t | pcMask, | ||
cy_en_prot_perm_t | userPermission, | ||
cy_en_prot_perm_t | privPermission, | ||
bool | secure | ||
) |
Configures the protection-structure attributes of the Programmable Peripheral Protection Unit (PPU PROG) master.
This function configures the master structure governing the corresponding slave structure pair. It is a mechanism to protect the slave PPU PROG structure. The memory location of the slave structure is known, so the address, regionSize, and sub-regions of the configuration structure are not applicable.
base | The register base address of the protection structure is being configured. |
pcMask | The protection context mask. It specifies the protection context or a set of multiple protection contexts to be configured. It is a value of OR'd (|) items of cy_en_prot_pcmask_t. For example: (CY_PROT_PCMASK1 | CY_PROT_PCMASK3 | CY_PROT_PCMASK4). |
userPermission | The user permission setting. The CY_PROT_PERM_R or CY_PROT_PERM_RW values are valid for the master. |
privPermission | The privileged permission setting. CY_PROT_PERM_R or CY_PROT_PERM_RW values are valid for the master. |
secure | The secure flag. |
Status | Description |
---|---|
CY_PROT_SUCCESS | The attributes were set up. |
CY_PROT_FAILURE | The attributes were not set up because the structure is 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_ConfigPpuProgSlaveAddr | ( | PERI_MS_PPU_PR_Type * | base, |
uint32_t | address, | ||
cy_en_prot_size_t | regionSize | ||
) |
Configures the protection-structure address settings of the Programmable Peripheral Protection Unit (PPU PROG) slave.
This function configures the slave structure of the PPU PROG pair, which can protect any peripheral memory region in a device from an invalid bus-master access.
base | The register base address of the protection structure is being configured. |
address | The address. |
regionSize | The region size. |
Status | Description |
---|---|
CY_PROT_SUCCESS | The address settings were set up. |
CY_PROT_FAILURE | The address settings were not set up because the structure is 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_ConfigPpuProgSlaveAtt | ( | PERI_MS_PPU_PR_Type * | base, |
uint16_t | pcMask, | ||
cy_en_prot_perm_t | userPermission, | ||
cy_en_prot_perm_t | privPermission, | ||
bool | secure | ||
) |
Configures the protection structure with its protection attributes of the Programmable Peripheral Protection Unit (PPU PROG) slave.
This function configures the slave structure of the PPU PROG pair, which can protect any peripheral memory region in a device from invalid bus-master access.
base | The register base address of the protection structure is being configured. |
pcMask | The protection context mask. It specifies the protection context or a set of multiple protection contexts to be configured. It is a value of OR'd (|) items of cy_en_prot_pcmask_t. For example: (CY_PROT_PCMASK1 | CY_PROT_PCMASK3 | CY_PROT_PCMASK4). |
userPermission | The user permission setting. |
privPermission | The privileged permission setting. |
secure | The secure flag. |
Status | Description |
---|---|
CY_PROT_SUCCESS | The attributes were set up. |
CY_PROT_FAILURE | The attributes were not set up because the structure is 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_EnablePpuProgSlaveRegion | ( | PERI_MS_PPU_PR_Type * | base | ) |
Enables the Slave PPU PROG structure.
This is the PPU PROG slave-structure enable function. The PPU PROG protection settings will take effect after a successful completion of this function call.
base | The base address for the protection unit structure is being configured. |
Status | Description |
---|---|
CY_PROT_SUCCESS | The structure was enabled. |
CY_PROT_FAILURE | The structure 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_DisablePpuProgSlaveRegion | ( | PERI_MS_PPU_PR_Type * | base | ) |
Disables the Slave PPU PROG structure.
This is the PPU PROG slave-structure disable function. The PPU PROG protection settings will seize to take effect after successful completion of this function call.
base | The base address for the protection unit structure is being configured. |
Status | Description |
---|---|
CY_PROT_SUCCESS | The slave PPU PROG structure was disabled. |
CY_PROT_FAILURE | The structure is enabled and possibly locked. |
CY_PROT_INVALID_STATE | The function was called on the device with an unsupported PERI HW version. |