This set of functions are related to ADCMic interrupts.
◆ Cy_ADCMic_EnableInterrupt()
Sets the specified interrupt bit in the interrupt mask register.
- Parameters
-
base | The pointer to the hardware ADCMic block. |
intrMask | The mask of interrupts to enable. Select one or more values from Interrupt Masks and "OR" them together.
|
- Function Usage
{
.
intrSrc = adcmic_interrupt_adcmic_IRQn,
.intrPriority = 7UL
};
NVIC_EnableIRQ(ADCMic_IRQ_cfg.
intrSrc);
◆ Cy_ADCMic_DisableInterrupt()
Clears the specified interrupt bit in the interrupt mask register.
- Parameters
-
base | The pointer to the hardware ADCMic block. |
intrMask | The mask of interrupts to disable. Select one or more values from Interrupt Masks and "OR" them together.
|
- Function Usage
{
.
intrSrc = adcmic_interrupt_adcmic_IRQn,
.intrPriority = 7UL
};
NVIC_EnableIRQ(ADCMic_IRQ_cfg.
intrSrc);
◆ Cy_ADCMic_GetInterruptStatus()
__STATIC_INLINE uint32_t Cy_ADCMic_GetInterruptStatus |
( |
MXS40ADCMIC_Type const * |
base | ) |
|
Returns the interrupt status of the specified channel.
- Parameters
-
base | The pointer to the hardware ADCMic block. |
- Returns
- The interrupt status.
- Function Usage
{
.
intrSrc = adcmic_interrupt_adcmic_IRQn,
.intrPriority = 7UL
};
NVIC_EnableIRQ(ADCMic_IRQ_cfg.
intrSrc);
◆ Cy_ADCMic_ClearInterrupt()
__STATIC_INLINE void Cy_ADCMic_ClearInterrupt |
( |
MXS40ADCMIC_Type * |
base, |
|
|
uint32_t |
intrMask |
|
) |
| |
Clears the interrupt status.
- Parameters
-
base | The pointer to the hardware ADC block. |
intrMask | The mask of interrupts to clear. Typically this will be the value returned from Cy_ADCMic_GetInterruptStatus. Alternately, select one or more values from Interrupt Masks and "OR" them together.
|
- Function Usage
{
.
intrSrc = adcmic_interrupt_adcmic_IRQn,
.intrPriority = 7UL
};
NVIC_EnableIRQ(ADCMic_IRQ_cfg.
intrSrc);
◆ Cy_ADCMic_SetInterrupt()
__STATIC_INLINE void Cy_ADCMic_SetInterrupt |
( |
MXS40ADCMIC_Type * |
base, |
|
|
uint32_t |
intrMask |
|
) |
| |
Sets the interrupt for the specified channel.
Intended mostly for debugging.
- Parameters
-
base | The pointer to the hardware ADCMic block. |
intrMask | The mask of interrupts to set. Select one or more values from Interrupt Masks and "OR" them together.
|
◆ Cy_ADCMic_GetInterruptMask()
__STATIC_INLINE uint32_t Cy_ADCMic_GetInterruptMask |
( |
MXS40ADCMIC_Type const * |
base | ) |
|
Returns the interrupt mask value of the specified channel.
- Parameters
-
base | The pointer to the hardware ADCMic block. |
- Returns
- The interrupt mask value.
- Function Usage
◆ Cy_ADCMic_SetInterruptMask()
__STATIC_INLINE void Cy_ADCMic_SetInterruptMask |
( |
MXS40ADCMIC_Type * |
base, |
|
|
uint32_t |
intrMask |
|
) |
| |
Sets an interrupt mask value for the specified channel.
- Parameters
-
base | The pointer to the hardware ADCMic block. |
intrMask | The mask of interrupts. Select one or more values from Interrupt Masks and "OR" them together.
|
- Function Usage
◆ Cy_ADCMic_GetInterruptStatusMasked()
__STATIC_INLINE uint32_t Cy_ADCMic_GetInterruptStatusMasked |
( |
MXS40ADCMIC_Type const * |
base | ) |
|
Returns the logical AND of the corresponding INTR and INTR_MASK fields in a single-load operation.
- Parameters
-
base | The pointer to the hardware ADCMic block. |
- Returns
- The masked interrupt status.
- Function Usage
{
.
intrSrc = adcmic_interrupt_adcmic_IRQn,
.intrPriority = 7UL
};
NVIC_EnableIRQ(ADCMic_IRQ_cfg.
intrSrc);