Jump to main content

##

# 2.90.18 PWM_ModeSet Function

## C

    inline static void PWM_ModeSet(PWM_GENERATOR genNum, PWM_MODES mode)

## Summary

Sets the operating mode for a specific PWM generator.

## Description

This function sets the operating mode of the PWM generator selected by the argument `genNum`. The operating mode determines the behavior of the PWM generator (e.g., edge-aligned or center-aligned).

## Precondition

None

## Parameters

Param | Description
--- | ---
genNum | PWM generator number
mode | PWM operating mode

## Returns

None

## Example

    PWM_ModeSet(PWM_GENERATOR_1, CENTER_ALIGNED);

## Remarks

None