STM32 电机控制 SDK MCFW-6.4.1
基于 STM32 微控制器驱动 PMSM 电机的软件开发工具包 - 中文版
📊 数据结构 - API 参考

📚 说明:以下是 STM32 电机控制 SDK 中使用的数据结构及其简要描述,适用于底层开发和API调用:

 C_CONVERT_u_Union type definition for u32 to Float conversion and vice versa
 C_FLOAT_U32_Union type definition for u32 to Float conversion and vice versa
 C_FOC_ActiveCurrentLimits_u_Current limit data structure
 C_Oversampling_Channel_t_Oversampling channel data structure definition
 C_Oversampling_t_Oversampling data structure definition
 C_PIDREG_SPEED_s_PID speed regulator handler definition
 C_PIDREGDQX_CURRENT_s_PID current regulator handler definition
 C_PROFILER_FLUXESTIM_Obj_Todo
 C_PROFILER_Obj_Handle of profiler component
 C_Samples_t_Sample data structure definition
 Cab_f_tTwo components a,b in float type
 Cab_tTwo components a,b type definition
 Calphabeta_tTwo components alpha, beta type definition
 CASPEP_Capabilities_defASPEP communication capabilities
 CASPEP_ctrlBuff_tASPEP Control Buffer structure
 CASPEP_Handle_tHandle structure for ASPEP related components
 CBemf_ADC_Handle_tThis structure is used to handle the data of an instance of the B-emf Feedback component
 CBemf_Demag_ParamsThis structure is used to handle the demagnetization time before starting bemf acquisition
 CBemf_HandleSpeednPosFdbk handle definition
 CBemf_RegInterface_ParamThis structure is used to transfer parameters from/to motor Pilot
 CBemf_Sensing_ParamsThis structure is used to handle the thresholds for bemf zero crossing detection
 CBusVoltageSensor_Handle_tBusVoltageSensor handle definition
 CCircleLimitation_Handle_tCircleLimitation component parameters definition
 CCurrCtrl_Handle_tCurrent controller data structure definition
 CCurrCtrl_Input_tCurrent controller input data structure definition
 CCurrMonitor_tCurrMonitor_t contains all the parameters required to execute a current conversion
 CDOUT_handle_tDigital output handler definition
 CEncAlign_Handle_tThis structure is used to handle an instance of EncAlignCtrl component
 CENCODER_Handle_tENCODER component parameters definition
 CFF_Handle_tHandle structure of the Feed-forward Component
 CFF_TuningStruct_tStructure type definition for feed-forward constants tuning
 CFOCVars_tFOC variables structure
 CFW_Handle_tFlux Weakening Control Component handle structure
 CGAP_DeviceParams_Handle_tGAP class register bank definition
 CGAP_Handle_tHandle of the GAP component
 CHALL_6S_Handle_tHALL component parameters definition
 CHALL_Handle_tHALL component parameters definition
 CHT_Handle_tHandle structure of the HallTuning
 CICL_Handle_tICL_Handle_t is used to handle an instance of the InrushCurrentLimiter component
 CICS_Params_tCurrent feedback component parameters structure definition for ICS configuration. Specific to F3XX, G4XX, F4XX, F7XX and L4XX
 CIPD_6S_Handle_tIPD_6S_Handle_t handle definition
 CMCI_Handle_tMotor Control Interface data structure definition
 CMCP_Handle_tHandle structure for MCP related components
 CMCPA_Handle_tMCP asynchronous parameters handle
 CMTPA_Handle_tHandle structure of max_torque_per_ampere.c
 CNTC_Handle_tStructure used for temperature monitoring
 CObserver_Inputs_tInput structure type definition for SPD_CalcAngle
 COpenLoop_Handle_tOpenLoop_Handle_t structure used for phases definition
 COTF_6S_Handle_tOTF_6S_Handle_t handle definition
 COTT_Handle_tOneTouchTuning class members definition
 COTT_Params_tPublic OneTouchTuning class definition
 CPID_Handle_tHandle of a PID component
 CPolarizationOffsets_tGroups currents and voltages ADC offset measurements
 CPosCtrl_Handle_tHandle of a Position Control component
 CPotentiometer_Handle_tHandle structure of a Potentiometer component
 CPQD_MotorPowMeas_Handle_tHandle of a PQD Motor Power Measurement component
 CPWMC_HandleThis structure is used to handle the data of an instance of the PWM & Current Feedback component
 CPWMC_Handle_tThis structure is used to handle the data of an instance of the PWM component
 CPWMC_ICS_Handle_tPWM and Current Feedback ICS handle. Common to every MCU except F0XX, G0XX and H7XX
 CPWMC_Params_tThreePwm parameters definition
 CPWMC_R1_Handle_tThis structure is used to handle an instance of the Current feedback component for 1 Shunt configurations. Common to F30X, F7XX, G0XX, G4XX and L4XX MCUs
 CPWMC_R3_1_Handle_tPWM and current feedback component for single ADC configurations
 CPWMC_R3_2_Handle_tPWM and current feedback component for dual ADCs configurations. Common to every MCU except F0XX, G0XX and C0XX
 Cqd_f_tTwo components q, d in float type
 Cqd_tTwo components q, d type definition
 CR1_Params_tCurrent feedback component parameters structure definition for 1 Shunt configurations. Common to F30X, F7XX, G0XX, C0XX, G4XX and L4XX MCUs
 CR3_1_Params_tPWM and current feedback component parameters definition for single ADC configurations. Common to every MCU except H7XX
 CR3_2_OPAMPParams_tCurrent feedback component defining parameters for 2-OPAMP configurations. Specific to F30X and H7XX
 CR3_2_Params_tPWM and current feedback component parameters definition for dual ADCs configurations. Common to every MCU except F0XX, G0XX and C0XX
 CR3_3_OPAMPParams_tCurrent feedback component 3-OPAMP parameters structure definition. Specific to G4XX
 CRampExtMngr_Handle_tRampExtMngr Handle Definition
 CRDivider_Handle_tRdivider class parameters definition
 CRegConv_tRegConv_t contains all the parameters required to execute a regular conversion
 CRevUpCtrl_6S_PhaseParams_tRevUpCtrl_PhaseParams_t structure used for phases definition
 CRevUpCtrl_Handle_tHandle structure of the RevUpCtrl
 CRevUpCtrl_PhaseParams_tRevUpCtrl_PhaseParams_t structure used for phases definition
 CRsDCEstimation_Handle_tRs DC estimation handler structure
 CSCC_Handle_tHandle structure of the SelfComCtrl
 CSCC_Params_tSelfComCtrl parameters definition
 CSensorless_Input_tSensorless component input data definition
 CSensorless_Output_tSensorless component output data definition
 CSixStepVars_t6step variables structure
 CSPD_Handle_tSensorless component handler definition
 CSpeednPosFdbk_Handle_tSpeednPosFdbk handles definitions of mechanical and electrical speed, mechanical acceleration, mechanical and electrical angle and all constants and scale values for a reliable measure and computation in appropriated unit
 CSpeednTorqCtrl_Handle_tSpeed & Torque Control parameters definition
 CSpeedPotentiometer_Handle_tHandle structure of a Speed Potentiometer component
 CSTC_Handle_tSpeed and torque component handler structure definition
 CSTC_input_tSpeed and torque input data structure definition
 CSTDRIVE102BP_AFEchannel_tSTDRIVE102BP_AFEchannel_t Structure to configure the specific AFE channel. This structure sets/gets the parameters of the functions STDRIVE102BP_SetAFEchannel() and STDRIVE102BP_GetAFEchannel()
 CSTDRIVE102BP_AFEcommon_tSTDRIVE102BP_AFEcommon_t Structure to configure the common configuration of the AFE. This structure sets/gets the parameters of the functions STDRIVE102BP_SetAFEcommon() and STDRIVE102BP_GetAFEcommon()
 CSTDRIVE102BP_defaultParams_tSTDRIVE102BP_defaultParams_t This structure is used to manage all the configurations of the STDRIVE102
 CSTDRIVE102BP_GateDrivers_tSTDRIVE102BP_GateDrivers_t Structure for the gate drivers configuration. This structure sets/gets the parameters of the functions STDRIVE102BP_SetGateDrivers() and STDRIVE102BP_GetGateDrivers()
 CSTDRIVE102BP_Handle_tSTDRIVE102BP_Handle_t handler definition. The handler is passed to all the library function to manage a spedific instance of the STDRIVE102BP
 CSTDRIVE102BP_hw_interface_tSTDRIVE102BP_hw_interface_t Structure to define the SPI interface of the STDRIVE102
 CSTDRIVE102BP_uvlo_tSTDRIVE102BP_uvlo_t Structure for the UVLO and power good configuration. This structure sets/gets the parameters of the functions STDRIVE102BP_SetUvlo() and STDRIVE102BP_GetUvlo()
 CSTDRIVE102BP_VDSmonitor_tSTDRIVE102BP_VDSmonitor_t Structure to configure the VDS monitoring filter. This structure sets/gets the parameters of the functions STDRIVE102BP_SetVDSmonitor() and STDRIVE102BP_GetVDSmonitor()
 CSTDRIVE102P_AFEchannel_tSTDRIVE102P_AFEchannel_t Structure to configure the AFE channel. This structure sets/gets the parameters of the functions STDRIVE102P_SetAFEchannel() and STDRIVE102P_GetAFEchannel()
 CSTDRIVE102P_AFEcommon_tSTDRIVE102P_AFEcommon_t Structure to configure the additional configuration parameters of the AFE. This structure sets/gets the parameters of the functions STDRIVE102P_SetAFEcommon() and STDRIVE102P_GetAFEcommon()
 CSTDRIVE102P_defaultParams_tSTDRIVE102P_defaultParams_t This structure is used to manage all the configurations of the STDRIVE102
 CSTDRIVE102P_GateDrivers_tSTDRIVE102P_GateDrivers_t Structure for the gate drivers configuration. This structure sets/gets the parameters of the functions STDRIVE102P_SetGateDrivers() and STDRIVE102P_GetGateDrivers()
 CSTDRIVE102P_Handle_tSTDRIVE102P_Handle_t handler definition. The handler is passed to all the library function to manage a spedific instance of the STDRIVE102P
 CSTDRIVE102P_hw_interface_tSTDRIVE102P_hw_interface_t Structure to define the SPI interface of the STDRIVE102
 CSTDRIVE102P_uvlo_tSTDRIVE102P_uvlo_t Structure for the UVLO and power good configuration. This structure sets/gets the parameters of the functions STDRIVE102P_SetUvlo() and STDRIVE102P_GetUvlo()
 CSTDRIVE102P_VDSmonitor_tSTDRIVE102P_VDSmonitor_t Structure to configure the VDS monitoring filter. This structure sets/gets the parameters of the functions STDRIVE102P_SetVDSmonitor() and STDRIVE102P_GetVDSmonitor()
 CSTO_CR_Handle_tThis structure is used to handle an instance of the STO_CORDIC component
 CSTO_HandleHandle of the Speed and Position Feedback STO component
 CSTO_PLL_Handle_tHandle of the Speed and Position Feedback STO PLL component
 CSTSPIN32G4_confTHSDConfiguration for Thermal Shutdown signaling to be used with functions STSPIN32G4_setTHSD() and STSPIN32G4_getTHSD()
 CSTSPIN32G4_confVCCConfiguration for VCC voltage to be used with functions STSPIN32G4_setVCC() and STSPIN32G4_getVCC()
 CSTSPIN32G4_confVDSPConfiguration for VDS monitoring protection to be used with functions STSPIN32G4_setVDSP() and STSPIN32G4_getVDSP()
 CSTSPIN32G4_HandleTypeDefHandler of STSPIN32G4 driver to be used with all driver functions
 CSTSPIN32G4_statusRegTypeDefStatus register fileds to be used with function STSPIN32G4_getStatus()
 CTrig_ComponentsTrigonometrical functions type definition
 CVector_dq_fixp16_tStructure holding D & Q measures or references, in Natural format
 CVector_dq_float_tStructure holding D & Q measures or references, in floats
 CVector_s16_ComponentsTwo components type definition
 CVector_Time_tVector modules T1 and T2. Specified in Overmodulation
 CVirtualBusVoltageSensor_Handle_tVirtual Vbus sensor class parameters definition
 CVirtualSpeedSensor_Handle_tThis structure is used to handle an instance of the Virtual Speed sensor component