Table of Contents

Method FromStream

Namespace
Bonsai.Harp
Assembly
Bonsai.Harp.dll

FromStream(string, Stream, int)

Creates a DeviceFirmware object extracted from the specified ASCII stream in Intel HEX format, the specified metadata string and page size.

public static DeviceFirmware FromStream(string metadata, Stream stream, int pageSize)

Parameters

metadata string

The firmware metadata encoded in a text string representation.

stream Stream

The ASCII stream in Intel HEX format from which to extract the device firmware.

pageSize int

The size of the memory blocks used to upload the device firmware.

Returns

DeviceFirmware

A new DeviceFirmware object representing the extracted binary firware blob, together with the metadata extracted from the firmware file name.