Kinetis SDK v.1.2 Demo Applications User's Guide  Rev. 0
Freescale Semiconductor, Inc.
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
motor_structure.h File Reference

Motor control structure. More...

#include "SWLIBS_Defines.h"

Go to the source code of this file.

Data Structures

struct  MCSTRUC_BLDC_SNLS_INT_T
 BLDC Sensor-less with BEMF integration method. More...
 

Macros

#define UPDATE_TIME_EVENT_REQ
 Request to set new time event (update timer value register) More...
 
#define UPDATE_DUTYCYCLE_REQ
 Duty-cycle update request. More...
 
#define UPDATE_PWM_CONFIG_REQ
 Apply commutation vector (alternatively enable PWM outputs) More...
 
#define UPDATE_PWM_DISABLE_REQ
 Disable PWM outputs. More...
 
#define UPDATE_PWM_ALIGNMENT_REQ
 Apply alignment vector. More...
 
#define UPDATE_BRAKE_RESISTOR_ON_REQ
 Connect or disconnect brake resistor. More...
 
#define FAULT_UNDERVOLTAGE_F
 
#define FAULT_OVERVOLTAGE_F
 
#define FAULT_OVERCURRENT_F
 

Detailed Description

Author
stsp001
Version
1.0.3.0
Date
Nov-27-2013

Motor control structure.


Data Structure Documentation

struct MCSTRUC_BLDC_SNLS_INT_T
Data Fields
Frac16 f16CurrentPiErr
Frac16 f16CurrentPiOutput
Frac16 f16DcBusCurrent
Frac16 f16DcBusCurrentAlign
Frac16 f16DcBusCurrentLimit
Frac16 f16DcBusCurrentNoFiltered
Frac16 f16DcBusCurrentOffset
Frac16 f16DcBusCurrentRaw
Frac16 f16DcBusCurrentZC
Frac16 f16DcbVoltage
Frac16 f16DutyCycle
Frac16 f16McatStartCmtAcceleration
Frac16 f16PhaseBemf
Frac16 f16PhaseVoltage
Frac16 f16SpeedMeasured
Frac16 f16SpeedMinimal
Frac16 f16SpeedPiErr
Frac16 f16SpeedPiOutput
Frac16 f16SpeedRampOutput
Frac16 f16SpeedRequired
Frac32 f32DcBusCurrentAcc
Frac32 f32IntegralBemfSum
Frac32 f32IntegralBemfThreshold
GFLIB_RAMP_T_F32 f32trSpeedRamp
GDFLIB_FILTER_MA_T_F16 trCurrentMaFilter
GFLIB_CONTROLLER_PIAW_P_T_F16 trCurrentPI
GFLIB_CONTROLLER_PIAW_P_T_F16 trSpeedPI
UInt16 uw16AlignmentPeriodMs
UInt16 uw16CalibCounter
UInt16 uw16CmtErrorCnt
UInt16 uw16CommutatedSensorless
UInt16 uw16CurrentLimiting
UInt16 uw16Direction
UInt16 uw16FaultStatus
UInt16 uw16FreewheelPeriodCurrentMs
UInt16 uw16FreewheelPeriodLongMs
UInt16 uw16FreewheelPeriodShortMs
UInt16 uw16HwUpdateRequests
UInt16 uw16McatAlignmentPeriodMs
UInt16 uw16McatPeriodCmtNext
UInt16 uw16McatPeriodToff
UInt16 uw16McatStartCmtCounter
UInt16 uw16PeriodCmt[6]
UInt16 uw16PeriodCmtNext
UInt16 uw16PeriodToff
UInt16 uw16StartCmtCounter
UInt16 uw16TimeCurrent
UInt16 uw16TimeCurrentEvent
UInt16 uw16TimeNextEvent
UInt16 uw16TimeOfCommutation
UInt16 uw16TimeOfCommutationOld
UInt32 uw32McatCurrentScale
UInt32 uw32McatSpeedScale
UInt32 uw32McatVoltageScale
UInt32 uw32Period6CmtSum
Int16 w16CmtSector

Macro Definition Documentation

#define FAULT_OVERCURRENT_F
#define FAULT_OVERVOLTAGE_F
#define FAULT_UNDERVOLTAGE_F
#define UPDATE_BRAKE_RESISTOR_ON_REQ
#define UPDATE_DUTYCYCLE_REQ
#define UPDATE_PWM_ALIGNMENT_REQ
#define UPDATE_PWM_CONFIG_REQ
#define UPDATE_PWM_DISABLE_REQ
#define UPDATE_TIME_EVENT_REQ