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_ALL_IT(__HANDLE__) ll_timer_enable_all_it((__HANDLE__)->p_instance)
| Enable the TIMER all interrupt. More...
#define | __HAL_TIMER_DISABLE_ALL_IT(__HANDLE__) ll_timer_disable_all_it((__HANDLE__)->p_instance)
| Disable the TIMER all 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...

## Detailed Description

## Macro Definition Documentation

## ◆ __HAL_TIMER_DISABLE

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

Disable the specified TIMER peripheral.

Parameters

  __HANDLE__ | Specifies the TIMER Handle.

Return values

  None |

Definition at line 237 of file hal_tim.h.

## ◆ __HAL_TIMER_DISABLE_ALL_IT

#define __HAL_TIMER_DISABLE_ALL_IT | ( |  | __HANDLE__ | ) | ll_timer_disable_all_it((__HANDLE__)->p_instance)

Disable the TIMER all interrupt.

Parameters

  __HANDLE__ | Specifies the TIMER Handle.

Return values

  None |

Definition at line 249 of file 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

  __HANDLE__ | Specifies the TIMER Handle.

Return values

  None |

Definition at line 231 of file hal_tim.h.

## ◆ __HAL_TIMER_ENABLE_ALL_IT

#define __HAL_TIMER_ENABLE_ALL_IT | ( |  | __HANDLE__ | ) | ll_timer_enable_all_it((__HANDLE__)->p_instance)

Enable the TIMER all interrupt.

Parameters

  __HANDLE__ | Specifies the TIMER Handle.

Return values

  None |

Definition at line 243 of file 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

  __HANDLE__ | Specifies the TIMER Handle.

Return values

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

Definition at line 255 of file 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

  __HANDLE__ | TIMER handle.

Return values

  None |

Definition at line 225 of file hal_tim.h.