Macros
PWM Exported Macros
Peripheral Driver » HAL Driver » PWM » Defines

## Macros
#define | __HAL_PWM_RESET_HANDLE_STATE(__HANDLE__) ((__HANDLE__)->state = HAL_PWM_STATE_RESET)
| Reset PWM handle states. More...
#define | __HAL_PWM_ENABLE(__HANDLE__) SET_BITS((__HANDLE__)->p_instance->MODE, PWM_MODE_EN)
| Enable the specified PWM peripheral. More...
#define | __HAL_PWM_DISABLE(__HANDLE__) CLEAR_BITS((__HANDLE__)->p_instance->MODE, PWM_MODE_EN)
| Disable the specified PWM peripheral. More...
#define | __HAL_PWM_ENABLE_BREATH(__HANDLE__) SET_BITS((__HANDLE__)->p_instance->MODE, PWM_MODE_BREATHEN)
| Enable PWM breath mode. More...
#define | __HAL_PWM_DISABLE_BREATH(__HANDLE__) CLEAR_BITS((__HANDLE__)->p_instance->MODE, PWM_MODE_BREATHEN)
| Disable PWM breath mode. More...

## Detailed Description

## Macro Definition Documentation

## ◆ __HAL_PWM_DISABLE

#define __HAL_PWM_DISABLE | ( |  | __HANDLE__ | ) | CLEAR_BITS((__HANDLE__)->p_instance->MODE, PWM_MODE_EN)

Disable the specified PWM peripheral.

Parameters

  __HANDLE__ | specifies the PWM Handle.

Return values

  None |

Definition at line 374 of file gr533x_hal_pwm.h.

## ◆ __HAL_PWM_DISABLE_BREATH

#define __HAL_PWM_DISABLE_BREATH | ( |  | __HANDLE__ | ) | CLEAR_BITS((__HANDLE__)->p_instance->MODE, PWM_MODE_BREATHEN)

Disable PWM breath mode.

Parameters

  __HANDLE__ | specifies the PWM Handle.

Return values

  None |

Definition at line 386 of file gr533x_hal_pwm.h.

## ◆ __HAL_PWM_ENABLE

#define __HAL_PWM_ENABLE | ( |  | __HANDLE__ | ) | SET_BITS((__HANDLE__)->p_instance->MODE, PWM_MODE_EN)

Enable the specified PWM peripheral.

Parameters

  __HANDLE__ | specifies the PWM Handle.

Return values

  None |

Definition at line 368 of file gr533x_hal_pwm.h.

## ◆ __HAL_PWM_ENABLE_BREATH

#define __HAL_PWM_ENABLE_BREATH | ( |  | __HANDLE__ | ) | SET_BITS((__HANDLE__)->p_instance->MODE, PWM_MODE_BREATHEN)

Enable PWM breath mode.

Parameters

  __HANDLE__ | specifies the PWM Handle.

Return values

  None |

Definition at line 380 of file gr533x_hal_pwm.h.

## ◆ __HAL_PWM_RESET_HANDLE_STATE

#define __HAL_PWM_RESET_HANDLE_STATE | ( |  | __HANDLE__ | ) | ((__HANDLE__)->state = HAL_PWM_STATE_RESET)

Reset PWM handle states.

Parameters

  __HANDLE__ | PWM handle.

Return values

  None |

Definition at line 362 of file gr533x_hal_pwm.h.