Macros
ADC Exported Macros
Peripheral Driver » HAL Driver » ADC » Defines
Collaboration diagram for 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_ENABLE_CLOCK(__HANDLE__) ll_adc_enable_clock()
| Enable the specified ADC clock. More...
#define | __HAL_ADC_DISABLE_CLOCK(__HANDLE__) ll_adc_disable_clock()
| Disable the specified ADC clock. More...
#define | __HAL_ADC_GET_FLAG_NOTEMPTY(__HANDLE__) ll_adc_is_fifo_notempty()
| Check the FIFO is not empty. 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

  <strong>HANDLE</strong> | Specify the ADC Handle.

Return values

  None |

Definition at line 258 of file gr55xx_hal_adc.h.

## ◆ __HAL_ADC_DISABLE_CLOCK

#define __HAL_ADC_DISABLE_CLOCK | ( |  | __HANDLE__ | ) | ll_adc_disable_clock()

Disable the specified ADC clock.

Parameters

  <strong>HANDLE</strong> | Specify the ADC Handle.

Return values

  None |

Definition at line 270 of file gr55xx_hal_adc.h.

## ◆ __HAL_ADC_ENABLE

#define __HAL_ADC_ENABLE | ( |  | __HANDLE__ | ) | ll_adc_enable()

Enable the specified ADC peripheral.

Parameters

  <strong>HANDLE</strong> | Specify the ADC Handle.

Return values

  None |

Definition at line 252 of file gr55xx_hal_adc.h.

## ◆ __HAL_ADC_ENABLE_CLOCK

#define __HAL_ADC_ENABLE_CLOCK | ( |  | __HANDLE__ | ) | ll_adc_enable_clock()

Enable the specified ADC clock.

Parameters

  <strong>HANDLE</strong> | Specify the ADC Handle.

Return values

  None |

Definition at line 264 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_read_fifo(); \
} \
} while(0)

Flush the FIFO.

Parameters

  <strong>HANDLE</strong> | Specify the ADC Handle.

Return values

  None |

Definition at line 282 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

  <strong>HANDLE</strong> | Specify the ADC Handle.

Return values

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

Definition at line 276 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

  <strong>HANDLE</strong> | ADC handle.

Return values

  None |

Definition at line 246 of file gr55xx_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: gr55xx_ll_adc.h:1012