44 #include "SWLIBS_Defines.h"
51 #define UPDATE_TIME_EVENT_REQ 0x0001
52 #define UPDATE_DUTYCYCLE_REQ 0x0002
54 #define UPDATE_PWM_CONFIG_REQ 0x0004
56 #define UPDATE_PWM_DISABLE_REQ 0x0008
58 #define UPDATE_PWM_ALIGNMENT_REQ 0x0010
60 #define UPDATE_BRAKE_RESISTOR_ON_REQ 0x0020
63 #define FAULT_UNDERVOLTAGE_F 0x0001
64 #define FAULT_OVERVOLTAGE_F 0x0002
65 #define FAULT_OVERCURRENT_F 0x0004
77 UInt16 uw16PeriodCmt[6];
UInt16 uw16TimeCurrent
Definition: motor_structure.h:111
UInt16 uw16CurrentLimiting
Definition: motor_structure.h:134
Frac16 f16DcBusCurrent
Definition: motor_structure.h:95
Frac16 f16DcbVoltage
Definition: motor_structure.h:107
Frac16 f16SpeedRampOutput
Definition: motor_structure.h:91
UInt16 uw16Direction
Definition: motor_structure.h:132
Frac16 f16SpeedMinimal
Definition: motor_structure.h:90
Frac16 f16DutyCycle
Definition: motor_structure.h:108
Frac16 f16McatStartCmtAcceleration
Definition: motor_structure.h:141
GFLIB_CONTROLLER_PIAW_P_T_F16 trSpeedPI
Definition: motor_structure.h:72
Frac16 f16SpeedPiErr
Definition: motor_structure.h:92
Frac16 f16SpeedRequired
Definition: motor_structure.h:89
Frac16 f16CurrentPiErr
Definition: motor_structure.h:102
Frac32 f32IntegralBemfSum
Definition: motor_structure.h:80
GFLIB_RAMP_T_F32 f32trSpeedRamp
Definition: motor_structure.h:75
Frac32 f32IntegralBemfThreshold
Definition: motor_structure.h:81
Frac16 f16SpeedPiOutput
Definition: motor_structure.h:93
UInt16 uw16PeriodToff
Definition: motor_structure.h:117
UInt16 uw16CmtErrorCnt
Definition: motor_structure.h:129
UInt32 uw32McatCurrentScale
Added to be modifiable by MCAT.
Definition: motor_structure.h:84
Frac16 f16DcBusCurrentLimit
Definition: motor_structure.h:99
Frac32 f32DcBusCurrentAcc
Definition: motor_structure.h:79
UInt16 uw16PeriodCmtNext
Definition: motor_structure.h:116
UInt16 uw16CalibCounter
Definition: motor_structure.h:130
UInt16 uw16McatStartCmtCounter
Definition: motor_structure.h:142
UInt16 uw16FreewheelPeriodCurrentMs
Definition: motor_structure.h:120
UInt16 uw16McatPeriodToff
Definition: motor_structure.h:144
UInt32 uw32McatVoltageScale
Added to be modifiable by MCAT.
Definition: motor_structure.h:85
UInt16 uw16StartCmtCounter
Definition: motor_structure.h:126
Frac16 f16CurrentPiOutput
Definition: motor_structure.h:101
UInt32 uw32McatSpeedScale
Added to be modifiable by MCAT.
Definition: motor_structure.h:86
Frac16 f16DcBusCurrentAlign
Definition: motor_structure.h:98
UInt16 uw16McatAlignmentPeriodMs
Added to be modifiable by MCAT.
Definition: motor_structure.h:140
UInt16 uw16FreewheelPeriodLongMs
Definition: motor_structure.h:121
Int16 w16CmtSector
Definition: motor_structure.h:128
UInt16 uw16McatPeriodCmtNext
Definition: motor_structure.h:143
UInt16 uw16FreewheelPeriodShortMs
Definition: motor_structure.h:122
UInt16 uw16TimeNextEvent
Definition: motor_structure.h:113
UInt16 uw16TimeOfCommutationOld
Definition: motor_structure.h:115
UInt16 uw16TimeOfCommutation
Definition: motor_structure.h:114
UInt16 uw16AlignmentPeriodMs
Definition: motor_structure.h:124
BLDC Sensor-less with BEMF integration method.
Definition: motor_structure.h:70
Frac16 f16DcBusCurrentNoFiltered
Definition: motor_structure.h:94
UInt16 uw16TimeCurrentEvent
Definition: motor_structure.h:112
UInt16 uw16HwUpdateRequests
Definition: motor_structure.h:136
Frac16 f16DcBusCurrentOffset
Definition: motor_structure.h:97
UInt16 uw16FaultStatus
Definition: motor_structure.h:138
Frac16 f16PhaseVoltage
Definition: motor_structure.h:105
GFLIB_CONTROLLER_PIAW_P_T_F16 trCurrentPI
Definition: motor_structure.h:73
UInt16 uw16CommutatedSensorless
Definition: motor_structure.h:133
Frac16 f16DcBusCurrentRaw
Definition: motor_structure.h:96
GDFLIB_FILTER_MA_T_F16 trCurrentMaFilter
Definition: motor_structure.h:74
UInt32 uw32Period6CmtSum
Definition: motor_structure.h:82
Frac16 f16PhaseBemf
Definition: motor_structure.h:106
Frac16 f16DcBusCurrentZC
Definition: motor_structure.h:100
Frac16 f16SpeedMeasured
Definition: motor_structure.h:88