123
Fork of LG by
vibro.h
- Committer:
- igor_v
- Date:
- 2016-01-30
- Revision:
- 1:f2adcae3d304
- Parent:
- 0:8ad47e2b6f00
- Child:
- 21:bc8c1cec3da6
File content as of revision 1:f2adcae3d304:
#ifndef VIBRO_H #define VIBRO_H #define LoopOn LPC_GPIO1->FIOSET = (1<<30); #define LoopOff LPC_GPIO1->FIOCLR = (1<<30); #define StartV1 0 #define StartV2 15 #define TIME_INTERVAL (7812) struct MAIN { unsigned int RgConA; unsigned int RgConB; unsigned int Frq; // ���������������� �������� ������� ��� �������. unsigned int FrqHZ; // ������� � ��. unsigned int FrqRate; // ������� ������ ��� ���������. unsigned int FrqMin; // ����������� �������� ���������� �������. unsigned int FrqOld; // �������� ������� �� ������� ����. unsigned int Amp; unsigned int AmpL; unsigned int AmpT; unsigned int AmpPer; unsigned int AmpPerDel;//0-100% unsigned int AmpN1; unsigned int AmpN2; unsigned int AmpMin; unsigned int AmpTD; unsigned int CMD_In; unsigned int SOC_Out; unsigned int My_Addres; unsigned int GLD_Serial; unsigned int CRC; unsigned int Firmware_Version; unsigned int RsErrLine; unsigned int Cnt_Pls; unsigned int Cnt_Mns; unsigned int Cnt_Dif; unsigned int T_Vib; unsigned int F_ras; }; extern struct MAIN Main; //unsigned int init_Vibro (); extern void cheng(void); extern void Noise(void); extern void VibroOut(void); extern int Pulse_midl ; extern struct VIBRO Vib; extern int PulseHalf; extern int CuruAngle; extern unsigned int FrecTemp; #endif