Jump to main content

##

# 3.3.22.2 mcPwmI_PulseWidthModulationEnable

## C

    /* Enable PWM modulator */
    void  mcPwmI_PulseWidthModulationEnable( tmcPwm_Parameters_s * const pParameters )

## Summary

Enable the PWM modulator

## Description

This function enables the PWM modulator by linking the state variables, initializing the module if necessary,and enabling the PWM modulator. It checks the module's initialization state, initializes the module if it is not initialized, and then enables the control module using state variables and sets the enable flag.

## Precondition

None.

## Parameters

Param | Description
--- | ---
pParameters | A pointer to the module data structure, which contains the parameters and state variables for the PWM modulator.

## Returns

None

## Example

    // Define the PWM modulator data structure
    tmcPwm_ModuleData_s pwmModuleData;

    /* Enable PWM modulator */
    mcPwmI_PulseWidthModulationEnable(&pwmModuleData);

## Remarks

None.