3.6.1 mcIpdI_InitialPositionDetectInit

C


/*  Initialize initial position detection module */
void mcIpdI_InitialPositionDetectInit(tmcIpd_ModuleData_s * const pModule);	

Summary

This function initializes the initial position detection(IPD) module.

Description

This function initializes the IPD module by configuring the required parameters and linking the state variables. It updates the state variable structure, applies the module parameters from the parameter structure, sets the PWM signal values such as pulse amplitude, duration, period, and frequency, and activates the initialization flag.

Precondition

None.

Parameters

ParamDescription
pParametersA pointer to the IPD module parameter structure

Returns

None

Example

// Define the IPD module data structure

tmcIpd_ModuleData_s ipdParameters;

/** Initialize parameters */
mcIpdI_InitialPositionDetectInit(&ipdParameters);
    

Remarks

None.