Updatable.java
Go to the documentation of this file.
1 package com.intel.realsense.librealsense;
2 
3 public class Updatable extends Device {
5 
6  public void enterUpdateState() {
7  nEnterUpdateState(mHandle);
8  }
9 
10  public synchronized void updateUnsigned(byte[] image, ProgressListener listener){
11  mListener = listener;
12  nUpdateFirmwareUnsigned(mHandle, image, 0);
13  }
14 
15  public synchronized byte[] createFlashBackup(ProgressListener listener){
16  mListener = listener;
17  return nCreateFlashBackup(mHandle);
18  }
19 
20  public synchronized byte[] createFlashBackup(){
21  mListener = new ProgressListener() {
22  @Override
23  public void onProgress(float progress) {
24  }
25  };
26  return createFlashBackup(mListener);
27  }
28 
29  Updatable(long handle){
30  super(handle);
31  mOwner = false;
32  }
33 
34  void onProgress(float progress){
35  mListener.onProgress(progress);
36  }
37 
38  private static native void nEnterUpdateState(long handle);
39  private native byte[] nCreateFlashBackup(long handle);
40  private native void nUpdateFirmwareUnsigned(long handle, byte[] image, int update_mode);
41 }
uvc_xu_option< int > super
Definition: l500-options.h:32
native void nUpdateFirmwareUnsigned(long handle, byte[] image, int update_mode)
GLuint64 GLenum void * handle
Definition: glext.h:7785
def progress(args)
Definition: log.py:43
synchronized byte[] createFlashBackup(ProgressListener listener)
Definition: Updatable.java:15
GLenum GLenum GLsizei void * image
synchronized void updateUnsigned(byte[] image, ProgressListener listener)
Definition: Updatable.java:10
static native void nEnterUpdateState(long handle)
native byte[] nCreateFlashBackup(long handle)
unsigned char byte
Definition: src/types.h:52


librealsense2
Author(s): Sergey Dorodnicov , Doron Hirshberg , Mark Horn , Reagan Lopez , Itay Carpis
autogenerated on Mon May 3 2021 02:50:13