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

## 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_STOP_LVL(__MODE__)
| Check if PWM stop level 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_ALIGNED_EDGE) || \
((__MODE__) == PWM_ALIGNED_CENTER))

Check if PWM Alignment mode is valid.

Parameters

  <strong>MODE</strong> | PWM Alignment mode.

Return values

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

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

  <strong>POLARITY</strong> | PWM drive polarity.

Return values

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

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

  <strong>MODE</strong> | PWM mode.

Return values

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

Definition at line 293 of file gr55xx_hal_pwm.h.

## ◆ IS_PWM_STOP_LVL

#define IS_PWM_STOP_LVL | ( |  | __MODE__ | ) |

Value:
(((__MODE__) == PWM_STOP_LVL_LOW) || \
((__MODE__) == PWM_STOP_LVL_HIGH))

Check if PWM stop level is valid.

Parameters

  <strong>MODE</strong> | PWM stop level.

Return values

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

Definition at line 309 of file gr55xx_hal_pwm.h.

PWM_DRIVEPOLARITY_POSITIVE
#define PWM_DRIVEPOLARITY_POSITIVE
PWM led-positive-drive mode.
Definition: gr55xx_hal_pwm.h:242
PWM_MODE_FLICKER
#define PWM_MODE_FLICKER
PWM flicker mode.
Definition: gr55xx_hal_pwm.h:220
PWM_MODE_BREATH
#define PWM_MODE_BREATH
PWM breath mode
Definition: gr55xx_hal_pwm.h:221
PWM_STOP_LVL_HIGH
#define PWM_STOP_LVL_HIGH
PWM stop in high io level.
Definition: gr55xx_hal_pwm.h:235
PWM_STOP_LVL_LOW
#define PWM_STOP_LVL_LOW
PWM stop in low io level.
Definition: gr55xx_hal_pwm.h:234
PWM_ALIGNED_CENTER
#define PWM_ALIGNED_CENTER
PWM center-aligned.
Definition: gr55xx_hal_pwm.h:228
PWM_DRIVEPOLARITY_NEGATIVE
#define PWM_DRIVEPOLARITY_NEGATIVE
PWM led-negative-drive mode.
Definition: gr55xx_hal_pwm.h:241
PWM_ALIGNED_EDGE
#define PWM_ALIGNED_EDGE
PWM edge-aligned.
Definition: gr55xx_hal_pwm.h:227