Initialization and de-initialization Functions

Initialization and Configuration functions. More...

Functions

hal_status_t hal_adc_init (adc_handle_t *p_adc)
 Initialize the ADC according to the specified parameters in the adc_init_t and initialize the associated handle. More...
 
hal_status_t hal_adc_deinit (adc_handle_t *p_adc)
 De-initialize the ADC peripheral. More...
 
void hal_adc_msp_init (adc_handle_t *p_adc)
 Initialize the ADC MSP. More...
 
void hal_adc_msp_deinit (adc_handle_t *p_adc)
 De-initialize the ADC MSP. More...
 

Detailed Description

Initialization and Configuration functions.

Function Documentation

◆ hal_adc_deinit()

hal_status_t hal_adc_deinit ( adc_handle_t p_adc)

De-initialize the ADC peripheral.

Parameters
[in]p_adcPointer to an ADC handle which contains the configuration information for the specified ADC module.
Return values
HAL_OKOperation is OK.
HAL_ERRORParameter error or operation not supported.
HAL_BUSYDriver is busy.
HAL_TIMEOUTTimeout occurred.

◆ hal_adc_init()

hal_status_t hal_adc_init ( adc_handle_t p_adc)

Initialize the ADC according to the specified parameters in the adc_init_t and initialize the associated handle.

Parameters
[in]p_adcPointer to an ADC handle which contains the configuration information for the specified ADC module.
Return values
HAL_OKOperation is OK.
HAL_ERRORParameter error or operation not supported.
HAL_BUSYDriver is busy.
HAL_TIMEOUTTimeout occurred.

◆ hal_adc_msp_deinit()

void hal_adc_msp_deinit ( adc_handle_t p_adc)

De-initialize the ADC MSP.

Note
This function should not be modified. When the callback is needed, the hal_adc_msp_deinit can be implemented in the user file.
Parameters
[in]p_adcPointer to an ADC handle which contains the configuration information for the specified ADC module.

◆ hal_adc_msp_init()

void hal_adc_msp_init ( adc_handle_t p_adc)

Initialize the ADC MSP.

Note
This function should not be modified. When the callback is needed, the hal_adc_msp_deinit can be implemented in the user file.
Parameters
[in]p_adcPointer to an ADC handle which contains the configuration information for the specified ADC module.