API Reference | |
DAC functions | |
Comparator functions | |
Functions | |
cy_rslt_t | Cy_HPPASS_CSG_Init (const cy_stc_hppass_csg_t *csgCfg) |
Loads the CSG configuration. More... | |
void | Cy_HPPASS_CSG_DeInit (void) |
De-initializes the CSG block, returns register values to default. | |
cy_en_hppass_status_t | Cy_HPPASS_CSG_SliceConfig (uint8_t sliceIdx, const cy_stc_hppass_slice_t *slice) |
Configures comparator and DAC for the specified CSG slice. More... | |
cy_en_hppass_status_t | Cy_HPPASS_CSG_LoadWaveform (uint8_t lutIdx, uint8_t dataIdx, uint8_t numSamples, const uint16_t *waveform) |
Sets waveform data for the specified LUT. More... | |
__STATIC_INLINE uint32_t | Cy_HPPASS_DAC_GetInterruptStatus (void) |
Gets the interrupt register status for the specified DAC. More... | |
__STATIC_INLINE void | Cy_HPPASS_DAC_ClearInterrupt (uint32_t interrupt) |
Clears the interrupt for the specified DAC. More... | |
__STATIC_INLINE void | Cy_HPPASS_DAC_SetInterrupt (uint32_t interrupt) |
Sets a software interrupt request for the specified DAC. More... | |
__STATIC_INLINE void | Cy_HPPASS_DAC_SetInterruptMask (uint32_t interrupt) |
Enables the interrupt for the specified DAC. More... | |
__STATIC_INLINE uint32_t | Cy_HPPASS_DAC_GetInterruptMask (void) |
Gets the interrupt mask for the specified DAC. More... | |
__STATIC_INLINE uint32_t | Cy_HPPASS_DAC_GetInterruptStatusMasked (void) |
Gets all DACs interrupt masked status. More... | |
__STATIC_INLINE uint32_t | Cy_HPPASS_Comp_GetInterruptStatus (void) |
Gets the interrupt register status for the specified comparator. More... | |
__STATIC_INLINE void | Cy_HPPASS_Comp_ClearInterrupt (uint32_t interrupt) |
Clears the interrupt for the specified comparator. More... | |
__STATIC_INLINE void | Cy_HPPASS_Comp_SetInterrupt (uint32_t interrupt) |
Sets a software interrupt request for the specified comparator. More... | |
__STATIC_INLINE void | Cy_HPPASS_Comp_SetInterruptMask (uint32_t interrupt) |
Enables the interrupt for the specified comparator. More... | |
__STATIC_INLINE uint32_t | Cy_HPPASS_Comp_GetInterruptMask (void) |
Gets the interrupt mask for the specified comparator. More... | |
__STATIC_INLINE uint32_t | Cy_HPPASS_Comp_GetInterruptStatusMasked (void) |
Gets all comparators interrupt masked status. More... | |
cy_rslt_t Cy_HPPASS_CSG_Init | ( | const cy_stc_hppass_csg_t * | csgCfg | ) |
Loads the CSG configuration.
Can be used after the Cy_HPPASS_Init function to update the CSG settings.
csgCfg | Pointer to the CSG configuration structure cy_stc_hppass_csg_t. The pointer cannot be NULL. |
cy_en_hppass_status_t Cy_HPPASS_CSG_SliceConfig | ( | uint8_t | sliceIdx, |
const cy_stc_hppass_slice_t * | slice | ||
) |
Configures comparator and DAC for the specified CSG slice.
sliceIdx | The CSG slice. Valid range: 0..4. |
slice | Pointer to the CSG slice configuration structure cy_stc_hppass_slice_t. The pointer cannot be NULL. |
cy_en_hppass_status_t Cy_HPPASS_CSG_LoadWaveform | ( | uint8_t | lutIdx, |
uint8_t | dataIdx, | ||
uint8_t | numSamples, | ||
const uint16_t * | waveform | ||
) |
Sets waveform data for the specified LUT.
lutIdx | The LUT index. Valid range: 0..1. |
dataIdx | Start index of the waveform in the lookup table. Valid range: 0..127. |
numSamples | Number of samples for the waveform. Valid range: 1..128. |
waveform | The pointer to LUT data array, max size is 128. The pointer cannot be NULL. |
__STATIC_INLINE uint32_t Cy_HPPASS_DAC_GetInterruptStatus | ( | void | ) |
Gets the interrupt register status for the specified DAC.
__STATIC_INLINE void Cy_HPPASS_DAC_ClearInterrupt | ( | uint32_t | interrupt | ) |
Clears the interrupt for the specified DAC.
interrupt | The mask of interrupts to clear. Each bit of this mask is responsible for clearing of the particular interrupt in the DAC DAC Interrupt Masks. |
__STATIC_INLINE void Cy_HPPASS_DAC_SetInterrupt | ( | uint32_t | interrupt | ) |
Sets a software interrupt request for the specified DAC.
interrupt | The mask of interrupts to set. Each bit of this mask is responsible for triggering of the particular interrupt in the DAC DAC Interrupt Masks. |
__STATIC_INLINE void Cy_HPPASS_DAC_SetInterruptMask | ( | uint32_t | interrupt | ) |
Enables the interrupt for the specified DAC.
interrupt | The mask of interrupts allowable for activation. Each bit of this mask allows triggering of the particular interrupt in the DAC DAC Interrupt Masks. |
__STATIC_INLINE uint32_t Cy_HPPASS_DAC_GetInterruptMask | ( | void | ) |
Gets the interrupt mask for the specified DAC.
__STATIC_INLINE uint32_t Cy_HPPASS_DAC_GetInterruptStatusMasked | ( | void | ) |
Gets all DACs interrupt masked status.
__STATIC_INLINE uint32_t Cy_HPPASS_Comp_GetInterruptStatus | ( | void | ) |
Gets the interrupt register status for the specified comparator.
__STATIC_INLINE void Cy_HPPASS_Comp_ClearInterrupt | ( | uint32_t | interrupt | ) |
Clears the interrupt for the specified comparator.
interrupt | The mask of interrupts to clear. Each bit of this mask is responsible for clearing of the particular interrupt in the Comparator Comparator Interrupt Masks. |
__STATIC_INLINE void Cy_HPPASS_Comp_SetInterrupt | ( | uint32_t | interrupt | ) |
Sets a software interrupt request for the specified comparator.
interrupt | The mask of interrupts to set. Each bit of this mask is responsible for triggering of the particular interrupt in the Comparator Comparator Interrupt Masks. |
__STATIC_INLINE void Cy_HPPASS_Comp_SetInterruptMask | ( | uint32_t | interrupt | ) |
Enables the interrupt for the specified comparator.
interrupt | The mask of interrupts allowable for activation. Each bit of this mask allows triggering of the particular interrupt in the Comparator Comparator Interrupt Masks. |
__STATIC_INLINE uint32_t Cy_HPPASS_Comp_GetInterruptMask | ( | void | ) |
Gets the interrupt mask for the specified comparator.
__STATIC_INLINE uint32_t Cy_HPPASS_Comp_GetInterruptStatusMasked | ( | void | ) |
Gets all comparators interrupt masked status.