@Namespace(value="dai") @NoOffset @Properties(inherit=depthai.class) public class DeviceBootloader extends Pointer
| Modifier and Type | Class and Description |
|---|---|
static class |
DeviceBootloader.Version
Bootloader version structure
|
Pointer.CustomDeallocator, Pointer.Deallocator, Pointer.NativeDeallocator, Pointer.ReferenceCounter| Constructor and Description |
|---|
DeviceBootloader(DeviceInfo devInfo)
Connects to or boots device in bootloader mode depending on devInfo state.
|
DeviceBootloader(DeviceInfo devInfo,
BytePointer pathToBootloader)
Connects to or boots device in bootloader mode depending on devInfo state with a custom bootloader firmware.
|
DeviceBootloader(DeviceInfo devInfo,
depthai.Type type)
Connects to device in bootloader of specified type.
|
DeviceBootloader(DeviceInfo devInfo,
int type) |
DeviceBootloader(DeviceInfo devInfo,
String pathToBootloader) |
DeviceBootloader(Pointer p)
Pointer cast constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
_close()
Explicitly closes connection to device.
|
static BytePointer |
createDepthaiApplicationPackage(Pipeline pipeline) |
static BytePointer |
createDepthaiApplicationPackage(Pipeline pipeline,
BytePointer pathToCmd)
Creates application package which can be flashed to depthai device.
|
static ByteBuffer |
createDepthaiApplicationPackage(Pipeline pipeline,
String pathToCmd) |
static depthai.Type |
DEFAULT_TYPE()
Default Bootloader type
|
Pointer |
flash(depthai.ProgressCallback progressCallback,
Pipeline pipeline)
Flashes a give pipeline to the board.
|
Pointer |
flashBootloader(depthai.Memory memory,
depthai.Type type,
depthai.ProgressCallback progressCallback) |
Pointer |
flashBootloader(depthai.Memory memory,
depthai.Type type,
depthai.ProgressCallback progressCallback,
BytePointer path)
Flash selected bootloader to the current board
|
Pointer |
flashBootloader(depthai.ProgressCallback progressCallback) |
Pointer |
flashBootloader(depthai.ProgressCallback progressCallback,
BytePointer path)
Flashes bootloader to the current board
|
Pointer |
flashBootloader(depthai.ProgressCallback progressCallback,
String path) |
Pointer |
flashBootloader(int memory,
int type,
depthai.ProgressCallback progressCallback) |
Pointer |
flashBootloader(int memory,
int type,
depthai.ProgressCallback progressCallback,
String path) |
Pointer |
flashDepthaiApplicationPackage(depthai.ProgressCallback progressCallback,
byte[] _package) |
Pointer |
flashDepthaiApplicationPackage(depthai.ProgressCallback progressCallback,
ByteBuffer _package) |
Pointer |
flashDepthaiApplicationPackage(depthai.ProgressCallback progressCallback,
BytePointer _package)
Flashes a specific depthai application package that was generated using createDepthaiApplicationPackage or saveDepthaiApplicationPackage
|
static DeviceInfo |
getAllAvailableDevices()
Searches for connected devices in either UNBOOTED or BOOTLOADER states.
|
static BytePointer |
getEmbeddedBootloaderBinary() |
static BytePointer |
getEmbeddedBootloaderBinary(depthai.Type type) |
static ByteBuffer |
getEmbeddedBootloaderBinary(int type) |
static DeviceBootloader.Version |
getEmbeddedBootloaderVersion() |
static Pointer |
getFirstAvailableDevice()
Searches for connected devices in either UNBOOTED or BOOTLOADER states and returns first available.
|
DeviceBootloader.Version |
getVersion() |
boolean |
isClosed()
Is the device already closed (or disconnected)
|
boolean |
isEmbeddedVersion() |
static void |
saveDepthaiApplicationPackage(BytePointer path,
Pipeline pipeline) |
static void |
saveDepthaiApplicationPackage(BytePointer path,
Pipeline pipeline,
BytePointer pathToCmd)
Saves application package to a file which can be flashed to depthai device.
|
static void |
saveDepthaiApplicationPackage(String path,
Pipeline pipeline) |
static void |
saveDepthaiApplicationPackage(String path,
Pipeline pipeline,
String pathToCmd) |
address, asBuffer, asByteBuffer, availablePhysicalBytes, calloc, capacity, capacity, close, deallocate, deallocate, deallocateReferences, deallocator, deallocator, equals, fill, formatBytes, free, getPointer, getPointer, getPointer, getPointer, hashCode, isNull, isNull, limit, limit, malloc, maxBytes, maxPhysicalBytes, memchr, memcmp, memcpy, memmove, memset, offsetAddress, offsetof, offsetof, parseBytes, physicalBytes, position, position, put, realloc, referenceCount, releaseReference, retainReference, setNull, sizeof, sizeof, toString, totalBytes, totalCount, totalPhysicalBytes, withDeallocator, zeropublic DeviceBootloader(Pointer p)
Pointer(Pointer).public DeviceBootloader(@Const @ByRef DeviceInfo devInfo)
devInfo - DeviceInfo of which to boot or connect topublic DeviceBootloader(@Const @ByRef DeviceInfo devInfo, depthai.Type type)
devInfo - DeviceInfo of which to boot or connect totype - Type of bootloader to boot/connect to.public DeviceBootloader(@Const @ByRef DeviceInfo devInfo, @Cast(value="dai::bootloader::Type") int type)
public DeviceBootloader(@Const @ByRef DeviceInfo devInfo, @StdString BytePointer pathToBootloader)
devInfo - DeviceInfo of which to boot or connect topathToBootloader - Custom bootloader firmware to bootpublic DeviceBootloader(@Const @ByRef DeviceInfo devInfo, @StdString String pathToBootloader)
@MemberGetter public static depthai.Type DEFAULT_TYPE()
@ByVal @Cast(value="std::tuple<bool,dai::DeviceInfo>*") public static Pointer getFirstAvailableDevice()
@StdVector public static DeviceInfo getAllAvailableDevices()
@Cast(value="uint8_t*") @StdVector public static BytePointer createDepthaiApplicationPackage(@ByRef Pipeline pipeline, @StdString BytePointer pathToCmd)
pipeline - Pipeline from which to create the application packagepathToCmd - Optional path to custom device firmware@Cast(value="uint8_t*") @StdVector public static BytePointer createDepthaiApplicationPackage(@ByRef Pipeline pipeline)
@Cast(value="uint8_t*") @StdVector public static ByteBuffer createDepthaiApplicationPackage(@ByRef Pipeline pipeline, @StdString String pathToCmd)
public static void saveDepthaiApplicationPackage(@StdString BytePointer path, @ByRef Pipeline pipeline, @StdString BytePointer pathToCmd)
path - Path where to save the application packagepipeline - Pipeline from which to create the application packagepathToCmd - Optional path to custom device firmwarepublic static void saveDepthaiApplicationPackage(@StdString BytePointer path, @ByRef Pipeline pipeline)
public static void saveDepthaiApplicationPackage(@StdString String path, @ByRef Pipeline pipeline, @StdString String pathToCmd)
public static void saveDepthaiApplicationPackage(@StdString String path, @ByRef Pipeline pipeline)
@ByVal public static DeviceBootloader.Version getEmbeddedBootloaderVersion()
@Cast(value="std::uint8_t*") @StdVector public static BytePointer getEmbeddedBootloaderBinary(depthai.Type type)
@Cast(value="std::uint8_t*") @StdVector public static BytePointer getEmbeddedBootloaderBinary()
@Cast(value="std::uint8_t*") @StdVector public static ByteBuffer getEmbeddedBootloaderBinary(@Cast(value="dai::bootloader::Type") int type)
@ByVal @Cast(value="std::tuple<bool,std::string>*") public Pointer flash(depthai.ProgressCallback progressCallback, @ByRef Pipeline pipeline)
progressCallback - Callback that sends back a value between 0..1 which signifies current flashing progresspipeline - Pipeline to flash to the board@ByVal @Cast(value="std::tuple<bool,std::string>*") public Pointer flashDepthaiApplicationPackage(depthai.ProgressCallback progressCallback, @Cast(value="uint8_t*") @StdVector BytePointer _package)
progressCallback - Callback that sends back a value between 0..1 which signifies current flashing progresspackage - Depthai application package to flash to the board@ByVal @Cast(value="std::tuple<bool,std::string>*") public Pointer flashDepthaiApplicationPackage(depthai.ProgressCallback progressCallback, @Cast(value="uint8_t*") @StdVector ByteBuffer _package)
@ByVal @Cast(value="std::tuple<bool,std::string>*") public Pointer flashDepthaiApplicationPackage(depthai.ProgressCallback progressCallback, @Cast(value="uint8_t*") @StdVector byte[] _package)
@ByVal @Cast(value="std::tuple<bool,std::string>*") public Pointer flashBootloader(depthai.ProgressCallback progressCallback, @StdString BytePointer path)
progressCallback - Callback that sends back a value between 0..1 which signifies current flashing progresspath - Optional parameter to custom bootloader to flash@ByVal @Cast(value="std::tuple<bool,std::string>*") public Pointer flashBootloader(depthai.ProgressCallback progressCallback)
@ByVal @Cast(value="std::tuple<bool,std::string>*") public Pointer flashBootloader(depthai.ProgressCallback progressCallback, @StdString String path)
@ByVal @Cast(value="std::tuple<bool,std::string>*") public Pointer flashBootloader(depthai.Memory memory, depthai.Type type, depthai.ProgressCallback progressCallback, @StdString BytePointer path)
memory - Memory to flashtype - Bootloader type to flashprogressCallback - Callback that sends back a value between 0..1 which signifies current flashing progresspath - Optional parameter to custom bootloader to flash@ByVal @Cast(value="std::tuple<bool,std::string>*") public Pointer flashBootloader(depthai.Memory memory, depthai.Type type, depthai.ProgressCallback progressCallback)
@ByVal @Cast(value="std::tuple<bool,std::string>*") public Pointer flashBootloader(@Cast(value="dai::bootloader::Memory") int memory, @Cast(value="dai::bootloader::Type") int type, depthai.ProgressCallback progressCallback, @StdString String path)
@ByVal @Cast(value="std::tuple<bool,std::string>*") public Pointer flashBootloader(@Cast(value="dai::bootloader::Memory") int memory, @Cast(value="dai::bootloader::Type") int type, depthai.ProgressCallback progressCallback)
@ByVal public DeviceBootloader.Version getVersion()
@Cast(value="bool") public boolean isEmbeddedVersion()
@Name(value="close") public void _close()
Copyright © 2021. All rights reserved.