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; }
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 ); }
/** * 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; }