Functions | |
__STATIC_INLINE cy_en_hppass_status_t | Cy_HPPASS_FIFO_Config (const cy_stc_hppass_fifo_t *fifoCfg) |
Initializes the FIFO buffer. More... | |
__STATIC_INLINE uint8_t | Cy_HPPASS_FIFO_GetSampleCount (uint8_t fifoIdx) |
Returns the number of accumulated data words. More... | |
__STATIC_INLINE int16_t | Cy_HPPASS_FIFO_Read (uint8_t fifoIdx, uint8_t *chanIdx) |
Returns the FIFO data word and the channel index. More... | |
uint8_t | Cy_HPPASS_FIFO_ReadAll (uint8_t fifoIdx, int16_t *data, uint8_t *chanIdxs) |
Loads all the FIFO payload into the array. More... | |
__STATIC_INLINE uint32_t | Cy_HPPASS_FIFO_GetInterruptStatus (void) |
Gets the interrupt register status for the specified FIFO. More... | |
__STATIC_INLINE void | Cy_HPPASS_FIFO_SetInterrupt (uint32_t interrupt) |
Sets a software interrupt request for the specified FIFO. More... | |
__STATIC_INLINE void | Cy_HPPASS_FIFO_ClearInterrupt (uint32_t interrupt) |
Clears the interrupt for the specified FIFO. More... | |
__STATIC_INLINE void | Cy_HPPASS_FIFO_SetInterruptMask (uint32_t interrupt) |
Enables the interrupt for the specified FIFO. More... | |
__STATIC_INLINE uint32_t | Cy_HPPASS_FIFO_GetInterruptMask (void) |
Gets the interrupt mask for the specified FIFO. More... | |
__STATIC_INLINE uint32_t | Cy_HPPASS_FIFO_GetInterruptStatusMasked (void) |
Gets all FIFOs interrupt masked status. More... | |
__STATIC_INLINE cy_en_hppass_status_t Cy_HPPASS_FIFO_Config | ( | const cy_stc_hppass_fifo_t * | fifoCfg | ) |
Initializes the FIFO buffer.
fifoCfg | Pointer to the FIFO buffer structure cy_stc_hppass_fifo_t. The pointer cannot be NULL. |
__STATIC_INLINE uint8_t Cy_HPPASS_FIFO_GetSampleCount | ( | uint8_t | fifoIdx | ) |
Returns the number of accumulated data words.
fifoIdx | The index of the FIFO part. Valid range 0..3, but depends on cy_stc_hppass_fifo_t::mode setting. |
__STATIC_INLINE int16_t Cy_HPPASS_FIFO_Read | ( | uint8_t | fifoIdx, |
uint8_t * | chanIdx | ||
) |
Returns the FIFO data word and the channel index.
fifoIdx | The index of the FIFO part. Valid range 0..3, but depends on cy_stc_hppass_fifo_t::mode setting |
chanIdx | The pointer to the variable to store channel index Channel Indexes. This is optional - the pointer may be NULL (if channel index is not needed). |
uint8_t Cy_HPPASS_FIFO_ReadAll | ( | uint8_t | fifoIdx, |
int16_t * | data, | ||
uint8_t * | chanIdxs | ||
) |
Loads all the FIFO payload into the array.
fifoIdx | The index of the FIFO buffer. Valid range 0..3, but depends on cy_stc_hppass_fifo_t::mode setting |
data | Pointer to the data array User is responsible for enough array size, it depends on cy_stc_hppass_fifo_t::mode setting |
chanIdxs | Pointer to the array to store channel indexes Channel Indexes. User is responsible for enough array size, it depends on cy_stc_hppass_fifo_t::mode setting Also this is optional - the pointer may be NULL (if channel indexes are not needed). |
__STATIC_INLINE uint32_t Cy_HPPASS_FIFO_GetInterruptStatus | ( | void | ) |
Gets the interrupt register status for the specified FIFO.
__STATIC_INLINE void Cy_HPPASS_FIFO_SetInterrupt | ( | uint32_t | interrupt | ) |
Sets a software interrupt request for the specified FIFO.
interrupt | The mask of interrupts to be set. Each bit of this mask is responsible for triggering of the particular interrupt in the FIFO Group_hppass_fifo_level_interrupts. |
__STATIC_INLINE void Cy_HPPASS_FIFO_ClearInterrupt | ( | uint32_t | interrupt | ) |
Clears the interrupt for the specified FIFO.
interrupt | The mask of interrupts to be cleared. Each bit of this mask is responsible for triggering of the particular interrupt in the FIFO Group_hppass_fifo_level_interrupts. |
__STATIC_INLINE void Cy_HPPASS_FIFO_SetInterruptMask | ( | uint32_t | interrupt | ) |
Enables the interrupt for the specified FIFO.
interrupt | The mask of interrupts allowable for activation. Each bit of this mask allows triggering of the particular interrupt in the FIFO Group_hppass_fifo_level_interrupts. |
__STATIC_INLINE uint32_t Cy_HPPASS_FIFO_GetInterruptMask | ( | void | ) |
Gets the interrupt mask for the specified FIFO.
__STATIC_INLINE uint32_t Cy_HPPASS_FIFO_GetInterruptStatusMasked | ( | void | ) |
Gets all FIFOs interrupt masked status.