Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Fork of LG by
Diff: commandset.c
- Revision:
- 129:406995a91322
- Parent:
- 112:4a96133a1311
diff -r 1e4675a36c93 -r 406995a91322 commandset.c --- a/commandset.c Mon Apr 11 11:04:34 2016 +0000 +++ b/commandset.c Tue Apr 12 11:10:49 2016 +0000 @@ -372,18 +372,18 @@ void M_Gph_W(void) //e.------------ set the gain factor of photodetector channels ------------------- //r.------------ установка усиления каналов фотоприемника ------------------- { - Device_blk.Str.Gain_Ph_A = rcv_buf[4]; //e. read from the receiver buffer the value of the gain factor of the A channel //r. считать из буфера приемника значение усиления канала А + /* Device_blk.Str.Gain_Ph_A = rcv_buf[4]; //e. read from the receiver buffer the value of the gain factor of the A channel //r. считать из буфера приемника значение усиления канала А Device_blk.Str.Gain_Ph_B = rcv_buf[5]; //e. read from the receiver buffer the value of the gain factor of the B channel //r. считать из буфера приемника значение усиления канала В Out_G_photo(Device_blk.Str.Gain_Ph_A, Device_blk.Str.Gain_Ph_B); //e. display these values to digital potentiometers //r. вывести эти значения в цифровые потенциометры trm_cycl = 0; //e. periodic data transmission is not needed //r. периодическая передача ответа не требуется - Mk_Ask1(); + Mk_Ask1();*/ } // M_Gph_W -/* + void M_Rate(void) //e.------------ start of transfer of the M_Rate parameters stack ------------------- //r.------------ запуск передачи набора параметров M_Rate ------------------- { - uint8_t mode; + /* uint8_t mode; SetSpeedPeriod(); //e. set the answer transfer rate and its periodicity //r. установить скорость передачи ответа и его периодичность UART_SwitchSpeed(trm_rate); @@ -500,25 +500,25 @@ trm_ena = 1; //e. allow operation of the transmitter //r. разрешить работу передатчика break; } - SetIntLatch(wrk_period); + SetIntLatch(wrk_period);*/ } // M_Rate -*/ + void M_Reset(void) { while(1); } // will not achieve void M_Param_R(void) //e. ------------ read the parameter of the GLD from the data memory ---------------------- //r.------------ чтение параметра GLD из памяти данных ---------------------- -{ +{/* num_of_par = 1; //e. 1 parameter output //r. выводить один параметр addr_param[0] = (void *)(&Device_blk.Str.My_Addres + rcv_buf[3]); //e. address of the needed parameter in the block //r. адрес требуемого параметра в блоке size_param[0] = 2; //e. size of the buffer - 2 bytes //r. размер буфера - 2 байта - trm_ena = 1; //e. allow operation of the transmitter //r. разрешить работу передатчика + trm_ena = 1; */ //e. allow operation of the transmitter //r. разрешить работу передатчика*/ } // M_Param_R void M_Param_W(void) //e.------------ write the parameter of the GLD from the data memory ----------------------- //r.------------ запись параметра GLD в память данных ----------------------- -{ +{/* int * ptr; ScopeMode = 0; //e. VB_DELAY_MEANDER allocate a mode of display for a control point of an scope //r. VB_DELAY_MEANDER назначить режим отображения для контрольной точки осциллографа @@ -528,22 +528,22 @@ *ptr = (rcv_buf[4] << 8) | (rcv_buf[5] & 0xFF); // write new parameter value trm_cycl = 0; //e. periodic data transmission is not needed //r. периодическая передача ответа не требуется - Mk_Ask1(); + Mk_Ask1();*/ } // M_Param_W void M_LdPar_F() //e.============ procedure for load the GLD parameters from the flash-memory =========== //r.============ процедура загрузки параметров ГЛД из флэш-памяти =========== { - +/* LoadFlashParam(FromFLASH); //e. load the GLD parameters from the flash-memory //r. загрузить параметры ГЛД из фдэш-памяти blt_in_test = ((uint32_t)FIRMWARE_VER << 8) | (Device_blk.Str.Device_SerialNumber & 0x00FF); // Init_software(); trm_cycl = 0; //e. periodic data transmission is not needed //r. периодическая передача ответа не требуется - Mk_Ask1(); + Mk_Ask1();*/ } // M_LdPar_F void M_LdPar_D(void) //e.============ procedure for set parameters of the GLD by default ============ //r.============ процедура установки параметров ГЛД по умолчанию ============ -{ +{/* #if !defined COMMAND_DEBUG LoadFlashParam(ByDefault); //e. define parameters of the GLD by default //r. определить параметры ГЛД по умолчанию (default) Init_software(); @@ -582,7 +582,7 @@ } // B_Delta void D_Period_W(void) //e. === set the period of the angle increase output //r. === установка периода выдачи приращения угла -{ +{*/ } // D_Period_W // ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++