Dmitry Kovalev
/
LGfiltr
forkd
Fork of LGstaandart by
Diff: InputOutput.h
- Revision:
- 21:bc8c1cec3da6
- Parent:
- 1:f2adcae3d304
- Child:
- 89:a0d344db227e
--- a/InputOutput.h Tue Feb 02 17:14:25 2016 +0000 +++ b/InputOutput.h Wed Feb 03 07:19:30 2016 +0000 @@ -4,8 +4,7 @@ #include "stdint.h" - -//******************************I2C************************************************* +//******************************I2C************************************************* #define I2C0 #define I2C_IDLE 1 @@ -59,51 +58,48 @@ #define TIMEOUT 1000 -typedef union { - int ArrayOut[31]; - struct { - int WP_reg; //e. PLC output voltage - int WP_sin; //r. ������ ������ ��� - ����� 250 �� - int WP_pll; //r. ����� XOR �� ������� ��� - int HF_reg; //e. HFO output voltage - - int HF_dif; - - int WP_Phase_Det_Array[8]; //e. arrays for "worms" output //r. ������� ��� ������ "���������" - int WP_sin_Array[8]; - int WP_scope1, WP_scope2; //e. temporary variables for Rate3 monitoring //r. ��������� ���������� ��� ���������� � Rate3 +typedef union + { + int ArrayOut[31]; + struct { + int WP_reg; //e. PLC output voltage + int WP_sin; //r. сигнал поиска СРП - синус 250 Гц + int WP_pll; //r. выход XOR ФД контура СРП + int HF_reg; //e. HFO output voltage + + int HF_dif; - uint32_t F_ras; //e. really output frequency, divided by 16 (for transmission) - uint32_t L_Vibro; //e. period of oscillation of the dither drive //r. ������ ��������� ������������ - uint32_t T_Vibro; //e. pulse width of the dither drive //r. ������������ �������� ������������ - uint32_t T_VB_pll; //e. PD output of the frequency regulator of the dither drive //r. ����� �� ���������� ������� ������������ + int WP_Phase_Det_Array[8]; //e. arrays for "worms" output //r. массивы для вывода "червячков" + int WP_sin_Array[8]; + int WP_scope1, WP_scope2; //e. temporary variables for Rate3 monitoring //r. временные переменные для наблюдения в Rate3 + + uint32_t F_ras; //e. really output frequency, divided by 16 (for transmission) + uint32_t L_Vibro; //e. period of oscillation of the dither drive //r. период колебания вибропривода + uint32_t T_Vibro; //e. pulse width of the dither drive //r. длительность импульса вибропривода + uint32_t T_VB_pll; //e. PD output of the frequency regulator of the dither drive //r. выход ФД регулятора частоты вибропривода - int PS_dif; - int BINS_dif; - int Cnt_Dif; - int Cnt_Pls; - int Cnt_Mns; - int Tmp_Out[6]; + int PS_dif; + int BINS_dif; + int Cnt_Dif; + int Cnt_Pls; + int Cnt_Mns; + int Tmp_Out[6]; - __int64 SF_dif; - - } Str; -} OUTPUT; + __int64 SF_dif; + + } Str; + } OUTPUT; - - - -typedef union { - int ArrayIn[3]; - struct { - int Tmp_in[2]; - int HF_out; - int WP_sel; - } StrIn; -} INPUT; - - +typedef union + { + int ArrayIn[3]; + struct { + int Tmp_in[2]; + int HF_out; + int WP_sel; + }StrIn; + } INPUT; extern INPUT Input; extern OUTPUT Output; @@ -132,5 +128,7 @@ void G_Photo_Init( void ); void G_Photo_Exchange(void); +//endof file + #endif // InputOutput_H