diff options
Diffstat (limited to 'globals.h')
-rw-r--r-- | globals.h | 36 |
1 files changed, 36 insertions, 0 deletions
@@ -513,11 +513,47 @@ typedef struct { } FlashStruct; #pragma pack(pop) + +typedef struct { + float err_min_freq[max_channels]; /* current minimum-allowed frequency */ + float err_max_freq[max_channels]; /* current maximum-allowed frequency */ + float err_min_pw[max_channels]; /* current minimum-allowed pulse width */ + float err_max_pw[max_channels]; /* current maximum-allowed pulse width */ + float err_min_delay[max_channels]; /* current minimum-allowed delay */ + float err_max_delay[max_channels]; /* current maximum-allowed delay */ + float err_min_ampl[max_channels]; /* current minimum-allowed amplitude */ + float err_max_ampl[max_channels]; /* current maximum-allowed amplitude */ + float err_min_offset[max_channels]; /* current minimum-allowed offset */ + float err_max_offset[max_channels]; /* current maximum-allowed offset */ + int err_max_burst_count[max_channels]; /* current maximum-allowed burst current */ + float err_min_burst_time[max_channels]; /* current minimum-allowed burst spacing */ + float err_max_burst_time[max_channels]; /* current maximum-allowed burst spacing */ + float err_min_rise_time[max_channels]; /* current minimum-allowed burst spacing */ + float err_max_rise_time[max_channels]; /* current maximum-allowed burst spacing */ + float err_min_soft_current_limit[max_channels]; + float err_max_soft_current_limit[max_channels]; + float err_min_slew[max_channels]; + float err_max_slew[max_channels]; + float err_min_load_type[max_channels]; + float err_max_load_type[max_channels]; + float err_min_vcc1[max_channels]; + float err_max_vcc1[max_channels]; + float err_min_vcc2[max_channels]; + float err_max_vcc2[max_channels]; + float err_min_vlogic[max_channels]; + float err_max_vlogic[max_channels]; + float composite_min_burst_time[max_channels]; /* minimum ever possible gap, taking into account all constraints */ +} ConstraintsStruct; + + typedef struct { + ConstraintsStruct Constraints; ChannelStruct ChannelState[max_channels]; FlashStruct Flash; int error_queue[error_queue_length+1]; int number_of_errors; /* how many errors are in the error queue */ + int extended_ampl_min_max; + int do_check_settings; } GlobalStruct; extern GlobalStruct globals; |