TledPHAevent_a

 Definition of the LED Pulse Height Analyse event, sub-type 'a'

 Version 1.1

 Level(s): 2

 Format(s): f10,f30,f40,f50


 NOTE: The Onboard identification bits (PHA-select b4-b6) are available only from
       OSS-2.51 onwards (since 25 January 2002).

 NOTE: The names of the H/W status bits in sbs[0:4] follow the convention in 
       "E-ELE-FM-1801A A Technical Specisfication of ERNE gate Array"

 NOTE: Except for the MAINT-mode the following H/W status bits are not packed 
       in the PHA telemetry and are thus always 0:
          sbs[1]: ACHIT
          sbs[3]: all the bits
       

 TledPHAevent_a::
    sbs : BYTE[6]    sbs[0] upper byte of the H/W status word SW1:
                        b7    = D11HIT
                        b6    = D12HIT
                        b5    = D13HIT
                        b4    = D14HIT
                        b3    = D15HIT
                        b2    = D16HIT
                        b1    = D17HIT
                        b0    = not used
                     sbs[1] lower byte of the H/W status word SW1:
                        b7    = not used
                        b6    = not used
                        b5    = D2HIT
                        b4    = not used
                        b3    = ACHIT (0 in ON-mode PHA data)
                        b2    = not used
                        b2    = not used
                        b0    = not used
                     sbs[2] upper byte of the H/W status word SW2:
                        b7    = not used
                        b6    = not used
                        b5    = E1AGS
                        b4    = E1BGS
                        b3    = D2GSM
                        b2    = D2GSL
                        b1    = not used
                        b0    = not used
                     sbs[3] lower byte of the H/W status word SW2:
                        b7    = E1A5P0 (0 in ON-mode PHA data)
                        b6    = E1A40  (0 in ON-mode PHA data)
                        b5    = E1B1P5 (0 in ON-mode PHA data)
                        b4    = E1B4P5 (0 in ON-mode PHA data)
                        b3    = E1B15  (0 in ON-mode PHA data)
                        b2    = not used
                        b1    = D2E10  (0 in ON-mode PHA data)
                        b0    = D2E50  (0 in ON-mode PHA data)
                     sbs[4] - priority bits:
                        b7    = RESERVED
                        b6    = PR1-bit
                        b5    = PR2-bit
                        b0-b4 = RESERVED
                     sbs[5] PHA-select:
                        b7    = RESERVED
                        b6    = Onboard ident = He4 (He or light/resc section)
                        b5    = Onboard ident = He3 (He or light/resc section)
                        b4    = Onboard ident = d or t (He or light/resc section)
                        b3    = Heavy PHA section
                        b2    = Helium PHA section
                        b1    = Light PHA section   (includes rescued data)
                        b0    = Rescued PHA section (b1 bit set also)
    pds : INT[2]     D1 and D2 pulse heights



 VERSION HISTORY:

 1.1 - 2014-08-19

       Added descriptions for the H/W status bits (sbs[0:3]) (ER)


 1.0 - 2006-10-27

       First version for automated (on-need) structure definition (ER)