?? mc1.h
字號:
/** ###################################################################
** THIS BEAN MODULE IS GENERATED BY THE TOOL. DO NOT MODIFY IT.
** Filename : MC1.H
** Project : vvvf_56F8346
** Processor : 56F8346
** Beantype : MC_SpaceVectorMod
** Version : Bean 01.006, Driver 01.09, CPU db: 2.87.097
** Compiler : Metrowerks DSP C Compiler
** Date/Time : 2008-3-7, 9:38
** Abstract :
** This bean encapsulates modulation techniques. The Modulation techniques
** are used in various motor control applications. They are considered
** a direct bridge between a function eliminating voltage ripple on the
** DCBus and real hardware of the Pulse Width Modulation (PWM) block in the Digital
** Signal Processor (DSP).
** Settings :
** This bean has no settings.
** Contents :
** svmStd - int MC1_svmStd(mc_sPhase *p_AlphaBeta,mc_s3PhaseSystem *p_abc);
** svmU0n - int MC1_svmU0n(mc_sPhase *p_AlphaBeta,mc_s3PhaseSystem *p_abc);
** svmU7n - int MC1_svmU7n(mc_sPhase *p_AlphaBeta,mc_s3PhaseSystem *p_abc);
** svmAlt - int MC1_svmAlt(mc_sPhase *p_AlphaBeta,mc_s3PhaseSystem *p_abc);
** svmPwmIct - int MC1_svmPwmIct(mc_sPhase *p_AlphaBeta,mc_s3PhaseSystem *p_abc);
** svmSci - int MC1_svmSci(mc_sPhase *p_AlphaBeta,mc_s3PhaseSystem *p_abc);
** svmElimDcBusRip - void MC1_svmElimDcBusRip(Frac16 invModIndex,Frac16 u_DcBusMsr,mc_sPhase...
**
** (c) Freescale Semiconductor
** 2004 All Rights Reserved
**
** (c) Copyright UNIS, spol. s r.o. 1997-2005
** UNIS, spol. s r.o.
** Jundrovska 33
** 624 00 Brno
** Czech Republic
** http : www.processorexpert.com
** mail : info@processorexpert.com
** ###################################################################*/
#ifndef __MC1
#define __MC1
/* MODULE MC1. */
/*Include shared modules, which are used for whole project*/
#include "PE_Types.h"
#include "PE_Error.h"
#include "PE_Const.h"
#include "IO_Map.h"
/* Include inherited beans */
#include "Cpu.h"
#define svmStd(p_AlphaBeta, p_abc) MC1_svmStd(p_AlphaBeta, p_abc)
extern int MC1_svmStd(mc_sPhase *p_AlphaBeta, mc_s3PhaseSystem *p_abc);
/*
** ===================================================================
** Method : MC1_svmStd (bean MC_SpaceVectorMod)
**
** Description :
** This function calculates appropriate duty-cycle ratios,
** which are needed for generating the given stator
** reference voltage vector using a special Space Vector
** Modulation technique, termed Standard Space Vector
** Modulation.
** Parameters :
** NAME - DESCRIPTION
** * p_AlphaBeta - Pointer to the
** structure containing direct (alpha/a)
** and quadrature (beta/b) components of
** the stator voltage vector.
** * p_abc - Pointer to the structure containing
** calculated duty-cycle ratios of the
** 3-Phase system.
** Returns :
** --- - The function returns an integer value
** representing the Sector number in which
** the instantaneous stator reference
** voltage vector is located.
** ===================================================================
*/
#define svmU0n(p_AlphaBeta, p_abc) MC1_svmU0n(p_AlphaBeta, p_abc)
extern int MC1_svmU0n(mc_sPhase *p_AlphaBeta, mc_s3PhaseSystem *p_abc);
/*
** ===================================================================
** Method : MC1_svmU0n (bean MC_SpaceVectorMod)
**
** Description :
** This function calculates the appropriate duty-cycle
** ratios, needed for generating the given stator reference
** voltage vector. It uses the special Space Vector
** Modulation technique, termed Space Vector Modulation with
** O000 Nulls.
** Parameters :
** NAME - DESCRIPTION
** * p_AlphaBeta - Pointer to the
** structure containing direct (alpha/a)
** and quadrature (beta/b) components of
** the stator voltage vector.
** * p_abc - Pointer to the structure containing
** calculated duty-cycle ratios of the
** 3-Phase system.
** Returns :
** --- - The function returns an integer value
** representing the Sector number in which
** the instantaneous stator reference
** voltage vector is located.
** ===================================================================
*/
#define svmU7n(p_AlphaBeta, p_abc) MC1_svmU7n(p_AlphaBeta, p_abc)
extern int MC1_svmU7n(mc_sPhase *p_AlphaBeta, mc_s3PhaseSystem *p_abc);
/*
** ===================================================================
** Method : MC1_svmU7n (bean MC_SpaceVectorMod)
**
** Description :
** This function calculates the appropriate duty-cycle
** ratios for the generation of given a stator reference
** voltage using a Space Vector Modulation Technique termed
** Space Vector Modulation with O111 Nulls.
** Parameters :
** NAME - DESCRIPTION
** * p_AlphaBeta - Pointer to structure
** with direct (alpha/a) and quadrature
** (beta/b) components of the stator
** voltage vector.
** * p_abc - Pointer to structure where the
** calculated duty-cycles will be stored.
** Returns :
** --- - The function returns an integer value
** representing the Sector number in which
** the instantaneous stator reference
** voltage vector is located.
** ===================================================================
*/
#define svmAlt(p_AlphaBeta, p_abc) MC1_svmAlt(p_AlphaBeta, p_abc)
extern int MC1_svmAlt(mc_sPhase *p_AlphaBeta, mc_s3PhaseSystem *p_abc);
/*
** ===================================================================
** Method : MC1_svmAlt (bean MC_SpaceVectorMod)
**
** Description :
** This function calculates the appropriate duty-cycle
** ratios to generate a given stator reference voltage using
** a special Space Vector Modulation technique, termed Space
** Vector Modulation with Alternate Nulls. In this technique,
** null switching states are combined from state O000 in
** even sectors and state O111 in odd sectors.
** Parameters :
** NAME - DESCRIPTION
** * p_AlphaBeta - Pointer to structure
** with direct (alpha/a) and quadrature
** (beta/b) components of the stator
** voltage vector.
** * p_abc - Pointer to structure where the
** calculated duty-cycles will be stored.
** Returns :
** --- - The function returns an integer value
** representing the Sector number in which
** the instantaneous stator reference
** voltage vector is located.
** ===================================================================
*/
#define svmPwmIct(p_AlphaBeta, p_abc) MC1_svmPwmIct(p_AlphaBeta, p_abc)
extern int MC1_svmPwmIct(mc_sPhase *p_AlphaBeta, mc_s3PhaseSystem *p_abc);
/*
** ===================================================================
** Method : MC1_svmPwmIct (bean MC_SpaceVectorMod)
**
** Description :
** This function calculates the appropriate duty-cycle
** ratios needed to generate a given stator reference
** voltage, using a conventional Inverse Clark
** Transformation.
** Parameters :
** NAME - DESCRIPTION
** * p_AlphaBeta - Pointer to structure
** with direct (alpha/a) and quadrature
** (beta/b) components of the stator
** voltage vector.
** * p_abc - Pointer to structure where the
** calculated duty-cycles will be stored.
** Returns :
** --- - The function returns an integer value
** representing the Sector number in which
** the instantaneous stator reference
** voltage vector is located.
** ===================================================================
*/
#define svmSci(p_AlphaBeta, p_abc) MC1_svmSci(p_AlphaBeta, p_abc)
extern int MC1_svmSci(mc_sPhase *p_AlphaBeta, mc_s3PhaseSystem *p_abc);
/*
** ===================================================================
** Method : MC1_svmSci (bean MC_SpaceVectorMod)
**
** Description :
** This function calculates the appropriate duty-cycle
** ratios needed to generate a given stator reference
** voltage using Sinusoidal Modulation with Injection of the
** Third Harmonic.
** Parameters :
** NAME - DESCRIPTION
** * p_AlphaBeta - Pointer to structure
** with direct (alpha/a) and quadrature
** (beta/b) components of the stator
** voltage vector.
** * p_abc - Pointer to structure where the
** calculated duty-cycles will be stored.
** Returns :
** --- - The function returns an integer value
** representing the Sector number in which
** the instantaneous stator reference
** voltage vector is located.
** ===================================================================
*/
#define svmElimDcBusRip(invModIndex, u_DcBusMsr, pInp_AlphaBeta, pOut_AlphaBeta) MC1_svmElimDcBusRip(invModIndex, u_DcBusMsr, pInp_AlphaBeta, pOut_AlphaBeta)
extern void MC1_svmElimDcBusRip(Frac16 invModIndex, Frac16 u_DcBusMsr, mc_sPhase *pInp_AlphaBeta, mc_sPhase *pOut_AlphaBeta);
/*
** ===================================================================
** Method : MC1_svmElimDcBusRip (bean MC_SpaceVectorMod)
**
** Description :
** The function compensates an amplitude of the direct-a and
** the quadrature-b component of the stator reference
** voltage vector US for imperfections in the DCBus voltage.
** Parameters :
** NAME - DESCRIPTION
** invModIndex - Inverse Modulation
** Index; depends on the selected
** Modulation Technique.
** u_DcBusMsr - Measured DCBus voltage.
** * pInp_AlphaBeta - Pointer to
** structure with direct (alpha) and
** quadrature (beta) components of the
** stator voltage vector.
** * pOut_AlphaBeta - Pointer to
** structure with direct (alpha) and
** quadrature (beta) components of the
** stator voltage vector.
** Returns : Nothing
** ===================================================================
*/
/* END MC1. */
#endif /* ifndef __MC1 */
/*
** ###################################################################
**
** This file was created by UNIS Processor Expert 2.97 [03.74]
** for the Freescale 56800 series of microcontrollers.
**
** ###################################################################
*/
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -