Macros
ADC Exported Macros
Peripheral Driver » HAL Driver » ADC » Defines

## 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 266 of file gr533x_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 260 of file gr533x_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 284 of file gr533x_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

  The | new state of notempty flag (TRUE or FALSE).

Definition at line 272 of file gr533x_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 254 of file gr533x_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

  if | the token locked by SW is success (TRUE or FALSE).

Definition at line 278 of file gr533x_hal_adc.h.