![](/media/cache/img/default_profile.jpg.50x50_q85.jpg)
fork
Fork of LG by
vibro.h@0:8ad47e2b6f00, 2016-01-30 (annotated)
- Committer:
- igor_v
- Date:
- Sat Jan 30 13:00:39 2016 +0000
- Revision:
- 0:8ad47e2b6f00
- Child:
- 1:f2adcae3d304
2016_01_30;
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 | 0:8ad47e2b6f00 | 4 | /* |
igor_v | 0:8ad47e2b6f00 | 5 | #define SetV1 LPC_GPIO1->FIOSET=(1<<25); |
igor_v | 0:8ad47e2b6f00 | 6 | #define ClrV1 LPC_GPIO1->FIOCLR = (1<<25); |
igor_v | 0:8ad47e2b6f00 | 7 | #define SetV2 LPC_GPIO1->FIOSET = (1<<28); |
igor_v | 0:8ad47e2b6f00 | 8 | #define ClrV2 LPC_GPIO1->FIOCLR = (1<<28); |
igor_v | 0:8ad47e2b6f00 | 9 | */ |
igor_v | 0:8ad47e2b6f00 | 10 | |
igor_v | 0:8ad47e2b6f00 | 11 | |
igor_v | 0:8ad47e2b6f00 | 12 | #define LoopOn LPC_GPIO1->FIOSET = (1<<30); |
igor_v | 0:8ad47e2b6f00 | 13 | #define LoopOff LPC_GPIO1->FIOCLR = (1<<30); |
igor_v | 0:8ad47e2b6f00 | 14 | #define StartV1 0 |
igor_v | 0:8ad47e2b6f00 | 15 | #define StartV2 15 |
igor_v | 0:8ad47e2b6f00 | 16 | #define TIME_INTERVAL (7812) |
igor_v | 0:8ad47e2b6f00 | 17 | |
igor_v | 0:8ad47e2b6f00 | 18 | |
igor_v | 0:8ad47e2b6f00 | 19 | struct MAIN { |
igor_v | 0:8ad47e2b6f00 | 20 | |
igor_v | 0:8ad47e2b6f00 | 21 | unsigned int RgConA; |
igor_v | 0:8ad47e2b6f00 | 22 | unsigned int RgConB; |
igor_v | 0:8ad47e2b6f00 | 23 | |
igor_v | 0:8ad47e2b6f00 | 24 | |
igor_v | 0:8ad47e2b6f00 | 25 | unsigned int Frq; // ���������������� �������� ������� ��� �������. |
igor_v | 0:8ad47e2b6f00 | 26 | unsigned int FrqHZ; // ������� � ��. |
igor_v | 0:8ad47e2b6f00 | 27 | unsigned int FrqRate; // ������� ������ ��� ���������. |
igor_v | 0:8ad47e2b6f00 | 28 | unsigned int FrqMin; // ����������� �������� ���������� �������. |
igor_v | 0:8ad47e2b6f00 | 29 | unsigned int FrqOld; // �������� ������� �� ������� ����. |
igor_v | 0:8ad47e2b6f00 | 30 | |
igor_v | 0:8ad47e2b6f00 | 31 | unsigned int Amp; |
igor_v | 0:8ad47e2b6f00 | 32 | unsigned int AmpL; |
igor_v | 0:8ad47e2b6f00 | 33 | unsigned int AmpT; |
igor_v | 0:8ad47e2b6f00 | 34 | unsigned int AmpPer; |
igor_v | 0:8ad47e2b6f00 | 35 | unsigned int AmpPerDel;//0-100% |
igor_v | 0:8ad47e2b6f00 | 36 | unsigned int AmpN1; |
igor_v | 0:8ad47e2b6f00 | 37 | unsigned int AmpN2; |
igor_v | 0:8ad47e2b6f00 | 38 | unsigned int AmpMin; |
igor_v | 0:8ad47e2b6f00 | 39 | unsigned int AmpTD; |
igor_v | 0:8ad47e2b6f00 | 40 | |
igor_v | 0:8ad47e2b6f00 | 41 | unsigned int CMD_In; |
igor_v | 0:8ad47e2b6f00 | 42 | unsigned int SOC_Out; |
igor_v | 0:8ad47e2b6f00 | 43 | unsigned int My_Addres; |
igor_v | 0:8ad47e2b6f00 | 44 | unsigned int GLD_Serial; |
igor_v | 0:8ad47e2b6f00 | 45 | unsigned int CRC; |
igor_v | 0:8ad47e2b6f00 | 46 | unsigned int Firmware_Version; |
igor_v | 0:8ad47e2b6f00 | 47 | unsigned int RsErrLine; |
igor_v | 0:8ad47e2b6f00 | 48 | |
igor_v | 0:8ad47e2b6f00 | 49 | unsigned int Cnt_Pls; |
igor_v | 0:8ad47e2b6f00 | 50 | unsigned int Cnt_Mns; |
igor_v | 0:8ad47e2b6f00 | 51 | unsigned int Cnt_Dif; |
igor_v | 0:8ad47e2b6f00 | 52 | unsigned int T_Vib; |
igor_v | 0:8ad47e2b6f00 | 53 | unsigned int F_ras; |
igor_v | 0:8ad47e2b6f00 | 54 | }; |
igor_v | 0:8ad47e2b6f00 | 55 | extern struct MAIN Main; |
igor_v | 0:8ad47e2b6f00 | 56 | |
igor_v | 0:8ad47e2b6f00 | 57 | //unsigned int init_Vibro (); |
igor_v | 0:8ad47e2b6f00 | 58 | extern void cheng(void); |
igor_v | 0:8ad47e2b6f00 | 59 | extern void Noise(void); |
igor_v | 0:8ad47e2b6f00 | 60 | extern void VibroOut(void); |
igor_v | 0:8ad47e2b6f00 | 61 | |
igor_v | 0:8ad47e2b6f00 | 62 | extern int Pulse_midl ; |
igor_v | 0:8ad47e2b6f00 | 63 | extern struct VIBRO Vib; |
igor_v | 0:8ad47e2b6f00 | 64 | extern int PulseHalf; |
igor_v | 0:8ad47e2b6f00 | 65 | extern int CuruAngle; |
igor_v | 0:8ad47e2b6f00 | 66 | extern unsigned int FrecTemp; |
igor_v | 0:8ad47e2b6f00 | 67 | #endif |
igor_v | 0:8ad47e2b6f00 | 68 | |
igor_v | 0:8ad47e2b6f00 | 69 |