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_STOP_LVL(__MODE__)
| Check if PWM stop level is valid. More...
#define | IS_PWM_WAITING_TIME_LVL(__MODE__)
| Check if PWM waiting time 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

  __MODE__ | PWM Alignment mode.

Return values

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

Definition at line 409 of file 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 433 of file hal_pwm.h.

## ◆ IS_PWM_MODE

#define IS_PWM_MODE | ( |  | __MODE__ | ) |

Value:
(((__MODE__) == PWM_FLICKER_MODE) || \
((__MODE__) == PWM_BREATH_MODE) || \
((__MODE__) == PWM_CODING_MODE))

Check if PWM mode is valid.

Parameters

  __MODE__ | PWM mode.

Return values

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

Definition at line 400 of file 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

  __MODE__ | PWM stop level.

Return values

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

Definition at line 417 of file hal_pwm.h.

## ◆ IS_PWM_WAITING_TIME_LVL

#define IS_PWM_WAITING_TIME_LVL | ( |  | __MODE__ | ) |

Value:
(((__MODE__) == PWM_WAITING_TIME_LVL_LOW) || \
((__MODE__) == PWM_WAITING_TIME_LVL_HIGH))

Check if PWM waiting time level is valid.

Parameters

  __MODE__ | PWM waiting time level.

Return values

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

Definition at line 425 of file hal_pwm.h.

PWM_DRIVEPOLARITY_POSITIVE
#define PWM_DRIVEPOLARITY_POSITIVE
Definition: hal_pwm.h:340
PWM_CODING_MODE
@ PWM_CODING_MODE
Definition: hal_pwm.h:77
PWM_WAITING_TIME_LVL_LOW
#define PWM_WAITING_TIME_LVL_LOW
Definition: hal_pwm.h:325
PWM_WAITING_TIME_LVL_HIGH
#define PWM_WAITING_TIME_LVL_HIGH
Definition: hal_pwm.h:326
PWM_FLICKER_MODE
@ PWM_FLICKER_MODE
Definition: hal_pwm.h:75
PWM_STOP_LVL_HIGH
#define PWM_STOP_LVL_HIGH
Definition: hal_pwm.h:319
PWM_STOP_LVL_LOW
#define PWM_STOP_LVL_LOW
Definition: hal_pwm.h:318
PWM_DRIVEPOLARITY_NEGATIVE
#define PWM_DRIVEPOLARITY_NEGATIVE
Definition: hal_pwm.h:339
PWM_ALIGNED_EDGE
#define PWM_ALIGNED_EDGE
Definition: hal_pwm.h:311
PWM_ALIGNED_CENTER
#define PWM_ALIGNED_CENTER
Definition: hal_pwm.h:312
PWM_BREATH_MODE
@ PWM_BREATH_MODE
Definition: hal_pwm.h:76