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:
- 112:4a96133a1311
- Parent:
- 21:bc8c1cec3da6
- Child:
- 129:406995a91322
--- a/commandset.c Mon Apr 04 03:21:25 2016 +0000 +++ b/commandset.c Mon Apr 04 11:09:56 2016 +0000 @@ -47,7 +47,7 @@ trm_ena = 1; //e. allow operation of the transmitter //r. разрешить работу передатчика } // B_Delta_BINS - +/* void B_Delta_SF(void) //r.=== процедура для измерения масштабного множителя { //e. time for data transfer has come, we work only with dither counters //r. пришло время передавать данные, работаем только с вибро-счетчиками @@ -68,7 +68,7 @@ size_param[4] = 12; trm_ena = 1; //e. allow operation of the transmitter //r. разрешить работу передатчика } // B_Delta_SF - +*/ void B_Delta_PS_execution(void) { static void * paramTable[11] = {&(Output.Str.F_ras) , &(Output.Str.HF_reg), &(Output.Str.T_Vibro), &(Output.Str.L_Vibro), &(Output.Str.WP_reg), &(Output.Str.Tmp_Out[0]), &(Output.Str.Tmp_Out[1]), &(Output.Str.Tmp_Out[2]), &(Output.Str.Tmp_Out[3]), &(Output.Str.Tmp_Out[4]), &(Output.Str.Tmp_Out[5])}; @@ -300,7 +300,7 @@ trm_cycl = 0; //e. periodic data transmission is not needed //r. периодическая передача ответа не требуется Mk_Ask1(); } // M_e5rA_W */ - +/* void M_Ctl_R(void) //r.----------------- reading the control register of the device ----------------- //r.----------------- чтение регистра управления устройства ----------------- { num_of_par = 2; //e. 2 parameters transfer //r. передавать 2 параметра @@ -343,7 +343,7 @@ trm_cycl = 0; //e. forbid cyclic transmission of the parameter //r. запретить передачу параметра в цикле trm_ena = 1; //e. allow operation of the transmitter of line //r. разрешить работу передатчика линии } // M_Ctl_M - +*/ void M_Flg_R(void) //e.------------ reading the register of input flags --------------------------- //r.------------ чтение регистра входных флагов --------------------------- { @@ -380,7 +380,7 @@ trm_cycl = 0; //e. periodic data transmission is not needed //r. периодическая передача ответа не требуется 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; @@ -502,7 +502,7 @@ } SetIntLatch(wrk_period); } // M_Rate - +*/ void M_Reset(void) { while(1); @@ -586,7 +586,7 @@ } // D_Period_W // ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ -void exec_CMD(void) //e. === the final decoding and command execution procedure //r. === процедура окончательной дешифрации и исполнения команды +/*void exec_CMD(void) //e. === the final decoding and command execution procedure //r. === процедура окончательной дешифрации и исполнения команды { uint32_t wcode; @@ -673,16 +673,16 @@ M_Mirror(); //e. prepare transfer of the receiving buffer copy //r. подготовить передачу копии приемного буфера return; } - /* else if (wcode == SUBCMD_M_TMP_W) //e. is this subcommand for writing instructions to the AD7714? //r. это подкоманда записи инструкций в AD7714? + else if (wcode == SUBCMD_M_TMP_W) //e. is this subcommand for writing instructions to the AD7714? //r. это подкоманда записи инструкций в AD7714? { // M_Tmp_W(); //e. yes, procedure call of write of the command //r. да, вызов процедуры записи команды return; - } */ + } else if (wcode == SUBCMD_M_TMP_R) { //e. is this subcommand for data read from the AD7714? //r. это подкоманда чтения данных из AD7714? M_Tmp_R(); //r. yes, call the procedure for data read //e. да, вызов процедуры чтения данных return; } - /* else if (wcode == SUBCMD_M_E5R_W) //e. is this subcommand for write to the mode register? //r. это подкоманда записи в регистр режима? + else if (wcode == SUBCMD_M_E5R_W) //e. is this subcommand for write to the mode register? //r. это подкоманда записи в регистр режима? { M_e5r_W(); //e. yes, write data to the mode register of the Elio5 card //r. да, записать данные в регистр режима платы Elio5 return; @@ -691,7 +691,7 @@ { M_e5rA_W(); //e. yes, write data to the mode register of the Elio5 card //r. да, записать данные в регистр режима платы Elio5 return; - } */ + } else if (wcode == SUBCMD_M_ADC_R) { //e. is t the subcommand for data read from ADCs ADS1250 and ADS8321 ? //r. это подкоманда чтения данных из АЦП ADS1250 и ADS8321? M_ADC_R(); //e. read of ADC channels //r. чтение каналов АЦП return; @@ -741,11 +741,11 @@ M_Ctl_M(); return; } - /* else if (wcode == SUBCMD_M_RESET) //e. is this subcommand for modification of the device control register? //r. это подкоманда модификации регистра управления у-ва? + else if (wcode == SUBCMD_M_RESET) //e. is this subcommand for modification of the device control register? //r. это подкоманда модификации регистра управления у-ва? { M_Reset(); return; - }*/ + } else { line_sts = line_sts | MODE_ERR; // mode error return; @@ -812,3 +812,4 @@ line_sts = 0; //e. reset the line status register //r. сбросить регистр статуса линии rcv_Rdy = 0; //e. allow further data reception //r. разрешить дальнейший прием данных } // decode_CMD +*/ \ No newline at end of file