This set of functions are related to SAR interrupts.
Functions | |
__STATIC_INLINE uint32_t | Cy_SAR_GetInterruptStatus (const SAR_Type *base) |
Return the interrupt register status. More... | |
__STATIC_INLINE void | Cy_SAR_ClearInterrupt (SAR_Type *base, uint32_t intrMask) |
Clear the interrupt. More... | |
__STATIC_INLINE void | Cy_SAR_SetInterrupt (SAR_Type *base, uint32_t intrMask) |
Trigger an interrupt with software. More... | |
__STATIC_INLINE void | Cy_SAR_SetInterruptMask (SAR_Type *base, uint32_t intrMask) |
Enable which interrupts can trigger the CPU interrupt controller. More... | |
__STATIC_INLINE uint32_t | Cy_SAR_GetInterruptMask (const SAR_Type *base) |
Return which interrupts can trigger the CPU interrupt controller as configured by Cy_SAR_SetInterruptMask. More... | |
__STATIC_INLINE uint32_t | Cy_SAR_GetInterruptStatusMasked (const SAR_Type *base) |
Return the bitwise AND between the interrupt request and mask registers. More... | |
__STATIC_INLINE uint32_t | Cy_SAR_GetRangeInterruptStatus (const SAR_Type *base) |
Return the range interrupt register status. More... | |
__STATIC_INLINE void | Cy_SAR_ClearRangeInterrupt (SAR_Type *base, uint32_t chanMask) |
Clear the range interrupt for the specified channel mask. More... | |
__STATIC_INLINE void | Cy_SAR_SetRangeInterrupt (SAR_Type *base, uint32_t chanMask) |
Trigger a range interrupt with software for the specific channel mask. More... | |
__STATIC_INLINE void | Cy_SAR_SetRangeInterruptMask (SAR_Type *base, uint32_t chanMask) |
Enable which channels can trigger a range interrupt. More... | |
__STATIC_INLINE uint32_t | Cy_SAR_GetRangeInterruptMask (const SAR_Type *base) |
Return which interrupts can trigger a range interrupt as configured by Cy_SAR_SetRangeInterruptMask. More... | |
__STATIC_INLINE uint32_t | Cy_SAR_GetRangeInterruptStatusMasked (const SAR_Type *base) |
Return the bitwise AND between the range interrupt request and mask registers. More... | |
__STATIC_INLINE uint32_t | Cy_SAR_GetSatInterruptStatus (const SAR_Type *base) |
Return the saturate interrupt register status. More... | |
__STATIC_INLINE void | Cy_SAR_ClearSatInterrupt (SAR_Type *base, uint32_t chanMask) |
Clear the saturate interrupt for the specified channel mask. More... | |
__STATIC_INLINE void | Cy_SAR_SetSatInterrupt (SAR_Type *base, uint32_t chanMask) |
Trigger a saturate interrupt with software for the specific channel mask. More... | |
__STATIC_INLINE void | Cy_SAR_SetSatInterruptMask (SAR_Type *base, uint32_t chanMask) |
Enable which channels can trigger a saturate interrupt. More... | |
__STATIC_INLINE uint32_t | Cy_SAR_GetSatInterruptMask (const SAR_Type *base) |
Return which interrupts can trigger a saturate interrupt as configured by Cy_SAR_SetSatInterruptMask. More... | |
__STATIC_INLINE uint32_t | Cy_SAR_GetSatInterruptStatusMasked (const SAR_Type *base) |
Return the bitwise AND between the saturate interrupt request and mask registers. More... | |
__STATIC_INLINE uint32_t | Cy_SAR_GetInterruptCause (const SAR_Type *base) |
Return the cause of the interrupt. More... | |
__STATIC_INLINE uint32_t Cy_SAR_GetInterruptStatus | ( | const SAR_Type * | base | ) |
Return the interrupt register status.
base | Pointer to structure describing registers |
__STATIC_INLINE void Cy_SAR_ClearInterrupt | ( | SAR_Type * | base, |
uint32_t | intrMask | ||
) |
Clear the interrupt.
The interrupt must be cleared with this function so that the hardware can set subsequent interrupts and those interrupts can be forwarded to the interrupt controller, if enabled.
base | Pointer to structure describing registers |
intrMask | The mask of interrupts to clear. Typically this will be the value returned from Cy_SAR_GetInterruptStatus. Alternately, select one or more values from Interrupt Masks and "OR" them together. |
__STATIC_INLINE void Cy_SAR_SetInterrupt | ( | SAR_Type * | base, |
uint32_t | intrMask | ||
) |
Trigger an interrupt with software.
base | Pointer to structure describing registers |
intrMask | The mask of interrupts to set. Select one or more values from Interrupt Masks and "OR" them together. |
__STATIC_INLINE void Cy_SAR_SetInterruptMask | ( | SAR_Type * | base, |
uint32_t | intrMask | ||
) |
Enable which interrupts can trigger the CPU interrupt controller.
base | Pointer to structure describing registers |
intrMask | The mask of interrupts. Select one or more values from Interrupt Masks and "OR" them together: |
__STATIC_INLINE uint32_t Cy_SAR_GetInterruptMask | ( | const SAR_Type * | base | ) |
Return which interrupts can trigger the CPU interrupt controller as configured by Cy_SAR_SetInterruptMask.
base | Pointer to structure describing registers |
__STATIC_INLINE uint32_t Cy_SAR_GetInterruptStatusMasked | ( | const SAR_Type * | base | ) |
Return the bitwise AND between the interrupt request and mask registers.
See Cy_SAR_GetInterruptStatus and Cy_SAR_GetInterruptMask.
base | Pointer to structure describing registers |
__STATIC_INLINE uint32_t Cy_SAR_GetRangeInterruptStatus | ( | const SAR_Type * | base | ) |
Return the range interrupt register status.
If the status bit is low for a channel, the channel may not be enabled (Cy_SAR_SetChanMask), range detection is not enabled for the channel (Cy_SAR_SetRangeInterruptMask), or range detection was not triggered for the channel.
base | Pointer to structure describing registers |
__STATIC_INLINE void Cy_SAR_ClearRangeInterrupt | ( | SAR_Type * | base, |
uint32_t | chanMask | ||
) |
Clear the range interrupt for the specified channel mask.
The interrupt must be cleared with this function so that the hardware can set subset interrupts and those interrupts can be forwarded to the interrupt controller, if enabled.
base | Pointer to structure describing registers |
chanMask | The channel mask. Bit 0 is for channel 0, etc. Typically, this is the value returned from Cy_SAR_GetRangeInterruptStatus. |
__STATIC_INLINE void Cy_SAR_SetRangeInterrupt | ( | SAR_Type * | base, |
uint32_t | chanMask | ||
) |
Trigger a range interrupt with software for the specific channel mask.
base | Pointer to structure describing registers |
chanMask | The channel mask. Bit 0 is for channel 0, etc. |
__STATIC_INLINE void Cy_SAR_SetRangeInterruptMask | ( | SAR_Type * | base, |
uint32_t | chanMask | ||
) |
Enable which channels can trigger a range interrupt.
base | Pointer to structure describing registers |
chanMask | The channel mask. Bit 0 is for channel 0, etc. |
__STATIC_INLINE uint32_t Cy_SAR_GetRangeInterruptMask | ( | const SAR_Type * | base | ) |
Return which interrupts can trigger a range interrupt as configured by Cy_SAR_SetRangeInterruptMask.
base | Pointer to structure describing registers |
__STATIC_INLINE uint32_t Cy_SAR_GetRangeInterruptStatusMasked | ( | const SAR_Type * | base | ) |
Return the bitwise AND between the range interrupt request and mask registers.
See Cy_SAR_GetRangeInterruptStatus and Cy_SAR_GetRangeInterruptMask.
base | Pointer to structure describing registers |
__STATIC_INLINE uint32_t Cy_SAR_GetSatInterruptStatus | ( | const SAR_Type * | base | ) |
Return the saturate interrupt register status.
If the status bit is low for a channel, the channel may not be enabled (Cy_SAR_SetChanMask), saturation detection is not enabled for the channel (Cy_SAR_SetSatInterruptMask), or saturation detection was not triggered for the channel.
base | Pointer to structure describing registers |
__STATIC_INLINE void Cy_SAR_ClearSatInterrupt | ( | SAR_Type * | base, |
uint32_t | chanMask | ||
) |
Clear the saturate interrupt for the specified channel mask.
The interrupt must be cleared with this function so that the hardware can set subsequent interrupts and those interrupts can be forwarded to the interrupt controller, if enabled.
base | Pointer to structure describing registers |
chanMask | The channel mask. Bit 0 is for channel 0, etc. Typically, this is the value returned from Cy_SAR_GetSatInterruptStatus. |
__STATIC_INLINE void Cy_SAR_SetSatInterrupt | ( | SAR_Type * | base, |
uint32_t | chanMask | ||
) |
Trigger a saturate interrupt with software for the specific channel mask.
base | Pointer to structure describing registers |
chanMask | The channel mask. Bit 0 is for channel 0, etc. |
__STATIC_INLINE void Cy_SAR_SetSatInterruptMask | ( | SAR_Type * | base, |
uint32_t | chanMask | ||
) |
Enable which channels can trigger a saturate interrupt.
base | Pointer to structure describing registers |
chanMask | The channel mask. Bit 0 is for channel 0, etc. |
__STATIC_INLINE uint32_t Cy_SAR_GetSatInterruptMask | ( | const SAR_Type * | base | ) |
Return which interrupts can trigger a saturate interrupt as configured by Cy_SAR_SetSatInterruptMask.
base | Pointer to structure describing registers |
__STATIC_INLINE uint32_t Cy_SAR_GetSatInterruptStatusMasked | ( | const SAR_Type * | base | ) |
Return the bitwise AND between the saturate interrupt request and mask registers.
See Cy_SAR_GetSatInterruptStatus and Cy_SAR_GetSatInterruptMask.
base | Pointer to structure describing registers |
__STATIC_INLINE uint32_t Cy_SAR_GetInterruptCause | ( | const SAR_Type * | base | ) |
Return the cause of the interrupt.
The interrupt routine can be called due to one of the following events:
base | Pointer to structure describing registers |