This set of functions are related to DSADC interrupts. More...
Functions | |
__STATIC_INLINE void | Cy_DSADC_ClearInterrupt (PACSS_DCHAN_Type *base, uint32_t intrMask) |
Clears the specified interrupt for the specified DCHAN. More... | |
__STATIC_INLINE uint32_t | Cy_DSADC_GetInterruptStatus (const PACSS_DCHAN_Type *base) |
Gets the interrupt status for the specified DCHAN. More... | |
__STATIC_INLINE void | Cy_DSADC_SetInterrupt (PACSS_DCHAN_Type *base, uint32_t intrMask) |
Set the interrupt source to check if HW operates correctly or to use it as a SW interrupt. More... | |
__STATIC_INLINE uint32_t | Cy_DSADC_GetInterruptMask (const PACSS_DCHAN_Type *base) |
Returns the interrupt mask for the specified DCHAN. More... | |
__STATIC_INLINE void | Cy_DSADC_SetInterruptMask (PACSS_DCHAN_Type *base, uint32_t intrMask) |
Enables the specified interrupt for the specified DCHAN. More... | |
__STATIC_INLINE uint32_t | Cy_DSADC_GetInterruptStatusMasked (const PACSS_DCHAN_Type *base) |
Returns the masked (enabled) interrupt status for the specified DCHAN. More... | |
__STATIC_INLINE uint32_t | Cy_DSADC_GetInterruptCause (const PACSS_MMIO_Type *base) |
Get the interrupt pending for each DCHAN or System interrupt pending. More... | |
__STATIC_INLINE uint32_t | Cy_DSADC_GetOverloadCause (const PACSS_DCHAN_Type *base) |
Get the overload cause to check if the modulator output is all 0 or all 1. More... | |
__STATIC_INLINE void | Cy_DSADC_AgcClearInterrupt (PACSS_MMIO_Type *base) |
Clears the specified AGC MMIO interrupt. More... | |
__STATIC_INLINE bool | Cy_DSADC_AgcGetInterruptStatus (PACSS_MMIO_Type *base) |
Returns the AGC MMIO interrupt status. More... | |
__STATIC_INLINE void | Cy_DSADC_AgcSetInterrupt (PACSS_MMIO_Type *base) |
Write with '1' to set corresponding bit in interrupt request register. More... | |
__STATIC_INLINE bool | Cy_DSADC_AgcGetInterruptMask (PACSS_MMIO_Type *base) |
Returns the AGC MMIO interrupt mask. More... | |
__STATIC_INLINE void | Cy_DSADC_AgcSetInterruptMask (PACSS_MMIO_Type *base) |
Returns the masked (enabled) MMIO interrupt status. More... | |
__STATIC_INLINE bool | Cy_DSADC_AgcGetInterruptStatusMasked (PACSS_MMIO_Type *base) |
Returns the result of the bitwise AND operation between the corresponding interrupt request and mask bits. More... | |
This set of functions are related to DSADC interrupts.
__STATIC_INLINE void Cy_DSADC_ClearInterrupt | ( | PACSS_DCHAN_Type * | base, |
uint32_t | intrMask | ||
) |
Clears the specified interrupt for the specified DCHAN.
base | The base address for the Digital Channel. |
intrMask | The bitmask of statuses to clear. Select one or more values from Interrupt Masks and "OR" them together. |
__STATIC_INLINE uint32_t Cy_DSADC_GetInterruptStatus | ( | const PACSS_DCHAN_Type * | base | ) |
Gets the interrupt status for the specified DCHAN.
base | The base address for the Digital Channel. |
__STATIC_INLINE void Cy_DSADC_SetInterrupt | ( | PACSS_DCHAN_Type * | base, |
uint32_t | intrMask | ||
) |
Set the interrupt source to check if HW operates correctly or to use it as a SW interrupt.
base | The base address for the Digital Channel. |
intrMask | The bit field determines which interrupt will be triggered. Select one or more values from Interrupt Masks and "OR" them together. |
__STATIC_INLINE uint32_t Cy_DSADC_GetInterruptMask | ( | const PACSS_DCHAN_Type * | base | ) |
Returns the interrupt mask for the specified DCHAN.
base | The base address for the Digital Channel. |
__STATIC_INLINE void Cy_DSADC_SetInterruptMask | ( | PACSS_DCHAN_Type * | base, |
uint32_t | intrMask | ||
) |
Enables the specified interrupt for the specified DCHAN.
base | The base address for the Digital Channel. |
intrMask | The bit field determines which status changes can cause an interrupt. Select one or more values from Interrupt Masks and "OR" them together. |
__STATIC_INLINE uint32_t Cy_DSADC_GetInterruptStatusMasked | ( | const PACSS_DCHAN_Type * | base | ) |
Returns the masked (enabled) interrupt status for the specified DCHAN.
base | The base address for the Digital Channel. |
__STATIC_INLINE uint32_t Cy_DSADC_GetInterruptCause | ( | const PACSS_MMIO_Type * | base | ) |
Get the interrupt pending for each DCHAN or System interrupt pending.
base | The pointer to the MMIO instance of the PACSS. |
Name | Value |
---|---|
CY_DSADC_MMIO_INTR_CAUSE_DCH0 | 0x00000001UL (bit0) |
CY_DSADC_MMIO_INTR_CAUSE_DCH1 | 0x00000002UL (bit1) |
CY_DSADC_MMIO_INTR_CAUSE_DCH2 | 0x00000004UL (bit2) |
CY_DSADC_MMIO_INTR_CAUSE_DCH3 | 0x00000008UL (bit3) |
CY_DSADC_MMIO_INTR_CAUSE_PACSS | 0x00000010UL (bit4) |
__STATIC_INLINE uint32_t Cy_DSADC_GetOverloadCause | ( | const PACSS_DCHAN_Type * | base | ) |
Get the overload cause to check if the modulator output is all 0 or all 1.
base | The base address for the Digital Channel. |
__STATIC_INLINE void Cy_DSADC_AgcClearInterrupt | ( | PACSS_MMIO_Type * | base | ) |
Clears the specified AGC MMIO interrupt.
base | The pointer to the MMIO instance of the PACSS. |
__STATIC_INLINE bool Cy_DSADC_AgcGetInterruptStatus | ( | PACSS_MMIO_Type * | base | ) |
Returns the AGC MMIO interrupt status.
base | The pointer to the MMIO instance of the PACSS. |
__STATIC_INLINE void Cy_DSADC_AgcSetInterrupt | ( | PACSS_MMIO_Type * | base | ) |
Write with '1' to set corresponding bit in interrupt request register.
Can be used to set interrupts for firmware testing.
base | The pointer to the MMIO instance of the PACSS. |
__STATIC_INLINE bool Cy_DSADC_AgcGetInterruptMask | ( | PACSS_MMIO_Type * | base | ) |
Returns the AGC MMIO interrupt mask.
base | The pointer to the MMIO instance of the PACSS. |
__STATIC_INLINE void Cy_DSADC_AgcSetInterruptMask | ( | PACSS_MMIO_Type * | base | ) |
Returns the masked (enabled) MMIO interrupt status.
base | The pointer to the MMIO instance of the PACSS. |
__STATIC_INLINE bool Cy_DSADC_AgcGetInterruptStatusMasked | ( | PACSS_MMIO_Type * | base | ) |
Returns the result of the bitwise AND operation between the corresponding interrupt request and mask bits.
base | The pointer to the MMIO instance of the PACSS. |