3.4.4 mcRpcI_RotorPositionCalcDisable
C
/* Disable rotor position calculation(RPC) module */ void mcRpcI_RotorPositionCalcDisable( tmcRpc_Parameters_s * const pParameters )
Summary
Disables the rotor position calculation module.
Description
This function disables the rotor position calculation (RPC) module by linking the state variables and resetting the module if necessary. It checks the module initialization state, resets the module if it is initialized, and then disable the RPC module using the state variables and clears the enable flag.
Precondition
None.
Parameters
Param | Description |
---|---|
pParameters | A pointer to the rotor position calculation module parameter structure. |
Returns
None
Example
// Define the rotor position calculation module data structure
tmcRpc_Parameters_s rpcParameters;
/** Disable rotor position calculation module */
mcRpcI_RotorPositionCalcDisable(&rpcParameters);
Remarks
None.