73 lines
1.6 KiB
C
73 lines
1.6 KiB
C
#ifndef ISR
|
|
#define ISR
|
|
|
|
// Ïåðåìåííûå, êîòîðûå îïðåäåëåíû â isr.c (begin)
|
|
//#########################################################################
|
|
struct Offset offset;
|
|
volatile struct Result result;
|
|
volatile short state;
|
|
volatile short faultNo;
|
|
volatile struct Out out;
|
|
// Udc
|
|
float Kudc;
|
|
volatile float udc1Nf;
|
|
volatile float udc1;
|
|
volatile float udc2Nf;
|
|
volatile float udc2;
|
|
// Iac
|
|
volatile float ia1Nf;
|
|
volatile float ib1Nf;
|
|
volatile float ic1Nf;
|
|
volatile float ix1;
|
|
volatile float iy1;
|
|
volatile float iac1Nf;
|
|
volatile float ia2Nf;
|
|
volatile float ib2Nf;
|
|
volatile float ic2Nf;
|
|
volatile float ix2;
|
|
volatile float iy2;
|
|
volatile float iac2Nf;
|
|
// Wm
|
|
float Kwm;
|
|
volatile float wmNf;
|
|
volatile float wm;
|
|
volatile float wmAbs;
|
|
// Me
|
|
volatile float kMe;
|
|
float KmeCorr;
|
|
float Kme;
|
|
volatile float meNf;
|
|
volatile float me;
|
|
// Pm
|
|
volatile float pm;
|
|
// çàùèòû
|
|
struct Protect protect;
|
|
volatile struct Emerg emerg;
|
|
short csmSuccess;
|
|
// óïðàâëÿþùàÿ ëîãèêà
|
|
volatile short onceShutdown;
|
|
volatile short testParamFaultNo;
|
|
volatile short onceFaultReset;
|
|
volatile short stopPause;
|
|
volatile short inuWork;
|
|
// îáìåí
|
|
struct Mst mst;
|
|
//#########################################################################
|
|
// Ïåðåìåííûå, êîòîðûå îïðåäåëåíû â isr.c (end)
|
|
|
|
|
|
|
|
|
|
// Ïåðåìåííûå, êîòîðûå îáúÿâëåíû â isr.c (begin)
|
|
//#########################################################################
|
|
extern struct SgmPar sgmPar;
|
|
extern unsigned short param[];
|
|
extern volatile short onceUpr;
|
|
extern volatile float psi;
|
|
extern float iq1;
|
|
extern float iq2;
|
|
extern struct Rp rp;
|
|
//#########################################################################
|
|
// Ïåðåìåííûå, êîòîðûå îáúÿâëåíû â isr.c (end)
|
|
#endif //ISR
|