Package org.wmmnpr.c2.csafe.impl

Examples of org.wmmnpr.c2.csafe.impl.PM3CsafeCPImpl


    rspDataSizeBuffer.put(0, (short) RSP_DATA_SIZE);
    ecode = pm3CsafeCP.tkcmdsetCSAFE_command(unit_address, cmd_data_size,
        cmdDataBuffer, rspDataSizeBuffer, rspDataBuffer);

    if (ecode != 0) {
      PM3Exception pm3Exception = createException(ecode);
      throw pm3Exception;
    }

  }
View Full Code Here


    pm3ddicp.tkcmdsetDDI_shutdown((short) 1);
  }
 
  protected PM3Exception createException(short ecode){
       
    PM3Exception pm3Exception = new PM3Exception(ecode);
   
      byte buffer1[] = new byte[1024];
      ByteBuffer byteBuffer1 = ByteBuffer.wrap(buffer1);
      // Format the error by looking up info in INI file
      pm3ddicp.tkcmdsetDDI_get_error_name(ecode, byteBuffer1, (short)1024);
      pm3Exception.setErrorName(new String(byteBuffer1.array()));
         
      byte buffer2[] = new byte[512];
      ByteBuffer byteBuffer2 = ByteBuffer.wrap(buffer2);    
      pm3ddicp.tkcmdsetDDI_get_error_text(ecode,byteBuffer2, (short)1024);
      pm3Exception.setErrorText(new String(byteBuffer2.array()));
       
      return pm3Exception;
     
   
View Full Code Here

    rspDataSizeBuffer.put(0, (short) RSP_DATA_SIZE);
    ecode = pm3CsafeCP.tkcmdsetCSAFE_command(unit_address, cmd_data_size,
        cmdDataBuffer, rspDataSizeBuffer, rspDataBuffer);

    if (ecode != 0) {
      PM3Exception pm3Exception = createException(ecode);
      throw pm3Exception;
    }

  }
View Full Code Here

    pm3ddicp.tkcmdsetDDI_shutdown((short) 1);
  }
 
  protected PM3Exception createException(short ecode){
       
    PM3Exception pm3Exception = new PM3Exception(ecode);
   
      byte buffer1[] = new byte[1024];
      ByteBuffer byteBuffer1 = ByteBuffer.wrap(buffer1);
      // Format the error by looking up info in INI file
      pm3ddicp.tkcmdsetDDI_get_error_name(ecode, byteBuffer1, (short)1024);
      pm3Exception.setErrorName(new String(byteBuffer1.array()));
         
      byte buffer2[] = new byte[512];
      ByteBuffer byteBuffer2 = ByteBuffer.wrap(buffer2);    
      pm3ddicp.tkcmdsetDDI_get_error_text(ecode,byteBuffer2, (short)1024);
      pm3Exception.setErrorText(new String(byteBuffer2.array()));
       
      return pm3Exception;
     
   
View Full Code Here

       
        slf4jLogger.debug("libraries loading done.");
    }
     
  public static PM3CsafeCP createPM3CsafeCP(){
    return new PM3CsafeCPImpl();
  }
View Full Code Here

  public static PM3CsafeCP createPM3CsafeCP(){
    return new PM3CsafeCPImpl();
  }

  public static PM3DDICP createPM3DDICP(){
    return new PM3DDICPImpl();
  }
View Full Code Here

  public static PM3DDICP createPM3DDICP(){
    return new PM3DDICPImpl();
  }
 
  public static PM3USBCP createPM3USBCP(){
    return new PM3USBCPImpl();
  }
View Full Code Here

TOP

Related Classes of org.wmmnpr.c2.csafe.impl.PM3CsafeCPImpl

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.