📄 admeasure.h
字号:
/* =================================================================================
File name: ADMeasure.H
Originator: R&D
newimage electric
Description:
Headfile of ADMeasure.c,System used data structure.
=====================================================================================*/
#ifndef _ADMEAS_H
#define _ADMEAS_H
#include "DSP281x_Device.h" // DSP281x Headerfile Include File
#include "IQmathLib.h" /* Include header for IQmath library */
#define EXT1Scale 2000 //_IQ(1):380v 3/2trans
//#define UanOffset _IQ(-0.112)
#define EXT2Scale 2000
//#define UbnOffset _IQ(-0.120)
#define EXT3Scale 2000
//#define UsaOffset _IQ(-0.105)
#define EXT4Scale 2000
//#define UsbOffset _IQ(-0.113)
#define TScale 100
//#define TOffset _IQ(-0.107)
typedef struct {
_iq Udc; //main bus voltage
_iq Ia; //current phase A
_iq Ib; //current phase B
_iq Ic; //current phase C
_iq Ua; //net voltage phase A
_iq Uc; //net voltage phase C
_iq EXT_1; //ext ref1
_iq EXT_2; //ext ref2
_iq EXT_3; //ext ref3
_iq EXT_4; //ext ref4
_iq Temp; //module temperature
_iq UdcOffset; //main bus voltage
_iq ADCZeroBenchmark; //
_iq ADCBenchmarkA; //
_iq IcOffset; //
_iq UaOffset; //
_iq UbOffset; //
_iq EXT1Offset; //
_iq EXT2Offset; //
_iq EXT3Offset; //
_iq EXT4Offset; //
_iq TempOffset; //
void (*Read)(); //data acqursation
} ADMEAS;
typedef ADMEAS *ADMEAS_handle;
#define ADMEAS_DEFAULTS { 0, \
0, \
0, \
0, \
0, \
0, \
0, \
0, \
0, \
0, \
0, \
_IQ(-0.000217),\
_IQ(0.715), \
_IQ(0.26), \
_IQ(0), \
_IQ(0), \
_IQ(0), \
0, \
0, \
0, \
0, \
0, \
(void (*)(Uint32))ADMeasure}
void ADMeasure(ADMEAS *);
#endif //end of _ADMEAS_H
//////////////////////////////////////////////////////
//////// no more //////////////////////////////
//////////////////////////////////////////////////////
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -