summaryrefslogtreecommitdiff
path: root/globals.h
diff options
context:
space:
mode:
authorMichael J. Chudobiak <mjc@avtechpulse.com>2012-08-23 07:53:04 -0400
committerMichael J. Chudobiak <mjc@avtechpulse.com>2012-08-23 07:53:04 -0400
commita453d3b91e5d947f4706c2c355948eda7a8f15d2 (patch)
tree19d34bde5d6eadfa7521ff179d3147bc875480c0 /globals.h
parent923edbae71bfe8bb465f017de119e2a3f1fbd1e2 (diff)
initial addition of Main_Rst
Diffstat (limited to 'globals.h')
-rw-r--r--globals.h36
1 files changed, 36 insertions, 0 deletions
diff --git a/globals.h b/globals.h
index 598ab20..87df3fb 100644
--- a/globals.h
+++ b/globals.h
@@ -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;