![](/media/cache/img/default_profile.jpg.50x50_q85.jpg)
n
Fork of LG by
vibro.h@21:bc8c1cec3da6, 2016-02-03 (annotated)
- Committer:
- igor_v
- Date:
- Wed Feb 03 07:19:30 2016 +0000
- Revision:
- 21:bc8c1cec3da6
- Parent:
- 1:f2adcae3d304
- Child:
- 26:52ce5953a5c2
?????????? ??????? ??????????, ???????? ??? ?????? ?????????? ??????????? ?????????.
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 | 21:bc8c1cec3da6 | 4 | /* |
igor_v | 21:bc8c1cec3da6 | 5 | #define SetV1 LPC_GPIO1->FIOSET = (1<<25); |
igor_v | 21:bc8c1cec3da6 | 6 | #define ClrV1 LPC_GPIO1->FIOCLR = (1<<25); |
igor_v | 21:bc8c1cec3da6 | 7 | #define SetV2 LPC_GPIO1->FIOSET = (1<<28); |
igor_v | 21:bc8c1cec3da6 | 8 | #define ClrV2 LPC_GPIO1->FIOCLR = (1<<28); |
igor_v | 21:bc8c1cec3da6 | 9 | */ |
igor_v | 21:bc8c1cec3da6 | 10 | #define ClrV1 LPC_GPIO1->FIOSET=(1<<25); |
igor_v | 21:bc8c1cec3da6 | 11 | #define SetV1 LPC_GPIO1->FIOCLR = (1<<25); |
igor_v | 1:f2adcae3d304 | 12 | |
igor_v | 21:bc8c1cec3da6 | 13 | #define ClrV2 LPC_GPIO1->FIOSET = (1<<28); |
igor_v | 21:bc8c1cec3da6 | 14 | #define SetV2 LPC_GPIO1->FIOCLR = (1<<28); |
igor_v | 0:8ad47e2b6f00 | 15 | |
igor_v | 0:8ad47e2b6f00 | 16 | #define LoopOn LPC_GPIO1->FIOSET = (1<<30); |
igor_v | 0:8ad47e2b6f00 | 17 | #define LoopOff LPC_GPIO1->FIOCLR = (1<<30); |
igor_v | 0:8ad47e2b6f00 | 18 | #define StartV1 0 |
igor_v | 0:8ad47e2b6f00 | 19 | #define StartV2 15 |
igor_v | 0:8ad47e2b6f00 | 20 | #define TIME_INTERVAL (7812) |
igor_v | 0:8ad47e2b6f00 | 21 | |
igor_v | 0:8ad47e2b6f00 | 22 | |
igor_v | 0:8ad47e2b6f00 | 23 | struct MAIN { |
igor_v | 0:8ad47e2b6f00 | 24 | |
igor_v | 0:8ad47e2b6f00 | 25 | unsigned int RgConA; |
igor_v | 0:8ad47e2b6f00 | 26 | unsigned int RgConB; |
igor_v | 0:8ad47e2b6f00 | 27 | |
igor_v | 0:8ad47e2b6f00 | 28 | |
igor_v | 21:bc8c1cec3da6 | 29 | unsigned int Frq; // Непосредственное значение частоты для таймера. |
igor_v | 21:bc8c1cec3da6 | 30 | unsigned int FrqHZ; // Частота в Гц. |
igor_v | 21:bc8c1cec3da6 | 31 | unsigned int FrqRate; // Разброс частот при ошумлении. |
igor_v | 21:bc8c1cec3da6 | 32 | unsigned int FrqMin; // Минимальное значение ошумленной частоты. |
igor_v | 21:bc8c1cec3da6 | 33 | unsigned int FrqOld; // Значение частоты за прошлый такт. |
igor_v | 0:8ad47e2b6f00 | 34 | |
igor_v | 0:8ad47e2b6f00 | 35 | unsigned int Amp; |
igor_v | 0:8ad47e2b6f00 | 36 | unsigned int AmpL; |
igor_v | 0:8ad47e2b6f00 | 37 | unsigned int AmpT; |
igor_v | 0:8ad47e2b6f00 | 38 | unsigned int AmpPer; |
igor_v | 0:8ad47e2b6f00 | 39 | unsigned int AmpPerDel;//0-100% |
igor_v | 0:8ad47e2b6f00 | 40 | unsigned int AmpN1; |
igor_v | 0:8ad47e2b6f00 | 41 | unsigned int AmpN2; |
igor_v | 0:8ad47e2b6f00 | 42 | unsigned int AmpMin; |
igor_v | 0:8ad47e2b6f00 | 43 | unsigned int AmpTD; |
igor_v | 0:8ad47e2b6f00 | 44 | |
igor_v | 0:8ad47e2b6f00 | 45 | unsigned int CMD_In; |
igor_v | 0:8ad47e2b6f00 | 46 | unsigned int SOC_Out; |
igor_v | 0:8ad47e2b6f00 | 47 | unsigned int My_Addres; |
igor_v | 0:8ad47e2b6f00 | 48 | unsigned int GLD_Serial; |
igor_v | 0:8ad47e2b6f00 | 49 | unsigned int CRC; |
igor_v | 0:8ad47e2b6f00 | 50 | unsigned int Firmware_Version; |
igor_v | 0:8ad47e2b6f00 | 51 | unsigned int RsErrLine; |
igor_v | 0:8ad47e2b6f00 | 52 | |
igor_v | 0:8ad47e2b6f00 | 53 | unsigned int Cnt_Pls; |
igor_v | 0:8ad47e2b6f00 | 54 | unsigned int Cnt_Mns; |
igor_v | 0:8ad47e2b6f00 | 55 | unsigned int Cnt_Dif; |
igor_v | 0:8ad47e2b6f00 | 56 | unsigned int T_Vib; |
igor_v | 0:8ad47e2b6f00 | 57 | unsigned int F_ras; |
igor_v | 0:8ad47e2b6f00 | 58 | }; |
igor_v | 0:8ad47e2b6f00 | 59 | extern struct MAIN Main; |
igor_v | 0:8ad47e2b6f00 | 60 | |
igor_v | 21:bc8c1cec3da6 | 61 | extern unsigned int init_Vibro (); |
igor_v | 0:8ad47e2b6f00 | 62 | extern void cheng(void); |
igor_v | 0:8ad47e2b6f00 | 63 | extern void Noise(void); |
igor_v | 0:8ad47e2b6f00 | 64 | extern void VibroOut(void); |
igor_v | 0:8ad47e2b6f00 | 65 | |
igor_v | 0:8ad47e2b6f00 | 66 | extern int Pulse_midl ; |
igor_v | 0:8ad47e2b6f00 | 67 | extern struct VIBRO Vib; |
igor_v | 0:8ad47e2b6f00 | 68 | extern int PulseHalf; |
igor_v | 0:8ad47e2b6f00 | 69 | extern int CuruAngle; |
igor_v | 0:8ad47e2b6f00 | 70 | extern unsigned int FrecTemp; |
igor_v | 0:8ad47e2b6f00 | 71 | #endif |
igor_v | 0:8ad47e2b6f00 | 72 |