diff options
author | root <root@xena.domain.avtechpulse.com> | 2012-08-23 09:24:20 -0400 |
---|---|---|
committer | root <root@xena.domain.avtechpulse.com> | 2012-08-23 09:24:20 -0400 |
commit | 8c3652a30c35847380e19397077e41362bdefcb6 (patch) | |
tree | b59cacf814ba8d53284530a8107a0fca2320bbb2 /globals.h | |
parent | a453d3b91e5d947f4706c2c355948eda7a8f15d2 (diff) |
added most commands to the parser, with supporting global vars
Diffstat (limited to 'globals.h')
-rw-r--r-- | globals.h | 43 |
1 files changed, 43 insertions, 0 deletions
@@ -130,6 +130,42 @@ typedef struct { + int PRIMARY_ADDRESS; /* GPIB chip's GPIB primary address */ + int INTERFACE_ERROR; /* Error Code */ + int INTERFACE_STATUS; /* Interface Status */ + unsigned int MR_4882_status[5]; /* 4882 status memory registers */ + unsigned long int DATA_COUNT; /* Transfer count */ + unsigned long int Requested_Count; /* Requested transfer count */ + unsigned long int cnt; + int prev_brq; + int spoll_count; +} GpibStruct; + + +typedef struct { + int baud; + int parity; + int stopbits; + int databits; + int hardhand; + int echo; +} Rs232Struct; + + +typedef struct { + int channel; + int cal_type; + int count; + int error; + float max_change; + float avg_change; + int total_errors; + float total_max_change; + char response[max_output_length]; +} CalStruct; + + +typedef struct { float frequency; /* the global frequency variable */ float delay; /* the global delay variable */ float pw; /* the global pulse width variable */ @@ -550,10 +586,17 @@ typedef struct { ConstraintsStruct Constraints; ChannelStruct ChannelState[max_channels]; FlashStruct Flash; + GpibStruct GPIB; + Rs232Struct RS232; + 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; + int oper_enable_register; /* for stat:enable command */ + int ques_enable_register; /* for stat:enable command */ + int flash_writes_suspended; + } GlobalStruct; extern GlobalStruct globals; |