Functions | |
cy_rslt_t | Cy_HPPASS_Init (const cy_stc_hppass_cfg_t *cfg) |
Configures the entire HPPASS block including AC, STT, CSG and SAR according to the provided settings. More... | |
void | Cy_HPPASS_DeInit (void) |
De-initializes the AC, STT, AREF, SAR, CSG, and triggers register values to default. More... | |
cy_en_syspm_status_t | Cy_HPPASS_DeepSleepCallback (cy_stc_syspm_callback_params_t *callbackParams, cy_en_syspm_callback_mode_t mode) |
DeepSleep callback saves the SAR ADC calibration values before switch to deep sleep power mode and restore them after the wakeup. More... | |
__STATIC_INLINE cy_en_hppass_status_t | Cy_HPPASS_TriggerInConfig (uint8_t trigIdx, const cy_stc_hppass_trig_in_t *trig) |
Sets the input trigger type and operation mode. More... | |
__STATIC_INLINE cy_en_hppass_status_t | Cy_HPPASS_TriggerOutLevelConfig (uint8_t trigIdx, const cy_stc_hppass_trig_out_level_t *trig) |
Sets the LEVEL trigger output configuration. More... | |
__STATIC_INLINE cy_en_hppass_status_t | Cy_HPPASS_TriggerOutPulseConfig (uint8_t trigIdx, cy_en_hppass_trig_out_pulse_t trig) |
Sets the PULSE trigger output configuration. More... | |
cy_rslt_t Cy_HPPASS_Init | ( | const cy_stc_hppass_cfg_t * | cfg | ) |
Configures the entire HPPASS block including AC, STT, CSG and SAR according to the provided settings.
cfg | Pointer to structure containing configuration data for the entire High Performance Programmable Analog Sub-System, cy_stc_hppass_cfg_t. The pointer cannot be NULL. |
void Cy_HPPASS_DeInit | ( | void | ) |
De-initializes the AC, STT, AREF, SAR, CSG, and triggers register values to default.
cy_en_syspm_status_t Cy_HPPASS_DeepSleepCallback | ( | cy_stc_syspm_callback_params_t * | callbackParams, |
cy_en_syspm_callback_mode_t | mode | ||
) |
DeepSleep callback saves the SAR ADC calibration values before switch to deep sleep power mode and restore them after the wakeup.
callbackParams | Callback parameters, see cy_stc_syspm_callback_params_t |
mode | Callback mode, see cy_en_syspm_callback_mode_t |
__STATIC_INLINE cy_en_hppass_status_t Cy_HPPASS_TriggerInConfig | ( | uint8_t | trigIdx, |
const cy_stc_hppass_trig_in_t * | trig | ||
) |
Sets the input trigger type and operation mode.
trigIdx | Trigger index. See Trigger Indexes. |
trig | Pointer to the input trigger structure. See cy_stc_hppass_trig_in_t. The pointer cannot be NULL. |
__STATIC_INLINE cy_en_hppass_status_t Cy_HPPASS_TriggerOutLevelConfig | ( | uint8_t | trigIdx, |
const cy_stc_hppass_trig_out_level_t * | trig | ||
) |
Sets the LEVEL trigger output configuration.
trigIdx | Trigger index. See Trigger Indexes. |
trig | Pointer to the output LEVEL trigger structure. See cy_stc_hppass_trig_out_level_t. The pointer cannot be NULL. |
__STATIC_INLINE cy_en_hppass_status_t Cy_HPPASS_TriggerOutPulseConfig | ( | uint8_t | trigIdx, |
cy_en_hppass_trig_out_pulse_t | trig | ||
) |
Sets the PULSE trigger output configuration.
trigIdx | Trigger index. See Trigger Indexes. |
trig | The PULSE trigger out select. See cy_en_hppass_trig_out_pulse_t. |