Jump to main content

##

# 3.3.25.1 mcTorI_TorqueControlInit

## C

    /* Initialize torque control module */
    void  mcTorI_TorqueControlInit( tmcTor_Parameters_s * const pParameters )

## Summary

Initializes the torque control module.

## Description

This function initializes the torque control module by setting up the necessary parameters and linking state variables. It updates the state variable structure, configures the module parameters using the parameter module structure, sets the PI control parameters, and sets the initialization flag.

## Precondition

None.

## Parameters

Param | Description
--- | ---
pParameters | A pointer to the torque control module parameter structure

## Returns

None

## Example

    // Define the torque module data structure
    tmcTor_Parameters_s torqParameters;

    /** Initialize parameters */
    mcTorI_TorqueControlInit(&torqParameters);

## Remarks

None.