McuMgrImageHeader

Represents a firmware image header for devices using McuBoot or the legacy Apache Mynewt bootloader.

For more info about McuBoot and image format see: https://juullabs-oss.github.io/mcuboot/design.html

Functions

Link copied to clipboard
@NotNull
open fun fromBytes(b: @NotNull Array<Byte>): @NotNull McuMgrImageHeader
@NotNull
open fun fromBytes(b: @NotNull Array<Byte>, offset: Int): @NotNull McuMgrImageHeader
Link copied to clipboard
open fun getFlags(): Int
Link copied to clipboard
open fun getHdrSize(): Short
Link copied to clipboard
open fun getImgSize(): Int
Link copied to clipboard
open fun getLoadAddr(): Int
Link copied to clipboard
open fun getMagic(): Int
Link copied to clipboard
open fun getSize(): Int
Link copied to clipboard
@NotNull
open fun getVersion(): @NotNull McuMgrImageVersion
Link copied to clipboard
open fun isLegacy(): Boolean