00001 #!/usr/local/bin/python 00002 # 00003 # Copyright 2004 00004 # by 00005 # The Board of Trustees of the 00006 # Leland Stanford Junior University. 00007 # All rights reserved. 00008 # 00009 00010 00011 __facility__ = "Online" 00012 __abstract__ = "Node which describes a Spacecraft Interface Unit" 00013 __author__ = "A. Perazzo <perazzo@slac.stanford.edu> SLAC - GLAST LAT I&T/Online" 00014 __date__ = ("$Date: 2004/12/05 21:09:12 $").split(' ')[1] 00015 __version__ = "$Revision: 2.1 $" 00016 __release__ = "$Name: R04-12-00 $" 00017 __credits__ = "SLAC" 00018 00019 import LATTE.copyright_SLAC 00020 00021 import gDb 00022 00023 class GSIU(gDb.Gdb): 00024 """\brief SIU node. 00025 """ 00026 __attrs = [] 00027 00028 def __init__(self, client, parent, id): 00029 """\brief Initialize valid registers as Gattrs. 00030 """ 00031 addr = gDb.Lem.ADDR_MASTER | (id+1) 00032 flags = {'CmdrspFabric' : 'On', 00033 'EventFabric' : 'On', 00034 'UseSecMainFeed': False, 00035 'PowerPdu0' : False, 00036 'PowerPdu1' : False, 00037 'PowerPrimDab' : False, 00038 'PowerSecDab' : False} 00039 gDb.Gdb.__init__(self, client, parent, id, self.__attrs, addr, flags) 00040