⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 boardid.h

📁 基于FREESCALE MC56F802 BLDC的源程序
💻 H
字号:
/*******************************************************************************
*
* Motorola Inc.
* (c) Copyright 2000 Motorola, Inc.
* ALL RIGHTS RESERVED.
*
********************************************************************************
*
* FILE NAME: boardId.h
*
*******************************************************************************/
#ifndef __BOARDID_H
#define __BOARDID_H

#ifdef __cplusplus
extern "C" {
#endif

/*********************************************************************
** Constant Definitions                                             **
*********************************************************************/
/* UNI3 names                                                       */
#define BOARDID_PRIMARY_UNI3	0x00
#define BOARDID_SECONDARY_UNI3	0x01

/* Boards Identification Codes                                      */
/* Optoisolation Boards                                             */
#define BOARDID_OPTO_BOARD		0x02
/* AC/BLDC High Voltage Power Stage <550W                           */
#define BOARDID_ACBLDC_HV_LP_PS	0x0F
/* AC/BLDC High Voltage Power Stage >750W                           */
#define BOARDID_ACBLDC_HV_HP_PS	0x07
/* AC/BLDC Automotive Voltage Power Stage <550W                     */
#define BOARDID_ACBLDC_AV_LP_PS	0x0D
/* AC/BLDC Automotive Voltage Power Stage >750W                     */
#define BOARDID_ACBLDC_AV_HP_PS	0x05
/* SR High Voltage Power Stage <550W                                */
#define BOARDID_SR_HV_LP_PS		0x0B
/* SR High Voltage Power Stage >750W                                */
#define BOARDID_SR_HV_HP_PS		0x03
/* SR Automotive Voltage Power Stage <550W                          */
#define BOARDID_SR_AV_LP_PS		0x09
/* SR Automotive Voltage Power Stage >750W                          */
#define BOARDID_SR_AV_HP_PS		0x01
/* Motor Board EVM                                                  */
#define BOARDID_MTR_EVM			0x0D
/* 

/* Special board contstants                                         */
#define BOARDID_BRD_STANDARD	0x00
#define BOARDID_BRD_SPECIAL		0x01

/* Power Level Codes                                                */
/* 180W Power                                                       */
#define BOARDID_POWER180W		0x07
/* 370W Power                                                       */
#define BOARDID_POWER370W		0x06
/* 550W Power                                                       */
#define BOARDID_POWER550W		0x05
/* 750W Power                                                       */
#define BOARDID_POWER750W		0x04
/* 1100W Power                                                      */
#define BOARDID_POWER1100W		0x03
/* 1500W Power                                                      */
#define BOARDID_POWER1500W		0x02

/* Status constants                                                 */
#define BOARDID_STAT_TIOUT		0xAA
#define BOARDID_STAT_ERROR		0xFF
#define BOARDID_STAT_OK			0x00


typedef struct {
	unsigned int brd1IDcode;
	unsigned int brd1special;
	unsigned int brd1power;
	unsigned int brd2IDcode;
	unsigned int brd2special;
	unsigned int brd2Scode;
	unsigned int stat1;
	unsigned int stat2;
} boardId_sBoardId;


/*******************************************************************************
*
* NAME: void boardId(const char uni3name, boardId_sBoardId *pParams)
*
* DESCRIPTION: The function provides identification of the boards connected to 
*              primary or secondary UNI-3 connector
*
********************************************************************************
* PARAMETERS:	uni3name - name of the UNI-3 connector (BOARDID_PRIMARY_UNI3
*                          BOARDID_SECONDARY_UNI3)
*				*pParams - pointer to the structure boardId_sBoardId which will be filed in by 
*                         this routine
*
* SIDE EFFECTS: None Known
*
* DESIGNER NOTES: None
*
* DEPENDENCIES: None
*******************************************************************************/
extern void boardId(const char uni3name, boardId_sBoardId *pParams);

#ifdef __cplusplus
extern "C" {
#endif

#endif

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -