예제 #1
0
            public SaHpiSensorRecT DemarshalSaHpiSensorRecT()
            {
                SaHpiSensorRecT x = new SaHpiSensorRecT();

                x.Num = DemarshalSaHpiSensorNumT();
                x.Type = DemarshalSaHpiSensorTypeT();
                x.Category = DemarshalSaHpiEventCategoryT();
                x.EnableCtrl = DemarshalSaHpiBoolT();
                x.EventCtrl = DemarshalSaHpiSensorEventCtrlT();
                x.Events = DemarshalSaHpiEventStateT();
                x.DataFormat = DemarshalSaHpiSensorDataFormatT();
                x.ThresholdDefn = DemarshalSaHpiSensorThdDefnT();
                x.Oem = DemarshalSaHpiUint32T();

                return x;
            }
예제 #2
0
 public void MarshalSaHpiSensorRecT( SaHpiSensorRecT x )
 {
     MarshalSaHpiSensorNumT( x.Num );
     MarshalSaHpiSensorTypeT( x.Type );
     MarshalSaHpiEventCategoryT( x.Category );
     MarshalSaHpiBoolT( x.EnableCtrl );
     MarshalSaHpiSensorEventCtrlT( x.EventCtrl );
     MarshalSaHpiEventStateT( x.Events );
     MarshalSaHpiSensorDataFormatT( x.DataFormat );
     MarshalSaHpiSensorThdDefnT( x.ThresholdDefn );
     MarshalSaHpiUint32T( x.Oem );
 }
예제 #3
0
 /**
  * Check function for HPI struct SaHpiSensorRecT
  */
 public static bool Check( SaHpiSensorRecT x )
 {
     if ( x == null ) {
     return false;
     }
     if ( !Check( x.DataFormat ) ) {
     return false;
     }
     if ( !Check( x.ThresholdDefn ) ) {
     return false;
     }
     return true;
 }