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 239 of file gr533x_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 251 of file gr533x_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 233 of file gr533x_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 245 of file gr533x_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 257 of file gr533x_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 227 of file gr533x_hal_tim.h.