3.7.2 mcVolI_VoltageCalculation

C


/* Perform voltage calculation */
void mcVolI_VoltageCalculation( tmcVol_ModuleData_s * const pModule )	

Summary

Executes the voltage calculation process

Description

This function reads the measured ADC values and calculates the DC bus voltage based on the ADC conversion factor. The results are stored in the module's output structure.

Precondition

mcVolI_VoltageCalculationInit function must have been initialized.

Parameters

ParamDescription
pModule A pointer to the module data structure, which includes both input and output data relevant to the voltage calculation

Returns

None

Example

// Define the voltage calculation module data structure
tmcVol_ModuleData_s mcVolI_ModuleData_gds;

/* Perform voltage calculation */
mcVolI_VoltageCalculation( &mcVolI_ModuleData_gds);
    

Remarks

None.