3.6.2 mcIpdI_InitialPositionDetectEnable
C
/* Enable initial position detection */
void mcIpdI_InitialPositionDetectEnable(tmcIpd_ModuleData_s * const pModule);
Summary
This function enables the initial position detection(IPD) module.
Description
This function enables the IPD 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 module using state variables and sets the enable flag.
Precondition
None.
Parameters
Param | Description |
---|---|
pParameters | A pointer to the IPD module parameter structure. |
Returns
None
Example
// Define the IPD module data structure
tmcIpd_ModuleData_s ipdParameters;
/** Enable IPD module */
mcIpdI_InitialPositionDetectEnable(&ipdParameters);
Remarks
None.