PSoC4200 Tx Example.cydsn/Generated_Source/PSoC4/XBEE_RX_INT.c
void XBEE_RX_INT_SetPriority(uint8 priority)
{
	uint8 interruptState;
    uint32 priorityOffset = ((XBEE_RX_INT__INTC_NUMBER % 4u) * 8u) + 6u;
    
	interruptState = CyEnterCriticalSection();
    *XBEE_RX_INT_INTC_PRIOR = (*XBEE_RX_INT_INTC_PRIOR & (uint32)(~XBEE_RX_INT__INTC_PRIOR_MASK)) |
                                    ((uint32)priority << priorityOffset);
	CyExitCriticalSection(interruptState);
}
/*******************************************************************************
* Function Name: XBEE_RX_INT_SetPriority
********************************************************************************
*
* Summary:
*   Sets the Priority of the Interrupt. 
*
*   Note calling XBEE_RX_INT_Start or XBEE_RX_INT_StartEx will 
*   override any effect this API would have had. This API should only be called
*   after XBEE_RX_INT_Start or XBEE_RX_INT_StartEx has been called. 
*   To set the initial priority for the component, use the Design-Wide Resources
*   Interrupt Editor.
*
*   Note This API has no effect on Non-maskable interrupt NMI).
*
* Parameters:
*   priority: Priority of the interrupt, 0 being the highest priority
*             PSoC 3 and PSoC 5LP: Priority is from 0 to 7.
*             PSoC 4: Priority is from 0 to 3.
*
* Return:
*   None
*
*******************************************************************************/
Function Name: XBEE_RX_INT_SetPriority
Summary:
Sets the Priority of the Interrupt.

Note calling XBEE_RX_INT_Start or XBEE_RX_INT_StartEx will
override any effect this API would have had. This API should only be called
after XBEE_RX_INT_Start or XBEE_RX_INT_StartEx has been called.
To set the initial priority for the component, use the Design-Wide Resources
Interrupt Editor.

Note This API has no effect on Non-maskable interrupt NMI).

Priority of the interrupt, 0 being the highest priority
PSoC 3 and PSoC 5LP: Priority is from 0 to 7.
PSoC 4: Priority is from 0 to 3.

None
Function Name : XBEE_RX_INT_SetPriority Summary : Sets the Priority of the Interrupt . Note calling XBEE_RX_INT_Start or XBEE_RX_INT_StartEx will override any effect this API would have had . This API should only be called after XBEE_RX_INT_Start or XBEE_RX_INT_StartEx has been called . To set the initial priority for the component use the Design - Wide Resources Interrupt Editor . Note This API has no effect on Non - maskable interrupt NMI ) . Priority of the interrupt 0 being the highest priority PSoC 3 and PSoC 5LP : Priority is from 0 to 7 . PSoC 4 : Priority is from 0 to 3 . None
void XBEE_RX_INT_SetPriority(uint8 priority)
{
	uint8 interruptState;
    uint32 priorityOffset = ((XBEE_RX_INT__INTC_NUMBER % 4u) * 8u) + 6u;
	interruptState = CyEnterCriticalSection();
    *XBEE_RX_INT_INTC_PRIOR = (*XBEE_RX_INT_INTC_PRIOR & (uint32)(~XBEE_RX_INT__INTC_PRIOR_MASK)) |
                                    ((uint32)priority << priorityOffset);
	CyExitCriticalSection(interruptState);
}
void XBEE_RX_INT_SetPriority ( uint8 priority ) { uint8 interruptState ; uint32 priorityOffset = ( ( XBEE_RX_INT__INTC_NUMBER % 4u ) * 8u ) + 6u ; interruptState = CyEnterCriticalSection ( ) ; * XBEE_RX_INT_INTC_PRIOR = ( * XBEE_RX_INT_INTC_PRIOR & ( uint32 ) ( ~ XBEE_RX_INT__INTC_PRIOR_MASK ) ) | ( ( uint32 ) priority << priorityOffset ) ; CyExitCriticalSection ( interruptState ) ; }
Function Name: XBEE_RX_INT_SetPriority
Summary:
Sets the Priority of the Interrupt.
Function Name : XBEE_RX_INT_SetPriority Summary : Sets the Priority of the Interrupt .