Functions | |
cy_en_prot_status_t | Cy_Prot_ConfigBusMaster (en_prot_master_t busMaster, bool privileged, bool secure, uint32_t pcMask) |
Configures the allowed protection contexts, security (secure/non-secure) and privilege level of the bus transaction created by the specified master. More... | |
cy_en_prot_status_t | Cy_Prot_SetActivePC (en_prot_master_t busMaster, uint32_t pc) |
Sets the current/active protection context of the specified bus master. More... | |
uint32_t | Cy_Prot_GetActivePC (en_prot_master_t busMaster) |
cy_en_prot_status_t Cy_Prot_ConfigBusMaster | ( | en_prot_master_t | busMaster, |
bool | privileged, | ||
bool | secure, | ||
uint32_t | pcMask | ||
) |
Configures the allowed protection contexts, security (secure/non-secure) and privilege level of the bus transaction created by the specified master.
busMaster | Indicates which master needs to be configured. Refer to the CPUSS_MS_ID_X defines in the device config header file. |
privileged | Boolean to define the privilege level of all subsequent bus transfers. True - privileged, False - not privileged. Note that this is an inherited value. If not inherited, then this bit will be used. |
secure | Security setting for the master. True - Secure, False - Not secure. |
pcMask | This is a 16 bit value of the allowed contexts, it is an OR'ed (|) field of the provided defines in cy_prot.h. For example: (CY_PROT_PCMASK1 | CY_PROT_PCMASK3 | CY_PROT_PCMASK4) |
Status | Description |
---|---|
CY_PROT_SUCCESS | The function completed successfully. |
CY_PROT_FAILURE | The resource is locked. |
cy_en_prot_status_t Cy_Prot_SetActivePC | ( | en_prot_master_t | busMaster, |
uint32_t | pc | ||
) |
Sets the current/active protection context of the specified bus master.
Allowed PC values are 1-15. If this value is not inherited from another bus master, the value set through this function is used.
busMaster | The bus master to configure. Refer to the CPUSS_MS_ID_X defines in the device config header file. |
pc | Active protection context of the specified master cy_en_prot_pc_t. |
Status | Description |
---|---|
CY_PROT_SUCCESS | The function completed successfully. |
CY_PROT_FAILURE | The resource is locked. |
uint32_t Cy_Prot_GetActivePC | ( | en_prot_master_t | busMaster | ) |
Returns the active protection context of a master.
busMaster | The bus master, whose protection context is being read. Refer to the CPUSS_MS_ID_X defines in the device config header file. |