Table of Contents

Method FromFile

Namespace
Bonsai.Harp
Assembly
Bonsai.Harp.dll

FromFile(string)

Creates a DeviceFirmware object from the specified file in Intel HEX format using the default page size.

public static DeviceFirmware FromFile(string path)

Parameters

path string

The name of the file from which to create the DeviceFirmware.

Returns

DeviceFirmware

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

FromFile(string, int)

Creates a DeviceFirmware object from the specified file in Intel HEX format and a specified page size.

public static DeviceFirmware FromFile(string path, int pageSize)

Parameters

path string

The name of the file from which to create the DeviceFirmware.

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.