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 267 of file gr55xx_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 279 of file gr55xx_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 261 of file gr55xx_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 273 of file gr55xx_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 255 of file gr55xx_hal_pwm.h.