Functions | |
__STATIC_INLINE void | Cy_SAR_FifoRead (const SAR_Type *base, cy_stc_sar_fifo_read_t *readStruct) |
Reads FIFO word-by-word. More... | |
__STATIC_INLINE uint32_t | Cy_SAR_FifoGetDataCount (const SAR_Type *base) |
Returns a number of non-empty FIFO cells. More... | |
__STATIC_INLINE void | Cy_SAR_FifoSetLevel (const SAR_Type *base, uint32_t level) |
Sets the FIFO trigger level which specifies how many samples FIFO should contain in order to generate trigger event. More... | |
__STATIC_INLINE void | Cy_SAR_ClearFifoInterrupt (const SAR_Type *base, uint32_t intrMask) |
Clear the FIFO interrupt. More... | |
__STATIC_INLINE void | Cy_SAR_SetFifoInterrupt (const SAR_Type *base, uint32_t intrMask) |
Trigger an interrupt with software. More... | |
__STATIC_INLINE void | Cy_SAR_SetFifoInterruptMask (const SAR_Type *base, uint32_t intrMask) |
Enable which interrupts can trigger the CPU interrupt controller. More... | |
__STATIC_INLINE uint32_t | Cy_SAR_GetFifoInterruptStatus (const SAR_Type *base) |
Return the interrupt register status. More... | |
__STATIC_INLINE uint32_t | Cy_SAR_GetFifoInterruptMask (const SAR_Type *base) |
Return which interrupts can trigger the CPU interrupt controller as configured by Cy_SAR_SetFifoInterruptMask. More... | |
__STATIC_INLINE uint32_t | Cy_SAR_GetFifoInterruptStatusMasked (const SAR_Type *base) |
Return the bitwise AND between the interrupt request and mask registers. More... | |
__STATIC_INLINE void Cy_SAR_FifoRead | ( | const SAR_Type * | base, |
cy_stc_sar_fifo_read_t * | readStruct | ||
) |
Reads FIFO word-by-word.
__STATIC_INLINE uint32_t Cy_SAR_FifoGetDataCount | ( | const SAR_Type * | base | ) |
Returns a number of non-empty FIFO cells.
__STATIC_INLINE void Cy_SAR_FifoSetLevel | ( | const SAR_Type * | base, |
uint32_t | level | ||
) |
Sets the FIFO trigger level which specifies how many samples FIFO should contain in order to generate trigger event.
base | Pointer to structure describing registers |
level | The FIFO trigger level to be set. Range: 1..256. |
__STATIC_INLINE void Cy_SAR_ClearFifoInterrupt | ( | const SAR_Type * | base, |
uint32_t | intrMask | ||
) |
Clear the FIFO 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_GetFifoInterruptStatus. Alternately, select one or more values from Interrupt Masks and "OR" them together. |
__STATIC_INLINE void Cy_SAR_SetFifoInterrupt | ( | const 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_SetFifoInterruptMask | ( | const 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_GetFifoInterruptStatus | ( | const SAR_Type * | base | ) |
Return the interrupt register status.
base | Pointer to structure describing registers |
__STATIC_INLINE uint32_t Cy_SAR_GetFifoInterruptMask | ( | const SAR_Type * | base | ) |
Return which interrupts can trigger the CPU interrupt controller as configured by Cy_SAR_SetFifoInterruptMask.
base | Pointer to structure describing registers |
__STATIC_INLINE uint32_t Cy_SAR_GetFifoInterruptStatusMasked | ( | const SAR_Type * | base | ) |
Return the bitwise AND between the interrupt request and mask registers.
See Cy_SAR_GetFifoInterruptStatus and Cy_SAR_GetFifoInterruptMask.
base | Pointer to structure describing registers |