/******************************************************************************* * Function Name: ADC_DelSig_1_Wakeup ******************************************************************************** * * Summary: * Restores the user configuration and enables the power to the block. * * Parameters: * None * * Return: * None * * Global variables: * ADC_DelSig_1_backup: The structure field 'enableState' is used to * restore the enable state of block after wakeup from sleep mode. * *******************************************************************************/ void ADC_DelSig_1_Wakeup(void) { /* Restore the configuration */ ADC_DelSig_1_RestoreConfig(); /* Enables the component operation */ if(ADC_DelSig_1_backup.enableState != ADC_DelSig_1_DISABLED) { ADC_DelSig_1_Enable(); if((ADC_DelSig_1_backup.enableState & ADC_DelSig_1_STARTED) != 0u) { ADC_DelSig_1_StartConvert(); } } /* Do nothing if component was disable before */ }
/******************************************************************************* * Function Name: ADC_DelSig_1_Wakeup ******************************************************************************** * * Summary: * Restores the user configuration and enables the power to the block. * * Parameters: * void * * Return: * void * * Global variables: * ADC_DelSig_1_backup: The structure field 'enableState' is used to * restore the enable state of block after wakeup from sleep mode. * *******************************************************************************/ void ADC_DelSig_1_Wakeup(void) { /* Restore the configuration */ ADC_DelSig_1_RestoreConfig(); /* Enable's the component operation */ if(ADC_DelSig_1_backup.enableState == ADC_DelSig_1_ENABLED) { ADC_DelSig_1_Enable(); /* Start the conversion only if conversion is not triggered by the hardware */ if(!(ADC_DelSig_1_DEC_CR_REG & ADC_DelSig_1_DEC_XSTART_EN)) { ADC_DelSig_1_StartConvert(); } } /* Do nothing if component was disable before */ }