Interrupt

group group_sd_host_interrupt_functions

Functions

__STATIC_INLINE uint32_t Cy_SD_Host_GetNormalInterruptStatus (SDHC_Type const *base)

Returns the normal Int Status register.

Return

uint32_t The Bit mask of the normal Int Status.

Parameters
  • *base: The SD host registers structure pointer.

__STATIC_INLINE void Cy_SD_Host_ClearNormalInterruptStatus (SDHC_Type *base, uint32_t status)

Clears the selected SD host normal status.

Parameters
  • *base: The SD host registers structure pointer.

  • status: The bitmask of statuses to clear.

__STATIC_INLINE void Cy_SD_Host_SetNormalInterruptEnable (SDHC_Type *base, uint32_t interrupt)

Sets the bit to be active in the Int status register.

Parameters
  • *base: The SD host registers structure pointer.

  • interrupt: The Bit field of which normal interrupt status to enable.

__STATIC_INLINE uint32_t Cy_SD_Host_GetNormalInterruptEnable (SDHC_Type const *base)

Returns which normal interrupts are enabled.

Return

uint32_t The Bit field of which normal interrupt statuses are enabled.

Parameters
  • *base: The SD host registers structure pointer.

__STATIC_INLINE void Cy_SD_Host_SetNormalInterruptMask (SDHC_Type *base, uint32_t interruptMask)

Setting a bit in this register allows the enabled status to cause an interrupt.

Parameters
  • *base: The SD host registers structure pointer.

  • interruptMask: The Bit field of which normal interrupts can cause an interrupt.

__STATIC_INLINE uint32_t Cy_SD_Host_GetNormalInterruptMask (SDHC_Type const *base)

Returns which normal interrupts are masked to cause an interrupt.

Return

uint32_t The Bit field of which normal interrupts are masked to cause an interrupt.

Parameters
  • *base: The SD host registers structure pointer.

__STATIC_INLINE uint32_t Cy_SD_Host_GetErrorInterruptStatus (SDHC_Type const *base)

Returns the error Int Status register.

Return

uint32_t The bit mask of the error Int status.

Parameters
  • *base: The SD host registers structure pointer.

__STATIC_INLINE void Cy_SD_Host_ClearErrorInterruptStatus (SDHC_Type *base, uint32_t status)

Clears the error interrupt status.

Parameters
  • *base: The SD host registers structure pointer.

  • status: The bitmask of statuses to clear.

__STATIC_INLINE void Cy_SD_Host_SetErrorInterruptEnable (SDHC_Type *base, uint32_t interrupt)

Setting a bit in this register allows for the bit to be active in the Int status register.

Parameters
  • *base: The SD host registers structure pointer.

  • interrupt: The Bit field of which error interrupt status to enable.

__STATIC_INLINE uint32_t Cy_SD_Host_GetErrorInterruptEnable (SDHC_Type const *base)

Returns which error interrupts are enabled.

Return

uint32_t The Bit field of which error interrupt statuses are enabled.

Parameters
  • *base: The SD host registers structure pointer.

__STATIC_INLINE void Cy_SD_Host_SetErrorInterruptMask (SDHC_Type *base, uint32_t interruptMask)

Setting a bit in this register allows the enabled status to cause an interrupt.

Parameters
  • *base: The SD host registers structure pointer.

  • interruptMask: The Bit filed of which error interrupts can cause an interrupt.

__STATIC_INLINE uint32_t Cy_SD_Host_GetErrorInterruptMask (SDHC_Type const *base)

Returns which error interrupts are masked to cause an interrupt.

Return

uint32_t The Bit field of which error interrupts are masked to cause an interrupt.

Parameters
  • *base: The SD host registers structure pointer.