Beispiel #1
0
            public SaHpiCtrlRecT DemarshalSaHpiCtrlRecT()
            {
                SaHpiCtrlRecT x = new SaHpiCtrlRecT();

                x.Num = DemarshalSaHpiCtrlNumT();
                x.OutputType = DemarshalSaHpiCtrlOutputTypeT();
                x.Type = DemarshalSaHpiCtrlTypeT();
                x.TypeUnion = DemarshalSaHpiCtrlRecUnionT( x.Type );
                x.DefaultMode = DemarshalSaHpiCtrlDefaultModeT();
                x.WriteOnly = DemarshalSaHpiBoolT();
                x.Oem = DemarshalSaHpiUint32T();

                return x;
            }
Beispiel #2
0
 public void MarshalSaHpiCtrlRecT( SaHpiCtrlRecT x )
 {
     MarshalSaHpiCtrlNumT( x.Num );
     MarshalSaHpiCtrlOutputTypeT( x.OutputType );
     MarshalSaHpiCtrlTypeT( x.Type );
     MarshalSaHpiCtrlRecUnionT( x.TypeUnion, x.Type );
     MarshalSaHpiCtrlDefaultModeT( x.DefaultMode );
     MarshalSaHpiBoolT( x.WriteOnly );
     MarshalSaHpiUint32T( x.Oem );
 }
Beispiel #3
0
 /**
  * Check function for HPI struct SaHpiCtrlRecT
  */
 public static bool Check( SaHpiCtrlRecT x )
 {
     if ( x == null ) {
     return false;
     }
     if ( !Check( x.TypeUnion, x.Type ) ) {
     return false;
     }
     if ( !Check( x.DefaultMode ) ) {
     return false;
     }
     return true;
 }