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