예제 #1
0
 public void MarshalSaHpiDimiTestResultsT( SaHpiDimiTestResultsT x )
 {
     MarshalSaHpiTimeT( x.ResultTimeStamp );
     MarshalSaHpiTimeoutT( x.RunDuration );
     MarshalSaHpiDimiTestRunStatusT( x.LastRunStatus );
     MarshalSaHpiDimiTestErrCodeT( x.TestErrorCode );
     MarshalSaHpiTextBufferT( x.TestResultString );
     MarshalSaHpiBoolT( x.TestResultStringIsURI );
 }
예제 #2
0
            public static long saHpiDimiTestResultsGet(
        long SessionId,
        long ResourceId,
        long DimiNum,
        long TestNum,
        out SaHpiDimiTestResultsT TestResults
    )
            {
                long rv;
                bool rc;

                TestResults = null;

                HpiSession s = HpiCore.GetSession( SessionId );
                if ( s == null ) {
                return HpiConst.SA_ERR_HPI_INVALID_SESSION;
                }
                OhpiMarshal m = s.GetMarshal();
                if ( m == null ) {
                return HpiConst.SA_ERR_HPI_NO_RESPONSE;
                }

                m.MarshalSaHpiSessionIdT( s.GetRemoteSid() );
                m.MarshalSaHpiResourceIdT( ResourceId );
                m.MarshalSaHpiDimiNumT( DimiNum );
                m.MarshalSaHpiDimiTestNumT( TestNum );
                rc = m.Interchange( OhpiConst.RPC_SAHPI_DIMI_TEST_RESULTS_GET );
                if ( !rc ) {
                m.Close();
                return HpiConst.SA_ERR_HPI_NO_RESPONSE;
                }
                rv = m.DemarshalSaErrorT();
                if ( rv == HpiConst.SA_OK ) {
                TestResults = m.DemarshalSaHpiDimiTestResultsT();
                }
                s.PutMarshal( m );

                return rv;
            }
예제 #3
0
            public SaHpiDimiTestResultsT DemarshalSaHpiDimiTestResultsT()
            {
                SaHpiDimiTestResultsT x = new SaHpiDimiTestResultsT();

                x.ResultTimeStamp = DemarshalSaHpiTimeT();
                x.RunDuration = DemarshalSaHpiTimeoutT();
                x.LastRunStatus = DemarshalSaHpiDimiTestRunStatusT();
                x.TestErrorCode = DemarshalSaHpiDimiTestErrCodeT();
                x.TestResultString = DemarshalSaHpiTextBufferT();
                x.TestResultStringIsURI = DemarshalSaHpiBoolT();

                return x;
            }
예제 #4
0
 /**
  * Check function for HPI struct SaHpiDimiTestResultsT
  */
 public static bool Check( SaHpiDimiTestResultsT x )
 {
     if ( x == null ) {
     return false;
     }
     if ( !Check( x.TestResultString ) ) {
     return false;
     }
     return true;
 }