Functions | |
void | Cy_PRA_Init (void) |
Initializes the PRA driver: More... | |
cy_en_pra_status_t | Cy_PRA_SendCmd (uint16_t cmd, uint16_t regIndex, uint32_t clearMask, uint32_t setMask) |
Takes the parameters, passes them to the secure Cortex-M0+ via IPC, waits for Cortex-M0+ to finish and reports the status. More... | |
cy_en_pra_pin_prot_type_t | Cy_PRA_GetPinProtType (GPIO_PRT_Type *base, uint32_t pinNum) |
Find the matching PORT and PIN number from External clock secure PIN list and returns protection status of the PIN. | |
bool | Cy_PRA_IsPortSecure (GPIO_PRT_Type *base) |
Find the matching PORT from External clock secure PIN list and returns protection status of the PORT. | |
uint16_t | Cy_PRA_GetPortRegIndex (GPIO_PRT_Type *base, uint16_t subIndex) |
Find the matching PORT and PIN number from External clock secure PIN list and returns port address index. More... | |
uint16_t | Cy_PRA_GetHsiomRegIndex (GPIO_PRT_Type *base, uint16_t subIndex) |
Find the matching PORT address from External clock secure PIN list and returns HSIOM port address index. More... | |
cy_en_pra_status_t | Cy_PRA_SystemConfig (const cy_stc_pra_system_config_t *devConfig) |
Validates cy_stc_pra_system_config_t and applies the provided settings. More... | |
void Cy_PRA_Init | ( | void | ) |
Initializes the PRA driver:
Call the function before accessing any protected registers. It is called during a device startup from SystemInit().
cy_en_pra_status_t Cy_PRA_SendCmd | ( | uint16_t | cmd, |
uint16_t | regIndex, | ||
uint32_t | clearMask, | ||
uint32_t | setMask | ||
) |
Takes the parameters, passes them to the secure Cortex-M0+ via IPC, waits for Cortex-M0+ to finish and reports the status.
cmd | The command to execute on the secure side. The macros for this parameter are defined in the cy_pra.h file with the CY_PRA_MSG_TYPE_ prefix. |
regIndex | The index of the function or register depending on the command parameter. The macros for this parameter are defined in the cy_pra.h file with the CY_PRA_INDX_ prefix. |
clearMask | Data sent to secure the core. |
setMask | Additional data send to secure the core. |
uint16_t Cy_PRA_GetPortRegIndex | ( | GPIO_PRT_Type * | base, |
uint16_t | subIndex | ||
) |
Find the matching PORT and PIN number from External clock secure PIN list and returns port address index.
uint16_t Cy_PRA_GetHsiomRegIndex | ( | GPIO_PRT_Type * | base, |
uint16_t | subIndex | ||
) |
Find the matching PORT address from External clock secure PIN list and returns HSIOM port address index.
cy_en_pra_status_t Cy_PRA_SystemConfig | ( | const cy_stc_pra_system_config_t * | devConfig | ) |
Validates cy_stc_pra_system_config_t and applies the provided settings.
devConfig | The device configuration structure initialized with Device Configurator. |