Macros | |
#define | CY_PRA_REG32_CLR_SET(regIndex, field, value) (void)Cy_PRA_SendCmd(CY_PRA_MSG_TYPE_REG32_CLR_SET, (regIndex), ((uint32_t)(~(field ## _Msk))), (_VAL2FLD(field, (value)))) |
Provides get-clear-modify-write operations with a name field and value and writes a resulting value to the 32-bit register. More... | |
#define | CY_PRA_REG32_SET(regIndex, value) (void)Cy_PRA_SendCmd(CY_PRA_MSG_TYPE_REG32_SET, (regIndex), (value), 0UL) |
Writes the 32-bit value to the specified register. More... | |
#define | CY_PRA_REG32_GET(regIndex) (uint32_t) Cy_PRA_SendCmd(CY_PRA_MSG_TYPE_REG32_GET, (regIndex), 0UL, 0UL) |
Reads the 32-bit value from the specified register. More... | |
#define | CY_PRA_CM0_WAKEUP() (void)Cy_PRA_SendCmd(CY_PRA_MSG_TYPE_CM0_WAKEUP, (uint16_t) 0U, 0UL, 0UL) |
The request to wake up the Cortex-M0+ core. | |
#define | CY_PRA_FUNCTION_CALL_RETURN_PARAM(msgType, funcIndex, param) Cy_PRA_SendCmd((msgType), (funcIndex), (uint32_t)(param), 0UL) |
Calls the specified function with the provided parameter and returns the execution status. More... | |
#define | CY_PRA_FUNCTION_CALL_RETURN_VOID(msgType, funcIndex) Cy_PRA_SendCmd((msgType), (funcIndex), 0UL, 0UL) |
Calls the specified function without a parameter and returns the execution status. More... | |
#define | CY_PRA_FUNCTION_CALL_VOID_PARAM(msgType, funcIndex, param) (void)Cy_PRA_SendCmd((msgType), (funcIndex), (uint32_t)(param), 0UL) |
Calls the specified function with the provided parameter and returns void. More... | |
#define | CY_PRA_FUNCTION_CALL_VOID_VOID(msgType, funcIndex) (void)Cy_PRA_SendCmd((msgType), (funcIndex), 0UL, 0UL) |
Calls the specified function without a parameter and returns void. More... | |
#define | CY_PRA_GET_PIN_PROT_TYPE(base, pinNum) Cy_PRA_GetPinProtType(base, pinNum) |
Compares the PORT and PIN number with secure PIN list and returns PIN protection type. More... | |
#define | CY_PRA_IS_PORT_SECURE(base) Cy_PRA_IsPortSecure(base) |
Compares the PORT with secure PIN list and returns PORT protection status. More... | |
#define | CY_PRA_GET_PORT_REG_INDEX(base, subIndex) Cy_PRA_GetPortRegIndex(base, subIndex) |
Compares the PORT and PIN number with secure PIN list and returns PORT index. More... | |
#define | CY_PRA_GET_HSIOM_REG_INDEX(base, subIndex) Cy_PRA_GetHsiomRegIndex(base, subIndex) |
Compares the PORT with secure PIN list and returns HSIOM port index. More... | |
#define CY_PRA_REG32_CLR_SET | ( | regIndex, | |
field, | |||
value | |||
) | (void)Cy_PRA_SendCmd(CY_PRA_MSG_TYPE_REG32_CLR_SET, (regIndex), ((uint32_t)(~(field ## _Msk))), (_VAL2FLD(field, (value)))) |
Provides get-clear-modify-write operations with a name field and value and writes a resulting value to the 32-bit register.
regIndex | The register address index. |
field | The field to be updated. |
value | The value to write. |
#define CY_PRA_REG32_SET | ( | regIndex, | |
value | |||
) | (void)Cy_PRA_SendCmd(CY_PRA_MSG_TYPE_REG32_SET, (regIndex), (value), 0UL) |
Writes the 32-bit value to the specified register.
regIndex | The register address index. |
value | The value to write. |
#define CY_PRA_REG32_GET | ( | regIndex | ) | (uint32_t) Cy_PRA_SendCmd(CY_PRA_MSG_TYPE_REG32_GET, (regIndex), 0UL, 0UL) |
Reads the 32-bit value from the specified register.
regIndex | The register address index. |
#define CY_PRA_FUNCTION_CALL_RETURN_PARAM | ( | msgType, | |
funcIndex, | |||
param | |||
) | Cy_PRA_SendCmd((msgType), (funcIndex), (uint32_t)(param), 0UL) |
Calls the specified function with the provided parameter and returns the execution status.
msgType | The function type. |
funcIndex | The function reference. |
param | The pointer to the function parameter. |
#define CY_PRA_FUNCTION_CALL_RETURN_VOID | ( | msgType, | |
funcIndex | |||
) | Cy_PRA_SendCmd((msgType), (funcIndex), 0UL, 0UL) |
Calls the specified function without a parameter and returns the execution status.
msgType | The function type. |
funcIndex | The function reference. |
#define CY_PRA_FUNCTION_CALL_VOID_PARAM | ( | msgType, | |
funcIndex, | |||
param | |||
) | (void)Cy_PRA_SendCmd((msgType), (funcIndex), (uint32_t)(param), 0UL) |
Calls the specified function with the provided parameter and returns void.
msgType | The function type. |
funcIndex | The function reference. |
param | The pointer to the function parameter. |
#define CY_PRA_FUNCTION_CALL_VOID_VOID | ( | msgType, | |
funcIndex | |||
) | (void)Cy_PRA_SendCmd((msgType), (funcIndex), 0UL, 0UL) |
Calls the specified function without a parameter and returns void.
msgType | The function type. |
funcIndex | The function reference. |
#define CY_PRA_GET_PIN_PROT_TYPE | ( | base, | |
pinNum | |||
) | Cy_PRA_GetPinProtType(base, pinNum) |
Compares the PORT and PIN number with secure PIN list and returns PIN protection type.
base | GPIO Port address |
pinNum | GPIO PIN number |
#define CY_PRA_IS_PORT_SECURE | ( | base | ) | Cy_PRA_IsPortSecure(base) |
Compares the PORT with secure PIN list and returns PORT protection status.
base | GPIO Port address |
#define CY_PRA_GET_PORT_REG_INDEX | ( | base, | |
subIndex | |||
) | Cy_PRA_GetPortRegIndex(base, subIndex) |
Compares the PORT and PIN number with secure PIN list and returns PORT index.
base | GPIO Port address |
subIndex | register index of GPIO PORT |
#define CY_PRA_GET_HSIOM_REG_INDEX | ( | base, | |
subIndex | |||
) | Cy_PRA_GetHsiomRegIndex(base, subIndex) |
Compares the PORT with secure PIN list and returns HSIOM port index.
base | GPIO Port address |
subIndex | register index of HSIOM PORT |