CAT2 Peripheral Driver Library

Functions

__STATIC_INLINE uint32_t Cy_SysClk_GetInterruptStatus (void)
 Returns the interrupt status. More...
 
__STATIC_INLINE uint32_t Cy_SysClk_GetInterruptStatusMasked (void)
 Returns the logical AND of the corresponding INTR and INTR_MASK registers in a single-load operation. More...
 
__STATIC_INLINE void Cy_SysClk_ClearInterrupt (uint32_t intrMask)
 Clears the interrupt status. More...
 
__STATIC_INLINE void Cy_SysClk_SetInterrupt (uint32_t intrMask)
 Sets the specified interrupt status. More...
 
__STATIC_INLINE uint32_t Cy_SysClk_GetInterruptMask (void)
 Returns the interrupt mask value. More...
 
__STATIC_INLINE void Cy_SysClk_SetInterruptMask (uint32_t intrMask)
 Sets the specified interrupt mask value. More...
 
__STATIC_INLINE void Cy_SysClk_CalibSetInterrupt (void)
 Set interrupt for clock calibration counter done. More...
 
__STATIC_INLINE void Cy_SysClk_CalibClearInterrupt (void)
 Clears the interrupt status. More...
 
__STATIC_INLINE bool Cy_SysClk_CalibGetInterruptStatus (void)
 Returns the interrupt status. More...
 
__STATIC_INLINE bool Cy_SysClk_CalibGetInterruptStatusMasked (void)
 Returns an interrupt request register masked by an interrupt mask. More...
 
__STATIC_INLINE void Cy_SysClk_CalibSetInterruptMask (bool enable)
 Sets the clock calibration interrupt mask. More...
 

Detailed Description

Function Documentation

◆ Cy_SysClk_GetInterruptStatus()

__STATIC_INLINE uint32_t Cy_SysClk_GetInterruptStatus ( void  )

Returns the interrupt status.

Note
This API is available only for PSOC 4500S and 4100S Max devices.
Returns
The interrupt status, see Interrupt Masks :

◆ Cy_SysClk_GetInterruptStatusMasked()

__STATIC_INLINE uint32_t Cy_SysClk_GetInterruptStatusMasked ( void  )

Returns the logical AND of the corresponding INTR and INTR_MASK registers in a single-load operation.

Note
This API is available only for PSOC 4500S and 4100S Max devices.
Returns
The masked interrupt status, see Interrupt Masks :
Function Usage
uint32_t csvIntr = 0UL;
void Csv_Isr(void)
{
}
Also refer to Functions

◆ Cy_SysClk_ClearInterrupt()

__STATIC_INLINE void Cy_SysClk_ClearInterrupt ( uint32_t  intrMask)

Clears the interrupt status.

Note
This API is available only for PSOC 4500S and 4100S Max devices.
Parameters
intrMaskThe mask of interrupts to clear. Typically this is the value returned by Cy_SysClk_GetInterruptStatusMasked or Cy_SysClk_GetInterruptStatus. Alternately, select one or more values from Interrupt Masks and "OR" them together.
Function Usage
uint32_t csvIntr = 0UL;
void Csv_Isr(void)
{
}
Also refer to Functions

◆ Cy_SysClk_SetInterrupt()

__STATIC_INLINE void Cy_SysClk_SetInterrupt ( uint32_t  intrMask)

Sets the specified interrupt status.

Intended mostly for debugging.

Note
This API is available only for PSOC 4500S and 4100S Max devices.
Parameters
intrMaskThe mask of interrupts to set. Select one or more values from Interrupt Masks and "OR" them together.

◆ Cy_SysClk_GetInterruptMask()

__STATIC_INLINE uint32_t Cy_SysClk_GetInterruptMask ( void  )

Returns the interrupt mask value.

Note
This API is available only for PSOC 4500S and 4100S Max devices.
Returns
The interrupt mask value, see Interrupt Masks :
Function Usage
/* Scenario: Check whether a specific interrupt source is enabled. */
uint32_t intrMask = Cy_SysClk_GetInterruptMask();
{
/* The PLL unlock interrupt was enabled. */
}

