Macros
PWM Private Macros
Peripheral Driver » HAL Driver » PWM » Defines

## Macros
#define | IS_PWM_MODE(__MODE__)
| Check if PWM mode is valid. More...
#define | IS_PWM_ALIGNMENT_MODE(__MODE__)
| Check if PWM Alignment mode is valid. More...
#define | IS_PWM_DRIVEPOLARITY(__POLARITY__)
| Check if PWM drive polarity is valid. More...

## Detailed Description

## Macro Definition Documentation

## ◆ IS_PWM_ALIGNMENT_MODE

#define IS_PWM_ALIGNMENT_MODE | ( |  | __MODE__ | ) |

Value:
(((__MODE__) == PWM_EDGE) || \
((__MODE__) == PWM_CENTER))

Check if PWM Alignment mode is valid.

Parameters

  __MODE__ | PWM Alignment mode.

Return values

  SET | (__MODE__ is valid) or RESET (__MODE__ is invalid)

Definition at line 289 of file gr55xx_hal_pwm.h.

## ◆ IS_PWM_DRIVEPOLARITY

#define IS_PWM_DRIVEPOLARITY | ( |  | __POLARITY__ | ) |

Value:
(((__POLARITY__) == PWM_DRIVEPOLARITY_NEGATIVE) || \
((__POLARITY__) == PWM_DRIVEPOLARITY_POSITIVE))

Check if PWM drive polarity is valid.

Parameters

  __POLARITY__ | PWM drive polarity.

Return values

  SET | (__POLARITY__ is valid) or RESET (__POLARITY__ is invalid)

Definition at line 297 of file gr55xx_hal_pwm.h.

## ◆ IS_PWM_MODE

#define IS_PWM_MODE | ( |  | __MODE__ | ) |

Value:
(((__MODE__) == PWM_MODE_FLICKER) || \
((__MODE__) == PWM_MODE_BREATH))

Check if PWM mode is valid.

Parameters

  __MODE__ | PWM mode.

Return values

  SET | (__MODE__ is valid) or RESET (__MODE__ is invalid)

Definition at line 281 of file gr55xx_hal_pwm.h.

PWM_DRIVEPOLARITY_POSITIVE
#define PWM_DRIVEPOLARITY_POSITIVE
Definition: gr55xx_hal_pwm.h:230
PWM_MODE_FLICKER
#define PWM_MODE_FLICKER
Definition: gr55xx_hal_pwm.h:215
PWM_MODE_BREATH
#define PWM_MODE_BREATH
Definition: gr55xx_hal_pwm.h:216
PWM_DRIVEPOLARITY_NEGATIVE
#define PWM_DRIVEPOLARITY_NEGATIVE
Definition: gr55xx_hal_pwm.h:229