#ifndef PACKAGE
#define PACKAGE

//-----------------------------------------------
#define adr_REC1	1
#define adr_REC2	2
//-----------------------------------------------

//-----------------------------------------------
#define dsk_ICEE	1
//-----------------------------------------------

#define m_FAST 0
#define m_SLOW 1

#define Modbus ((WORDE *)modbus)

#define start_error	0
#define start_data		24
#define start_hi_edge	48
#define start_lo_edge	72

#define sens_error		((ERROR *)(modbus+start_error))
#define sens_data		(modbus+start_data)
#define sens_hi_edge	(modbus+start_hi_edge)
#define sens_lo_edge	(modbus+start_lo_edge)

#define KeyPressed	Modbus[0x17]

#define	Brightness	modbus[0x64]	//	аркость сигнальных лампочек

#define	Cancount	(modbus+0x65)	//	пауза между I посылками CAN

#define LastMode	modbus[126]

#define Commands	Modbus[127].all
#define cTestLamp	Modbus[127].bit.bit0
#define cDefParam	Modbus[127].bit.bit1
#define cSaveParam	Modbus[127].bit.bit2
#define cLoadParam	Modbus[127].bit.bit3

#define cTermoCal	Modbus[127].bit.bit4
#define cReadCal	Modbus[127].bit.bit5

#define cExtLamp	Modbus[127].bit.bit6
#define cExtLite	Modbus[127].bit.bit7

#define cNoLog		Modbus[127].bit.bit8

#define cReset		Modbus[127].bit.bitF

#endif	//PACKAGE

