;+
; Project     :	SOLAR-B - EIS
;
; Name        :	EIS_AEC_control__DEFINE
;
; Purpose     :	Generates structure EIS_AEC_control.
;
; Explanation : When IDL encounters structure 'STRname', if structure not already defined
;               it looks for routine strname__define and compiles and calls routine to define
;               structure. NB under unix it looks for lower case flename.
;
;               This routine defines the structure :
;
;                 EIS_AEC_control. Tags are :
;                   upper_threshold          : UINT high energy pixel threshold. Range 0-2^14-1.
;                   lower_threshold          : UINT low energy pixel threshold. Range 0-2^14-1.
;                   high_energy_pixel_count_limit : ULONG number of pixels above upper threshold
;                                              required to trigger increase in exposure ID.
;                                              Range 1-2^32-2.
;                   low_energy_pixel_count_limit : ULONG number of pixels below lower threshold
;                                              required to trigger decrease in exposure ID.
;                                              Range 1-2^32-2.
;                   exposure_ID              : UINT start up exposure time index determining
;                                              exposure time :
;                                                Exposure time [ms] = sqrt(2)^(exposure ID - c).
;                                              Range 0-27.
;                   binning_factor           : UINT average over pixels in the Y direction. Since
;                                              OCB is not used this will be fixed at 1.
;                   run_time                 : ULONG AEC run time in seconds. The sequence is
;                                              terminated internally when the run time has elapsed.
;                                              If 0 then continues until completes or intervention.
;                                              If no selected AEC reference line then runs at fixed exposure time.
;                                              Range 0-2^17-1.
;
; Use         :	<dummy = {EIS_AEC_control>
;
; Inputs      :	None.
;
; Opt. Inputs : None.
;
; Outputs     : Sets up structure definition.
;
; Opt. Outputs:	None.
;
; Keywords    : None,
;
; Calls       : None.
;
; Common      :	None.
;
; Restrictions:	None.
;
; Side effects:	None.
;
; Category    :	EIS_CPT.
;
; Prev. Hist. :	None.
;
; Written     :	Martin Carter RAL 03/08/04
;
; Modified    :	Version 0.1, 02/12/04, MKC
;                 Added the AEC flag.
;               Version 0.2, 24/06/05, MKC
;                 Removed the AEC flag.
;                 Changed INT values to UINT.
;               Version 0.3, 08/09/05, MKC
;                 Changed pixelc ount limits.
;
; Version     :	0.3, 08/09/05
;-
;**********************************************************

PRO eis_aec_control__define

  dummy = {EIS_AEC_control, $
           upper_threshold : 0U, $
           lower_threshold : 0U, $
           high_energy_pixel_count_limit : 0UL, $
           low_energy_pixel_count_limit : 0UL, $
           exposure_ID     : 0U, $
           binning_factor  : 0U, $
           run_time        : 0UL }

END





