ADC Exported Macros

Macros

#define __HAL_ADC_RESET_HANDLE_STATE(__HANDLE__)   ((__HANDLE__)->state = HAL_ADC_STATE_RESET)
 Reset ADC handle states. More...
 
#define __HAL_ADC_ENABLE(__HANDLE__)   ll_adc_enable()
 Enable the specified ADC peripheral. More...
 
#define __HAL_ADC_DISABLE(__HANDLE__)   ll_adc_disable()
 Disable the specified ADC peripheral. More...
 
#define __HAL_ADC_GET_FLAG_NOTEMPTY(__HANDLE__)   ll_adc_is_fifo_notempty()
 Check the FIFO is not empty. More...
 
#define __HAL_ADC_TRY_SWTOKEN_LOCK(__HANDLE__)   ll_adc_try_lock_sw_token()
 Try to lock ADC token by SW. More...
 
#define __HAL_ADC_FLUSH_FIFO(__HANDLE__)
 Flush the FIFO. More...
 

Detailed Description

Macro Definition Documentation

◆ __HAL_ADC_DISABLE

#define __HAL_ADC_DISABLE (   __HANDLE__)    ll_adc_disable()

Disable the specified ADC peripheral.

Parameters
__HANDLE__Specify the ADC Handle.
Return values
None

Definition at line 297 of file gr55xx_hal_adc.h.

◆ __HAL_ADC_ENABLE

#define __HAL_ADC_ENABLE (   __HANDLE__)    ll_adc_enable()

Enable the specified ADC peripheral.

Parameters
__HANDLE__Specify the ADC Handle.
Return values
None

Definition at line 291 of file gr55xx_hal_adc.h.

◆ __HAL_ADC_FLUSH_FIFO

#define __HAL_ADC_FLUSH_FIFO (   __HANDLE__)
Value:
do { \
while(ll_adc_is_fifo_notempty()) \
{ \
ll_adc_flush_fifo(); \
} \
} while(0)

Flush the FIFO.

Parameters
__HANDLE__Specify the ADC Handle.
Return values
None

Definition at line 315 of file gr55xx_hal_adc.h.

◆ __HAL_ADC_GET_FLAG_NOTEMPTY

#define __HAL_ADC_GET_FLAG_NOTEMPTY (   __HANDLE__)    ll_adc_is_fifo_notempty()

Check the FIFO is not empty.

Parameters
__HANDLE__Specify the ADC Handle.
Return values
Thenew state of notempty flag (TRUE or FALSE).

Definition at line 303 of file gr55xx_hal_adc.h.

◆ __HAL_ADC_RESET_HANDLE_STATE

#define __HAL_ADC_RESET_HANDLE_STATE (   __HANDLE__)    ((__HANDLE__)->state = HAL_ADC_STATE_RESET)

Reset ADC handle states.

Parameters
__HANDLE__ADC handle.
Return values
None

Definition at line 285 of file gr55xx_hal_adc.h.

◆ __HAL_ADC_TRY_SWTOKEN_LOCK

#define __HAL_ADC_TRY_SWTOKEN_LOCK (   __HANDLE__)    ll_adc_try_lock_sw_token()

Try to lock ADC token by SW.

Parameters
__HANDLE__Specify the ADC Handle.
Return values
ifthe token locked by SW is success (TRUE or FALSE).

Definition at line 309 of file gr55xx_hal_adc.h.