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
demonstration.c File Reference

Demonstration of the demo. More...

#include "gdflib.h"
#include "gmclib.h"
#include "BLDC_appconfig.h"
#include "motor_structure.h"
#include "fsl_gpio_hal.h"

Macros

#define PUSH_TIME_FILTER
 
#define PUSH_TIME_SHORT
 
#define PUSH_TIME_LONG
 
#define DEMONSTRATION_SPEED_STEP
 1.0 = MAX motor speed More...
 
#define DEMONSTRATION_SPEED_RAMP_GAIN
 max speed ramp in demonstration mode (speed inc/dec in 1 ms in unit of max motor speed) More...
 

Functions

void Demonstration (MCSTRUC_BLDC_SNLS_INT_T *sM_Drive)
 Show a few demo speeds and ramps, called every 1 ms. More...
 

Variables

MCSTRUC_BLDC_SNLS_INT_T gsM1_Drive
 
static UInt16 uw16Sw1FiltCnt
 
static UInt16 uw16Sw2FiltCnt
 
static UInt16 uw16DemonstrationStatus
 
static UInt32 uw32DemoTime
 
static UInt16 uw16SwStatus
 
static UInt16 uw16Sw1Cnt
 
static UInt16 uw16Sw2Cnt
 
static UInt16 uw16SwBothCnt
 

Detailed Description

Version
1.0.2.0
Date
Nov-27-2013

Macro Definition Documentation

#define DEMONSTRATION_SPEED_RAMP_GAIN
#define DEMONSTRATION_SPEED_STEP
#define PUSH_TIME_FILTER
#define PUSH_TIME_LONG
#define PUSH_TIME_SHORT

Function Documentation

void Demonstration ( MCSTRUC_BLDC_SNLS_INT_T sM_Drive)
Parameters
sM_DriveBLDC motor variables structure pointer

Variable Documentation

UInt16 uw16DemonstrationStatus
static
UInt16 uw16Sw1Cnt
static
UInt16 uw16Sw1FiltCnt
static
UInt16 uw16Sw2Cnt
static
UInt16 uw16Sw2FiltCnt
static
UInt16 uw16SwBothCnt
static
UInt16 uw16SwStatus
static
UInt32 uw32DemoTime
static