◆ Cy_SysClk_SetInterruptMask()

__STATIC_INLINE void Cy_SysClk_SetInterruptMask ( uint32_t  intrMask)

Sets the specified interrupt mask value.

Note
This API is available only for PSOC 4500S and 4100S Max devices.
Parameters
intrMaskThe mask of interrupts. Select one or more values from Interrupt Masks and "OR" them together.
Function Usage

◆ Cy_SysClk_CalibSetInterrupt()

__STATIC_INLINE void Cy_SysClk_CalibSetInterrupt ( void  )

Set interrupt for clock calibration counter done.

Can be used to set interrupts for firmware testing. This field is reset during DeepSleep mode.

Note
Applicable to PSOC4 HVMS/PA only.
Function Usage
/* Scenario: Set interrupt for clock calibration counter done. */
/* Hook interrupt service routine */
(void) Cy_SysInt_Init(&sysClkIntrConfig, &SysClk_Isr);
/* unmask interrupts if interrupts were masked */
{
}
/* clear old interrupts */
/* enable interrupt for interrupt controller */
NVIC_EnableIRQ(SYSCLK_INTR_NUM);
/* set interrupt for calibration */

◆ Cy_SysClk_CalibClearInterrupt()

__STATIC_INLINE void Cy_SysClk_CalibClearInterrupt ( void  )

Clears the interrupt status.

Note
Applicable to PSOC4 HVMS/PA only.
Function Usage
/* Scenario: Set interrupt for clock calibration counter done. */
/* Hook interrupt service routine */
(void) Cy_SysInt_Init(&sysClkIntrConfig, &SysClk_Isr);
/* unmask interrupts if interrupts were masked */
{
}
/* clear old interrupts */
/* enable interrupt for interrupt controller */
NVIC_EnableIRQ(SYSCLK_INTR_NUM);
/* set interrupt for calibration */

◆ Cy_SysClk_CalibGetInterruptStatus()

__STATIC_INLINE bool Cy_SysClk_CalibGetInterruptStatus ( void  )

Returns the interrupt status.

Note
Applicable to PSOC4 HVMS/PA only.
Function Usage
/* Scenario: Set interrupt for clock calibration counter done. */
/* Hook interrupt service routine */
(void) Cy_SysInt_Init(&sysClkIntrConfig, &SysClk_Isr);
/* unmask interrupts if interrupts were masked */
{
}
/* clear old interrupts */
/* enable interrupt for interrupt controller */
NVIC_EnableIRQ(SYSCLK_INTR_NUM);
/* set interrupt for calibration */

◆ Cy_SysClk_CalibGetInterruptStatusMasked()

__STATIC_INLINE bool Cy_SysClk_CalibGetInterruptStatusMasked ( void  )

Returns an interrupt request register masked by an interrupt mask.

Returns the result of the bitwise AND operation between the corresponding interrupt request and mask bits.

Returns
The masked interrupt status. true : Masked interrupt occurs. false : No Masked interrupt occurs.
Note
Applicable to PSOC4 HVMS/PA only.
Function Usage
/* Scenario: Set interrupt for clock calibration counter done. */
/* Hook interrupt service routine */
(void) Cy_SysInt_Init(&sysClkIntrConfig, &SysClk_Isr);
/* unmask interrupts if interrupts were masked */
{
}
/* clear old interrupts */
/* enable interrupt for interrupt controller */
NVIC_EnableIRQ(SYSCLK_INTR_NUM);
/* set interrupt for calibration */

◆ Cy_SysClk_CalibSetInterruptMask()

__STATIC_INLINE void Cy_SysClk_CalibSetInterruptMask ( bool  enable)

Sets the clock calibration interrupt mask.

Parameters
enable
  • true - to masking interrupt for calibration counter done
  • false - to reset masking interrupt
Note
Applicable to PSOC4 HVMS/PA only.