fork

Dependencies:   mbed

Fork of LG by igor Apu

Committer:
Kovalev_D
Date:
Mon Sep 04 12:55:13 2017 +0000
Revision:
217:15cd8752bb6c
Parent:
205:775d54fdf646
dd

Who changed what in which revision?

UserRevisionLine numberNew contents of line
igor_v 0:8ad47e2b6f00 1 extern unsigned int Err;
igor_v 0:8ad47e2b6f00 2 extern unsigned int ParamIn;
igor_v 0:8ad47e2b6f00 3 extern unsigned int Rate_Flag;
Kovalev_D 93:b3803774f110 4 extern unsigned int CountBuFFIn;
Kovalev_D 105:bd01d8d20fb6 5 extern unsigned int Param1;
Kovalev_D 105:bd01d8d20fb6 6 extern unsigned int Param2;
Kovalev_D 128:1e4675a36c93 7 extern unsigned int CountParam;
Kovalev_D 147:1aed74f19a8f 8
Kovalev_D 205:775d54fdf646 9 #define IMG_START_SECTOR 0x00006000 /* Sector 16 */
Kovalev_D 147:1aed74f19a8f 10 #define IMG_END_SECTOR 0x00017FFF /* Sector 20 */
Kovalev_D 147:1aed74f19a8f 11
Kovalev_D 147:1aed74f19a8f 12
Kovalev_D 147:1aed74f19a8f 13
igor_v 21:bc8c1cec3da6 14 #define SOC_In 0xCC //e. attribute of command //r. признак команды
igor_v 0:8ad47e2b6f00 15 //#define SOC_Out 0xDD
igor_v 21:bc8c1cec3da6 16 #define BROADCAST_ADDRESS 0x1f //e. the broadcasting address ( shared for 3 GLD ) //r. широковещательный адрес (общий для 3-х ГЛД)
igor_v 0:8ad47e2b6f00 17
igor_v 0:8ad47e2b6f00 18
igor_v 21:bc8c1cec3da6 19 #define CMD_DELTA_PS 0xa000 //e. the code of the B_DeltaPS command //r. код команды B_DeltaPS
igor_v 21:bc8c1cec3da6 20 #define CMD_DELTA_BINS 0xb000 //e. the code of the B_DeltaBINS command //r. код команды B_DeltaBINS
igor_v 21:bc8c1cec3da6 21 #define CMD_DELTA_SF 0xb200 //e. the code of the B_DeltaSF command //r. код команды B_DeltaSF
igor_v 21:bc8c1cec3da6 22 #define CMD_DEV_MODE 0xA500 //e. the code of the Device_Mode command //r. код команды Device_Mode
igor_v 21:bc8c1cec3da6 23 #define CMD_BIT_MODE 0xA700 //e. the code of the B.I.T. command //r. код команды B.I.T.(встороенного тестирования)
igor_v 21:bc8c1cec3da6 24 #define CMD_RATE 0x0000 //e. the code of the Rate command //r. код команды Rate
igor_v 21:bc8c1cec3da6 25 #define CMD_DELTA 0x0f00 //e. the code of the Delta command //r. код команды Delta
igor_v 21:bc8c1cec3da6 26 #define CMD_D_PERIOD_W 0xf000 //e. the code of the D_Period_W command //r. код команды D_Period_W
igor_v 0:8ad47e2b6f00 27
Kovalev_D 89:a0d344db227e 28 //#define CMD_MAINT 0x99 //e. the code of the Maintenance mode command //r. код команды Maintenance mode
igor_v 0:8ad47e2b6f00 29
igor_v 21:bc8c1cec3da6 30 #define SUBCMD_M_STIMUL 0x0a00 //e. the code of the Stimul command //r. код команды Stimul
igor_v 21:bc8c1cec3da6 31 #define SUBCMD_M_RESET 0x8000 //e. software device reset(restart) //r. программный сброс (рестарт) прибора
igor_v 21:bc8c1cec3da6 32 #define SUBCMD_M_CLEAR 0xda00 //e. reset of the register of errors of line 485 //r. очистка регистра ошибок линии 485
igor_v 21:bc8c1cec3da6 33 #define SUBCMD_M_MIRR 0xda01 //e. return previous contents of the receiver buffer //r. возврат предыдущего содержимого буфера приемника
igor_v 21:bc8c1cec3da6 34 #define SUBCMD_M_LDPAR_F 0xda02 //e. load GLD parameters from Flash-memory //r. загрузить параметры ГЛД из флэш-памяти
igor_v 21:bc8c1cec3da6 35 #define SUBCMD_M_LDPAR_D 0xda03 //e. set GLD parameters by procedure of initialization //r. установить параметры ГЛД процедурой инициализации
igor_v 21:bc8c1cec3da6 36 #define SUBCMD_M_START 0xda04 //e. switch on the GLD //r. включить ГЛД
igor_v 21:bc8c1cec3da6 37 #define SUBCMD_M_STOP 0xda40 //e. switch off the GLD //r. выключить ГЛД
igor_v 21:bc8c1cec3da6 38 #define SUBCMD_M_PULSE 0xda0a //e. generation of the light-up pulse //r. генерация импульса поджига
igor_v 0:8ad47e2b6f00 39
igor_v 21:bc8c1cec3da6 40 #define SUBCMD_M_CTL_R 0xd900 //e. reading the control register of the device //r. чтение регистра управления устройства
igor_v 21:bc8c1cec3da6 41 #define SUBCMD_M_CTL_M 0xd800 //e. modification of bit of the control register //r. модификация бита регистра управления
igor_v 21:bc8c1cec3da6 42 #define SUBCMD_M_RATE 0xdd00 //e. delivery of a stack of parameters M_Rate (Rate2, Rate3) //r. выдача набора параметров M_Rate (Rate2, Rate3)
igor_v 0:8ad47e2b6f00 43
igor_v 21:bc8c1cec3da6 44 #define SUBCMD_M_TMP_W 0xe000 //e. writing to the AD7714 circuit (temperature sensors) //r. запись в схемы AD7714 (измерители температуры)
igor_v 21:bc8c1cec3da6 45 #define SUBCMD_M_TMP_R 0xe100 //e. reading from the AD7714 circuit (temperature sensors) //r. чтение из схем AD7714 (измерители температуры)
igor_v 21:bc8c1cec3da6 46 #define SUBCMD_M_E5R_W 0xe200 //e. writing to the register of a mode of the Elio5 card //r. запись в регистр режима платы Elio5
igor_v 21:bc8c1cec3da6 47 #define SUBCMD_M_ADC_R 0xe300 //e. reading data from the ADC of the Elio5 card //r. чтение данных из АЦП платы Elio5
igor_v 21:bc8c1cec3da6 48 #define SUBCMD_M_VIB_W 0xe400 //e. loading of the oscillation period of the dither drive //r. загрузка периода колебаний вибропривода
igor_v 21:bc8c1cec3da6 49 #define SUBCMD_M_CNT_R 0xe500 //e. reading data from the counters of the Elio5 card //r. чтение данных из счетчиков платы Elio5
igor_v 21:bc8c1cec3da6 50 #define SUBCMD_M_GPH_W 0xe600 //e. loading gain factors of photodetector channels //r. загрузка коэффициентов усиления каналов фотоприемника
igor_v 21:bc8c1cec3da6 51 #define SUBCMD_M_FLG_R 0xe700 //e. reading data from the register of input flags //r. чтение данных из регистра входных флагов
igor_v 21:bc8c1cec3da6 52 #define SUBCMD_M_PARAM_W 0xe800 //e. writing working parameter to the data memory //r. запись рабочего параметра в память данных
igor_v 21:bc8c1cec3da6 53 #define SUBCMD_M_PARAM_R 0xe900 //e. reading working parameter of the GLD from the data memory //r. чтение рабочего параметра GLD из памяти данных
Kovalev_D 106:250ddd8629c6 54 #define SUBCMD_M_E5RA_W 0xea00 //e. writing in 1st additional (A) register of a mode of the Elio5 card //r. запись в 1-ый дополнительный (А) регистр режима платы Elio5
Kovalev_D 106:250ddd8629c6 55 extern int tempNL,tempNH;
igor_v 0:8ad47e2b6f00 56 void Read_CMD(void);
igor_v 0:8ad47e2b6f00 57 unsigned int Check(char *c, unsigned int Count);
Kovalev_D 121:bbae560cdd43 58 extern void CMD_Rate(void);
Kovalev_D 121:bbae560cdd43 59 extern void CMD_Rate2(void);
Kovalev_D 136:19b9e6abb86f 60 extern unsigned int memdump( char *base, int n );
Kovalev_D 147:1aed74f19a8f 61 extern void GoBoot(void);
Kovalev_D 147:1aed74f19a8f 62 extern void WriteFlash(void);
Kovalev_D 181:0b022246c43c 63 extern void TechLog(void);
Kovalev_D 191:40028201ddad 64 extern void DropDelay(void);
Kovalev_D 205:775d54fdf646 65 extern void M_RateA(void);
Kovalev_D 205:775d54fdf646 66 extern void ReadFlash (void);