version.h
来自「该程序是ST7MC驱动BLDC120」· C头文件 代码 · 共 67 行
H
67 行
/**************** (c) 2004 STMicroelectronics **********************
PROJECT : BLDC Software Library (Sensor & Sensorless)
COMPILER : ST7 METROWERKS C (HIWARE) / COSMIC
MODULE : version.h
VERSION : V 1.0
CREATION DATE : 4/4/2005 17:42
AUTHOR : File generated by AK-ST7FMC Control Panel
-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-
DESCRIPTION : Definition of compiler options
******************************************************************************
THE SOFTWARE INCLUDED IN THIS FILE IS FOR GUIDANCE ONLY. ST MICROELECTRONICS
SHALL NOT BE HELD LIABLE FOR ANY DIRECT, INDIRECT OR CONSEQUENTIAL DAMAGES
WITH RESPECT TO ANY CLAIMS ARISING FROM USE OF THIS SOFTWARE.
******************************************************************************
******************************************************************************/
/********** Number of motor pair poles : 2 ***********/
#ifndef VERSION_H
#define VERSION_H
/* Sensors distribution */
#define SENSOR_60 1
#define SENSOR_120 2
/* Demagnetization type parameters */
#define HW 1 // 1 -> Hard demag only
#define HSW 2 // 2 -> Alternate Hard/Soft
#define SW 3 // 3 -> Soft Demag only
/* Driving mode parameters */
#define CURRENT_MODE 0 // 0 -> Current mode
#define VOLTAGE_MODE 1 // 1 -> Voltage mode
/* Regulation type parameters */
#define OPEN_LOOP 0 // 0 -> Open loop
#define CLOSED_LOOP 1 // 1 -> Closed loop
/******************************************************************************/
/* Option settings used throughout the compilation process */
#define SENSOR_TYPE 0 // no use in sensorless mode
#define DEMAG_TYPE 3 // no use in sensor mode
#define DRIVING_MODE 0
#define FEEDBACK_TYPE 1
/******************************************************************************/
//#define EXT_AOP // if commented -> internal op.amp is used (OAZ is current comp. entry)
#endif
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?