diff options
author | Mike <mjc@avtechpulse.com> | 2000-01-01 00:02:18 +0900 |
---|---|---|
committer | Mike <mjc@avtechpulse.com> | 2000-01-01 00:02:18 +0900 |
commit | fff6c123bde578b81a9693968fafe0c6aaa7a5ac (patch) | |
tree | b384334953d72920c72408600461afc96903adbb /parser.c | |
parent | a9c3e67f488141de9e2c953bd5a007cef12bf8a0 (diff) |
add ability to temporarily disable timing cal percentage check, for burst/sep/dly2
Diffstat (limited to 'parser.c')
-rw-r--r-- | parser.c | 39 |
1 files changed, 38 insertions, 1 deletions
@@ -119,6 +119,8 @@ static int Go_atten_103(gchar** response, int channel, char *parameter,char *uni static int Go_eprom_resize_105(gchar** response, int channel, char *parameter,char *units,int command_type); static int Go_eprom_resize_ampl_106(gchar** response, int channel, char *parameter,char *units,int command_type); static int Go_eprom_resize_offset_107(gchar** response, int channel, char *parameter,char *units,int command_type); +static int Go_cal_checking_disable_108(gchar** response, int channel, char *parameter,char *units,int command_type); + static int Parser_id_word(char *id_me, int *channel, int *with_id_code) { @@ -360,6 +362,10 @@ static int Parser_id_word(char *id_me, int *channel, int *with_id_code) id_code = 110; } else if (!strcmp(id_me,"resize")) { id_code = 111; + } else if (!strcmp(id_me,"check")) { + id_code = 112; + } else if (!strcmp(id_me,"disable")) { + id_code = 113; } else { id_code = 9999; } @@ -489,7 +495,8 @@ static int Parser_find_commands(int commands[], int command_depth) {23,32,110,88,93}, /* diag:ampl:distort:calib:point - 104 */ {23,57,111}, /* diag:eprom:resize - 105 */ {23,57,111,32}, /* diag:eprom:resize:ampl - 106 */ - {23,57,111,33} /* diag:eprom:resize:offset - 107 */ + {23,57,111,33}, /* diag:eprom:resize:offset - 107 */ + {23,88,112,113} /* diag:cal:check:disable - 108 */ }; @@ -1081,6 +1088,9 @@ void Parser_main (char *raw_in, int interactive_terminal, void(*cbfunc)(gpointer case 107: error_num=Go_eprom_resize_offset_107(&response,channel,parameter,units,command_type); break; + case 108: + error_num=Go_cal_checking_disable_108(&response,channel,parameter,units,command_type); + break; case 9999: // was only whitespace, ignore @@ -4301,3 +4311,30 @@ static int Go_eprom_resize_offset_107(gchar** response, int channel, char *param return ThisShouldntHappen; } + + +static int Go_cal_checking_disable_108(gchar** response, int channel, char *parameter,char *units,int command_type) +{ + int on_off, status; + + switch (command_type) { + case command_withparam: + if (status=process_on_off (parameter, &on_off)) { + return status; + } + globals.Sys.disable_timing_cal_percent_check = on_off; + + return OK; + break; + + case query_simple: + return query_int (response, globals.Sys.disable_timing_cal_percent_check); + break; + + default: + return SyntaxError; + break; + } + + return ThisShouldntHappen; +} |