Ejemplo n.º 1
0
 public void MarshalSaHpiResourceInfoT( SaHpiResourceInfoT x )
 {
     MarshalSaHpiUint8T( x.ResourceRev );
     MarshalSaHpiUint8T( x.SpecificVer );
     MarshalSaHpiUint8T( x.DeviceSupport );
     MarshalSaHpiManufacturerIdT( x.ManufacturerId );
     MarshalSaHpiUint16T( x.ProductId );
     MarshalSaHpiUint8T( x.FirmwareMajorRev );
     MarshalSaHpiUint8T( x.FirmwareMinorRev );
     MarshalSaHpiUint8T( x.AuxFirmwareRev );
     MarshalByteArray( x.Guid, HpiConst.SAHPI_GUID_LENGTH );
 }
Ejemplo n.º 2
0
            public SaHpiResourceInfoT DemarshalSaHpiResourceInfoT()
            {
                SaHpiResourceInfoT x = new SaHpiResourceInfoT();

                x.ResourceRev = DemarshalSaHpiUint8T();
                x.SpecificVer = DemarshalSaHpiUint8T();
                x.DeviceSupport = DemarshalSaHpiUint8T();
                x.ManufacturerId = DemarshalSaHpiManufacturerIdT();
                x.ProductId = DemarshalSaHpiUint16T();
                x.FirmwareMajorRev = DemarshalSaHpiUint8T();
                x.FirmwareMinorRev = DemarshalSaHpiUint8T();
                x.AuxFirmwareRev = DemarshalSaHpiUint8T();
                x.Guid = DemarshalByteArray( HpiConst.SAHPI_GUID_LENGTH );

                return x;
            }
Ejemplo n.º 3
0
 /**
  * Check function for HPI struct SaHpiResourceInfoT
  */
 public static bool Check( SaHpiResourceInfoT x )
 {
     if ( x == null ) {
     return false;
     }
     if ( x.Guid == null ) {
     return false;
     }
     if ( x.Guid.Length != HpiConst.SAHPI_GUID_LENGTH ) {
     return false;
     }
     return true;
 }