onerom-wasm
    Preparing search index...

    Function load_device

    • Loads a One ROM.

      flash, read_cb and otp_cb are as for [parse_firmware]. read_cb also reads each slot's data from either flash chip. Without otp_cb the board size is read from runtime info alone.

      Parameters

      • flash: number[] | Uint8Array<ArrayBufferLike>
      • read_cb: Function
      • Optionalotp_cb: Function | null

      Returns Promise<WasmLoaded>