Macros
TIMER Exported Macros
Peripheral Driver » HAL Driver » TIMER » Defines

## Macros
#define | __HAL_TIMER_RESET_HANDLE_STATE(__HANDLE__) ((__HANDLE__)->state = HAL_TIMER_STATE_RESET)
| Reset TIMER handle states. More...
#define | __HAL_TIMER_ENABLE(__HANDLE__) SET_BITS((__HANDLE__)->p_instance->CTRL, TIMER_CTRL_EN)
| Enable the specified TIMER peripheral. More...
#define | __HAL_TIMER_DISABLE(__HANDLE__) CLEAR_BITS((__HANDLE__)->p_instance->CTRL, TIMER_CTRL_EN)
| Disable the specified TIMER peripheral. More...
#define | __HAL_TIMER_ENABLE_IT(__HANDLE__) SET_BITS((__HANDLE__)->p_instance->CTRL, TIMER_CTRL_INTEN)
| Enable the TIMER interrupt. More...
#define | __HAL_TIMER_DISABLE_IT(__HANDLE__) CLEAR_BITS((__HANDLE__)->p_instance->CTRL, TIMER_CTRL_INTEN)
| Disable the TIMER interrupt. More...
#define | __HAL_TIMER_GET_FLAG_IT(__HANDLE__) ll_timer_is_active_flag_it(__HANDLE__->p_instance)
| Check whether the TIMER interrupt has occurred or not. More...
#define | __HAL_TIMER_CLEAR_FLAG_IT(__HANDLE__) ll_timer_clear_flag_it(__HANDLE__->p_instance)
| Clear the TIMER interrupt flag. More...

## Detailed Description

## Macro Definition Documentation

## ◆ __HAL_TIMER_CLEAR_FLAG_IT

#define __HAL_TIMER_CLEAR_FLAG_IT | ( |  | __HANDLE__ | ) | ll_timer_clear_flag_it(__HANDLE__->p_instance)

Clear the TIMER interrupt flag.

Parameters

  <strong>HANDLE</strong> | Specifies the TIMER Handle.

Return values

  None |

Definition at line 200 of file gr55xx_hal_tim.h.

## ◆ __HAL_TIMER_DISABLE

#define __HAL_TIMER_DISABLE | ( |  | __HANDLE__ | ) | CLEAR_BITS((__HANDLE__)->p_instance->CTRL, TIMER_CTRL_EN)

Disable the specified TIMER peripheral.

Parameters

  <strong>HANDLE</strong> | Specifies the TIMER Handle.

Return values

  None |

Definition at line 176 of file gr55xx_hal_tim.h.

## ◆ __HAL_TIMER_DISABLE_IT

#define __HAL_TIMER_DISABLE_IT | ( |  | __HANDLE__ | ) | CLEAR_BITS((__HANDLE__)->p_instance->CTRL, TIMER_CTRL_INTEN)

Disable the TIMER interrupt.

Parameters

  <strong>HANDLE</strong> | Specifies the TIMER Handle.

Return values

  None |

Definition at line 188 of file gr55xx_hal_tim.h.

## ◆ __HAL_TIMER_ENABLE

#define __HAL_TIMER_ENABLE | ( |  | __HANDLE__ | ) | SET_BITS((__HANDLE__)->p_instance->CTRL, TIMER_CTRL_EN)

Enable the specified TIMER peripheral.

Parameters

  <strong>HANDLE</strong> | Specifies the TIMER Handle.

Return values

  None |

Definition at line 170 of file gr55xx_hal_tim.h.

## ◆ __HAL_TIMER_ENABLE_IT

#define __HAL_TIMER_ENABLE_IT | ( |  | __HANDLE__ | ) | SET_BITS((__HANDLE__)->p_instance->CTRL, TIMER_CTRL_INTEN)

Enable the TIMER interrupt.

Parameters

  <strong>HANDLE</strong> | Specifies the TIMER Handle.

Return values

  None |

Definition at line 182 of file gr55xx_hal_tim.h.

## ◆ __HAL_TIMER_GET_FLAG_IT

#define __HAL_TIMER_GET_FLAG_IT | ( |  | __HANDLE__ | ) | ll_timer_is_active_flag_it(__HANDLE__->p_instance)

Check whether the TIMER interrupt has occurred or not.

Parameters

  <strong>HANDLE</strong> | Specifies the TIMER Handle.

Return values

  The | new state of TIMER interrupt (SET or RESET).

Definition at line 194 of file gr55xx_hal_tim.h.

## ◆ __HAL_TIMER_RESET_HANDLE_STATE

#define __HAL_TIMER_RESET_HANDLE_STATE | ( |  | __HANDLE__ | ) | ((__HANDLE__)->state = HAL_TIMER_STATE_RESET)

Reset TIMER handle states.

Parameters

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

Return values

  None |

Definition at line 164 of file gr55xx_hal_tim.h.