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 263 of file 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 257 of file hal_adc.h.

◆ __HAL_ADC_FLUSH_FIFO

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

Flush the FIFO.

Parameters
__HANDLE__Specify the ADC Handle.
Return values
None

Definition at line 281 of file 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 269 of file 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 251 of file 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 275 of file hal_adc.h.

ll_adc_is_fifo_notempty
__STATIC_INLINE uint32_t ll_adc_is_fifo_notempty(void)
Check if ADC FIFO is not empty.
Definition: ll_adc.h:897