123
Fork of LG by
vibro.h@1:f2adcae3d304, 2016-01-30 (annotated)
- Committer:
- igor_v
- Date:
- Sat Jan 30 13:53:19 2016 +0000
- Revision:
- 1:f2adcae3d304
- Parent:
- 0:8ad47e2b6f00
- Child:
- 21:bc8c1cec3da6
123
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
igor_v | 0:8ad47e2b6f00 | 1 | #ifndef VIBRO_H |
igor_v | 0:8ad47e2b6f00 | 2 | #define VIBRO_H |
igor_v | 0:8ad47e2b6f00 | 3 | |
igor_v | 1:f2adcae3d304 | 4 | |
igor_v | 0:8ad47e2b6f00 | 5 | |
igor_v | 0:8ad47e2b6f00 | 6 | |
igor_v | 0:8ad47e2b6f00 | 7 | #define LoopOn LPC_GPIO1->FIOSET = (1<<30); |
igor_v | 0:8ad47e2b6f00 | 8 | #define LoopOff LPC_GPIO1->FIOCLR = (1<<30); |
igor_v | 0:8ad47e2b6f00 | 9 | #define StartV1 0 |
igor_v | 0:8ad47e2b6f00 | 10 | #define StartV2 15 |
igor_v | 0:8ad47e2b6f00 | 11 | #define TIME_INTERVAL (7812) |
igor_v | 0:8ad47e2b6f00 | 12 | |
igor_v | 0:8ad47e2b6f00 | 13 | |
igor_v | 0:8ad47e2b6f00 | 14 | struct MAIN { |
igor_v | 0:8ad47e2b6f00 | 15 | |
igor_v | 0:8ad47e2b6f00 | 16 | unsigned int RgConA; |
igor_v | 0:8ad47e2b6f00 | 17 | unsigned int RgConB; |
igor_v | 0:8ad47e2b6f00 | 18 | |
igor_v | 0:8ad47e2b6f00 | 19 | |
igor_v | 0:8ad47e2b6f00 | 20 | unsigned int Frq; // ���������������� �������� ������� ��� �������. |
igor_v | 0:8ad47e2b6f00 | 21 | unsigned int FrqHZ; // ������� � ��. |
igor_v | 0:8ad47e2b6f00 | 22 | unsigned int FrqRate; // ������� ������ ��� ���������. |
igor_v | 0:8ad47e2b6f00 | 23 | unsigned int FrqMin; // ����������� �������� ���������� �������. |
igor_v | 0:8ad47e2b6f00 | 24 | unsigned int FrqOld; // �������� ������� �� ������� ����. |
igor_v | 0:8ad47e2b6f00 | 25 | |
igor_v | 0:8ad47e2b6f00 | 26 | unsigned int Amp; |
igor_v | 0:8ad47e2b6f00 | 27 | unsigned int AmpL; |
igor_v | 0:8ad47e2b6f00 | 28 | unsigned int AmpT; |
igor_v | 0:8ad47e2b6f00 | 29 | unsigned int AmpPer; |
igor_v | 0:8ad47e2b6f00 | 30 | unsigned int AmpPerDel;//0-100% |
igor_v | 0:8ad47e2b6f00 | 31 | unsigned int AmpN1; |
igor_v | 0:8ad47e2b6f00 | 32 | unsigned int AmpN2; |
igor_v | 0:8ad47e2b6f00 | 33 | unsigned int AmpMin; |
igor_v | 0:8ad47e2b6f00 | 34 | unsigned int AmpTD; |
igor_v | 0:8ad47e2b6f00 | 35 | |
igor_v | 0:8ad47e2b6f00 | 36 | unsigned int CMD_In; |
igor_v | 0:8ad47e2b6f00 | 37 | unsigned int SOC_Out; |
igor_v | 0:8ad47e2b6f00 | 38 | unsigned int My_Addres; |
igor_v | 0:8ad47e2b6f00 | 39 | unsigned int GLD_Serial; |
igor_v | 0:8ad47e2b6f00 | 40 | unsigned int CRC; |
igor_v | 0:8ad47e2b6f00 | 41 | unsigned int Firmware_Version; |
igor_v | 0:8ad47e2b6f00 | 42 | unsigned int RsErrLine; |
igor_v | 0:8ad47e2b6f00 | 43 | |
igor_v | 0:8ad47e2b6f00 | 44 | unsigned int Cnt_Pls; |
igor_v | 0:8ad47e2b6f00 | 45 | unsigned int Cnt_Mns; |
igor_v | 0:8ad47e2b6f00 | 46 | unsigned int Cnt_Dif; |
igor_v | 0:8ad47e2b6f00 | 47 | unsigned int T_Vib; |
igor_v | 0:8ad47e2b6f00 | 48 | unsigned int F_ras; |
igor_v | 0:8ad47e2b6f00 | 49 | }; |
igor_v | 0:8ad47e2b6f00 | 50 | extern struct MAIN Main; |
igor_v | 0:8ad47e2b6f00 | 51 | |
igor_v | 0:8ad47e2b6f00 | 52 | //unsigned int init_Vibro (); |
igor_v | 0:8ad47e2b6f00 | 53 | extern void cheng(void); |
igor_v | 0:8ad47e2b6f00 | 54 | extern void Noise(void); |
igor_v | 0:8ad47e2b6f00 | 55 | extern void VibroOut(void); |
igor_v | 0:8ad47e2b6f00 | 56 | |
igor_v | 0:8ad47e2b6f00 | 57 | extern int Pulse_midl ; |
igor_v | 0:8ad47e2b6f00 | 58 | extern struct VIBRO Vib; |
igor_v | 0:8ad47e2b6f00 | 59 | extern int PulseHalf; |
igor_v | 0:8ad47e2b6f00 | 60 | extern int CuruAngle; |
igor_v | 0:8ad47e2b6f00 | 61 | extern unsigned int FrecTemp; |
igor_v | 0:8ad47e2b6f00 | 62 | #endif |
igor_v | 0:8ad47e2b6f00 | 63 | |
igor_v | 0:8ad47e2b6f00 | 64 |