コード例 #1
0
ファイル: HpiMarshalGen.cs プロジェクト: openhpi1/testrepo
            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
ファイル: HpiMarshalGen.cs プロジェクト: openhpi1/testrepo
 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
ファイル: HpiUtilGen.cs プロジェクト: openhpi1/openhpitest
 /**
  * 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;
 }