Macros
PWM Exported Macros
Peripheral Driver » HAL Driver » PWM » Defines
Collaboration diagram for PWM Exported Macros:

## 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

  <strong>HANDLE</strong> | specifies the PWM Handle.

Return values

  None |

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

  <strong>HANDLE</strong> | specifies the PWM Handle.

Return values

  None |

Definition at line 267 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

  <strong>HANDLE</strong> | specifies the PWM Handle.

Return values

  None |

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

  <strong>HANDLE</strong> | specifies the PWM Handle.

Return values

  None |

Definition at line 261 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

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

Return values

  None |

Definition at line 243 of file gr55xx_hal_pwm.h.