3.4.2 mcRpcI_RotorPositionCalcEnable

C


/* Enable rotor position calculation(RPC) module */
void  mcRpcI_RotorPositionCalcEnable( tmcRpc_Parameters_s * const pParameters )	

Summary

Enables the rotor position estimation module

Description

This function enables the Rotor Position Calculation (RPC) module by linking the state variables and initializing the module if necessary. It checks the module initialization state, initialize the module if not initialized, and then enable the control module using state variables and sets the enable flag.

Precondition

None.

Parameters

ParamDescription
pParametersA pointer to the rotor position calculation module parameter structure.

Returns

None

Example

// Define the rotor position calculation module data structure
tmcRpc_Parameters_s rpcParameters;

/** Enable rotor position calculation module */
mcRpcI_RotorPositionCalcEnable(&rpcParameters);
    

Remarks

Note: Ensure that the pParameters structure is properly updated with valid values before calling this function.