Table of Contents

Class Engine

Namespace
nanoFramework.Tools.Debugger
Assembly
nanoFramework.Tools.DebugLibrary.Net.dll
public class Engine : IDisposable, IControllerHostLocal, IControllerHost
Inheritance
Engine
Implements
Inherited Members
Extension Methods

Fields

StorageDeleteOperationProgressStep

This constant is to be used in progress report when performing delete operation.

public const int StorageDeleteOperationProgressStep = 10

Field Value

int

_pendingRequestsTimer

protected readonly Timer _pendingRequestsTimer

Field Value

Timer

_requestsStore

protected readonly WireProtocolRequestsStore _requestsStore

Field Value

WireProtocolRequestsStore

Properties

AvailableBytes

public int AvailableBytes { get; }

Property Value

int

Capabilities

public CLRCapabilities Capabilities { get; }

Property Value

CLRCapabilities

ConfigBlockRequiresErase

This indicates if the device requires that the configuration block to be erased before updating it.

public bool ConfigBlockRequiresErase { get; }

Property Value

bool

ConnectionSource

public ConnectionSource ConnectionSource { get; set; }

Property Value

ConnectionSource

DefaultTimeout

Default timeout value for operations (in milliseconds).

public int DefaultTimeout { get; set; }

Property Value

int

FlashSectorMap

public List<Commands.Monitor_FlashSectorMap.FlashSectorData> FlashSectorMap { get; }

Property Value

List<Commands.Monitor_FlashSectorMap.FlashSectorData>

HasNanoBooter

This indicates if the target device has nanoBooter.

public bool HasNanoBooter { get; }

Property Value

bool

HasProprietaryBooter

This indicates if the device has a proprietary bootloader.

public bool HasProprietaryBooter { get; }

Property Value

bool

IsCRC32EnabledForWireProtocol

This flag is true when connected nanoDevice implements CRC32 in Wire Protocol packets and headers

public bool IsCRC32EnabledForWireProtocol { get; }

Property Value

bool

IsConnected

public bool IsConnected { get; }

Property Value

bool

IsConnectedTonanoBooter

public bool IsConnectedTonanoBooter { get; }

Property Value

bool

IsConnectedTonanoCLR

public bool IsConnectedTonanoCLR { get; }

Property Value

bool

IsIFUCapable

This indicates if the target device is IFU capable.

public bool IsIFUCapable { get; }

Property Value

bool

IsRunning

public bool IsRunning { get; }

Property Value

bool

IsTargetBigEndian

public bool IsTargetBigEndian { get; }

Property Value

bool

LastActivity

public DateTime LastActivity { get; }

Property Value

DateTime

MemoryMap

public List<Commands.Monitor_MemoryMap.Range> MemoryMap { get; }

Property Value

List<Commands.Monitor_MemoryMap.Range>

NoStackTraceInExceptions

public bool NoStackTraceInExceptions { get; set; }

Property Value

bool

Silent

Setting for debugger output to be silent.

public bool Silent { get; set; }

Property Value

bool

StopDebuggerOnConnect

public bool StopDebuggerOnConnect { get; set; }

Property Value

bool

TargetInfo

public TargetInfo TargetInfo { get; }

Property Value

TargetInfo

ThrowOnCommunicationFailure

public bool ThrowOnCommunicationFailure { get; set; }

Property Value

bool

WireProtocolPacketSize

Wire Protocol packet size. Default is 1024.

public uint WireProtocolPacketSize { get; }

Property Value

uint

Methods

AddPacket(int, uint, byte[], uint)

public bool AddPacket(int updateHandle, uint packetIndex, byte[] packetData, uint packetValidation)

Parameters

updateHandle int
packetIndex uint
packetData byte[]
packetValidation uint

Returns

bool

AddStorageFile(string, byte[], int, int, IProgress<MessageWithProgress>, IProgress<string>)

Add a file to the device storage.

public StorageOperationErrorCode AddStorageFile(string fileName, byte[] fileContent, int operationExecutedLenght = 0, int operationTotalLength = 0, IProgress<MessageWithProgress> progress = null, IProgress<string> log = null)

Parameters

fileName string

File name.

fileContent byte[]

Content of the file.

operationExecutedLenght int

Count of bytes already executed in this operation.

operationTotalLength int

Total length of the operation, in bytes.

progress IProgress<MessageWithProgress>

An IProgress<T> object to track the progress of the deploy operation.

log IProgress<string>

An IProgress<T> object to log the progress of the deploy operation.

Returns

StorageOperationErrorCode

Operation result as a StorageOperationErrorCode.

AllocateArray(int, uint, int, int)

public RuntimeValue AllocateArray(int scratchPadLocation, uint td, int depth, int numOfElements)

Parameters

scratchPadLocation int
td uint
depth int
numOfElements int

Returns

RuntimeValue

AllocateMemory(uint)

public (uint Address, bool Success) AllocateMemory(uint size)

Parameters

size uint

Returns

(uint Address, bool Success)

AllocateObject(int, uint)

public RuntimeValue AllocateObject(int scratchPadLocation, uint td)

Parameters

scratchPadLocation int
td uint

Returns

RuntimeValue

AllocateString(int, string)

public RuntimeValue AllocateString(int scratchPadLocation, string val)

Parameters

scratchPadLocation int
val string

Returns

RuntimeValue

CanUpgradeToSsl()

public bool CanUpgradeToSsl()

Returns

bool

Connect()

public bool Connect()

Returns

bool

Connect(bool, bool)

public bool Connect(bool force, bool requestCapabilities = false)

Parameters

force bool
requestCapabilities bool

Returns

bool

Connect(int, bool, bool)

public bool Connect(int millisecondsTimeout, bool force = false, bool requestCapabilities = false)

Parameters

millisecondsTimeout int
force bool
requestCapabilities bool

Returns

bool

CreateBinaryFormatter()

public BinaryFormatter CreateBinaryFormatter()

Returns

BinaryFormatter

CreateThread(uint, int)

public uint CreateThread(uint methodIndex, int scratchPadLocation)

Parameters

methodIndex uint
scratchPadLocation int

Returns

uint

CreateThread(uint, int, uint)

public uint CreateThread(uint methodIndex, int scratchPadLocation, uint pid)

Parameters

methodIndex uint
scratchPadLocation int
pid uint

Returns

uint

DeleteStorageFile(string, int, int, IProgress<MessageWithProgress>, IProgress<string>)

Delete a file from the device storage.

public StorageOperationErrorCode DeleteStorageFile(string fileName, int operationExecutedLenght = 0, int operationTotalLength = 0, IProgress<MessageWithProgress> progress = null, IProgress<string> log = null)

Parameters

fileName string

Name of file to delete.

operationExecutedLenght int

Count of bytes already executed in this operation.

operationTotalLength int

Total length of the operation, in bytes.

progress IProgress<MessageWithProgress>

An IProgress<T> object to track the progress of the deploy operation.

log IProgress<string>

An IProgress<T> object to log the progress of the deploy operation.

Returns

StorageOperationErrorCode

Operation result as a StorageOperationErrorCode.

Remarks

When computing the operation total length, use the constant StorageDeleteOperationProgressStep as the step weight and consider that this will be executed in a single step.

DeploymentExecute(List<byte[]>, bool, bool, IProgress<MessageWithProgress>, IProgress<string>)

Deploy a list of assemblies to the device and optionally reboot it.

public bool DeploymentExecute(List<byte[]> assemblies, bool rebootAfterDeploy = true, bool skipErase = false, IProgress<MessageWithProgress> progress = null, IProgress<string> log = null)

Parameters

assemblies List<byte[]>

A collection of assemblies to deploy.

rebootAfterDeploy bool

true to reboot device after a successfull deployment.

skipErase bool

true to skip erasing the storage block before writting to it.

progress IProgress<MessageWithProgress>

An IProgress<T> object to track the progress of the deploy operation.

log IProgress<string>

An IProgress<T> object to log the progress of the deploy operation.

Returns

bool

true upon a successfull deployment operation. false otherwise.

Exceptions

NotSupportedException

In case the connected device doesn't have support for incremental deployment.

DeploymentGetStatus()

public Commands.DebuggingDeploymentStatus.Reply DeploymentGetStatus()

Returns

Commands.DebuggingDeploymentStatus.Reply

DeploymentGetStatusWithResult()

public (uint Entrypoint, uint StorageStart, uint StorageLength, bool Success) DeploymentGetStatusWithResult()

Returns

(uint NumOfArguments, uint NnumOfLocals, uint DepthOfEvalStack, bool Success)

Tuple with entrypoint, storageStart, storageLength and request success

Dispose()

public void Dispose()

Dispose(bool)

protected virtual void Dispose(bool disposing)

Parameters

disposing bool

EraseMemory(uint, uint)

public (AccessMemoryErrorCodes ErrorCode, bool Success) EraseMemory(uint address, uint length)

Parameters

address uint
length uint

Returns

(AccessMemoryErrorCodes ErrorCode, bool Success)

ExecuteMemory(uint)

public bool ExecuteMemory(uint address)

Parameters

address uint

Returns

bool

~Engine()

protected ~Engine()

FlushProfilingStream()

public bool FlushProfilingStream()

Returns

bool

GetAllNetworkConfigurations()

public List<DeviceConfiguration.NetworkConfigurationProperties> GetAllNetworkConfigurations()

Returns

List<DeviceConfiguration.NetworkConfigurationProperties>

GetAllWireless80211Configurations()

public List<DeviceConfiguration.Wireless80211ConfigurationProperties> GetAllWireless80211Configurations()

Returns

List<DeviceConfiguration.Wireless80211ConfigurationProperties>

GetAllWirelessAPConfigurations()

public List<DeviceConfiguration.WirelessAPConfigurationProperties> GetAllWirelessAPConfigurations()

Returns

List<DeviceConfiguration.WirelessAPConfigurationProperties>

GetAllX509Certificates()

public List<DeviceConfiguration.X509CaRootBundleProperties> GetAllX509Certificates()

Returns

List<DeviceConfiguration.X509CaRootBundleProperties>

GetAllX509DeviceCertificates()

public List<DeviceConfiguration.X509DeviceCertificatesProperties> GetAllX509DeviceCertificates()

Returns

List<DeviceConfiguration.X509DeviceCertificatesProperties>

GetAppDomains()

public Commands.Debugging_TypeSys_AppDomains.Reply GetAppDomains()

Returns

Commands.Debugging_TypeSys_AppDomains.Reply

GetArrayElement(uint, uint)

public RuntimeValue GetArrayElement(uint arrayReferenceId, uint index)

Parameters

arrayReferenceId uint
index uint

Returns

RuntimeValue

GetAssemblies()

public Commands.Debugging_TypeSys_Assemblies.Reply GetAssemblies()

Returns

Commands.Debugging_TypeSys_Assemblies.Reply

GetBreakpointStatus()

public Commands.Debugging_Execution_BreakpointDef GetBreakpointStatus()

Returns

Commands.Debugging_Execution_BreakpointDef

GetConnectionSource()

public ConnectionSource GetConnectionSource()

Returns

ConnectionSource

GetDeploymentMap()

public List<Commands.Monitor_DeploymentMap.DeploymentData> GetDeploymentMap()

Returns

List<Commands.Monitor_DeploymentMap.DeploymentData>

GetDeviceConfiguration(CancellationToken)

public DeviceConfiguration GetDeviceConfiguration(CancellationToken cancellationToken)

Parameters

cancellationToken CancellationToken

Returns

DeviceConfiguration

GetExecutionBasePtr()

public uint GetExecutionBasePtr()

Returns

uint

GetExecutionMode()

public Commands.DebuggingExecutionChangeConditions.State GetExecutionMode()

Returns

Commands.DebuggingExecutionChangeConditions.State

GetFieldName(uint)

public (string Td, uint Offset, uint Success) GetFieldName(uint fd)

Parameters

fd uint

Returns

(string Td, uint Offset, uint Success)

Tuple with field name, td and offset.

GetFlashSectorMap()

public List<Commands.Monitor_FlashSectorMap.FlashSectorData> GetFlashSectorMap()

Returns

List<Commands.Monitor_FlashSectorMap.FlashSectorData>

GetMemoryMap()

public List<Commands.Monitor_MemoryMap.Range> GetMemoryMap()

Returns

List<Commands.Monitor_MemoryMap.Range>

GetMethodName(uint, bool)

public string GetMethodName(uint md, bool fIncludeType)

Parameters

md uint
fIncludeType bool

Returns

string

GetMonitorOemInfo()

public ReleaseInfo GetMonitorOemInfo()

Returns

ReleaseInfo

GetMonitorTargetInfo()

public TargetInfo GetMonitorTargetInfo()

Returns

TargetInfo

GetNetworkConfiguratonProperties(uint)

public DeviceConfiguration.NetworkConfigurationProperties GetNetworkConfiguratonProperties(uint configurationBlockIndex)

Parameters

configurationBlockIndex uint

Returns

DeviceConfiguration.NetworkConfigurationProperties

GetPacketMaxLength(OverheadBase)

public int GetPacketMaxLength(Commands.OverheadBase cmd)

Parameters

cmd Commands.OverheadBase

Returns

int

GetScratchPadValue(int)

public RuntimeValue GetScratchPadValue(int index)

Parameters

index int

Returns

RuntimeValue

GetStackFrameInfo(uint, uint)

public (uint NumOfArguments, uint NnumOfLocals, uint DepthOfEvalStack, bool Success) GetStackFrameInfo(uint pid, uint depth)

Parameters

pid uint
depth uint

Returns

(uint NumOfArguments, uint NnumOfLocals, uint DepthOfEvalStack, bool Success)

Tuple with numOfArguments, numOfLocals, depthOfEvalStack and request success result.

GetStackFrameValue(uint, uint, StackValueKind, uint)

public RuntimeValue GetStackFrameValue(uint pid, uint depth, Engine.StackValueKind kind, uint index)

Parameters

pid uint
depth uint
kind Engine.StackValueKind
index uint

Returns

RuntimeValue

GetStackFrameValueAll(uint, uint, uint, StackValueKind)

public List<RuntimeValue> GetStackFrameValueAll(uint pid, uint depth, uint cValues, Engine.StackValueKind kind)

Parameters

pid uint
depth uint
cValues uint
kind Engine.StackValueKind

Returns

List<RuntimeValue>

GetStackInfo(uint, uint)

public Commands.Debugging_Stack_Info.Reply GetStackInfo(uint pid, uint depth)

Parameters

pid uint
depth uint

Returns

Commands.Debugging_Stack_Info.Reply

GetStaticFieldValue(uint)

public RuntimeValue GetStaticFieldValue(uint fd)

Parameters

fd uint

Returns

RuntimeValue

GetTargetInfo()

public CLRCapabilities.TargetInfoProperties GetTargetInfo()

Returns

CLRCapabilities.TargetInfoProperties

GetThread(uint)

public RuntimeValue GetThread(uint pid)

Parameters

pid uint

Returns

RuntimeValue

GetThreadException(uint)

public RuntimeValue GetThreadException(uint pid)

Parameters

pid uint

Returns

RuntimeValue

GetThreadList()

public uint[] GetThreadList()

Returns

uint[]

GetThreadStack(uint)

public Commands.Debugging_Thread_Stack.Reply GetThreadStack(uint pid)

Parameters

pid uint

Returns

Commands.Debugging_Thread_Stack.Reply

GetThreads()

public List<ThreadStatus> GetThreads()

Returns

List<ThreadStatus>

GetTypeName(uint)

public string GetTypeName(uint td)

Parameters

td uint

Returns

string

GetVirtualMethod(uint, RuntimeValue)

public uint GetVirtualMethod(uint md, RuntimeValue obj)

Parameters

md uint
obj RuntimeValue

Returns

uint

GetWireless80211ConfiguratonProperties(uint)

public DeviceConfiguration.Wireless80211ConfigurationProperties GetWireless80211ConfiguratonProperties(uint configurationBlockIndex)

Parameters

configurationBlockIndex uint

Returns

DeviceConfiguration.Wireless80211ConfigurationProperties

GetWirelessAPConfiguratonProperties(uint)

public DeviceConfiguration.WirelessAPConfigurationProperties GetWirelessAPConfiguratonProperties(uint configurationBlockIndex)

Parameters

configurationBlockIndex uint

Returns

DeviceConfiguration.WirelessAPConfigurationProperties

GetX509CertificatesProperties(uint)

public DeviceConfiguration.X509CaRootBundleProperties GetX509CertificatesProperties(uint configurationBlockIndex)

Parameters

configurationBlockIndex uint

Returns

DeviceConfiguration.X509CaRootBundleProperties

GetX509DeviceCertificatesProperties(uint)

public DeviceConfiguration.X509DeviceCertificatesProperties GetX509DeviceCertificatesProperties(uint configurationBlockIndex)

Parameters

configurationBlockIndex uint

Returns

DeviceConfiguration.X509DeviceCertificatesProperties

IncomingMessagesListener()

public void IncomingMessagesListener()

Info_SetJMC(bool, Kind, uint)

public bool Info_SetJMC(bool fJMC, ReflectionDefinition.Kind kind, uint index)

Parameters

fJMC bool
kind ReflectionDefinition.Kind
index uint

Returns

bool

InjectButtons(uint, uint)

public void InjectButtons(uint pressed, uint released)

Parameters

pressed uint
released uint

InstallUpdate(int, byte[])

public bool InstallUpdate(int updateHandle, byte[] validationData)

Parameters

updateHandle int
validationData byte[]

Returns

bool

KillThread(uint)

public bool KillThread(uint pid)

Parameters

pid uint

Returns

bool

PauseExecution()

public bool PauseExecution()

Returns

bool

PerformWriteMemoryCheck(uint, byte[])

public bool PerformWriteMemoryCheck(uint address, byte[] buf)

Parameters

address uint
buf byte[]

Returns

bool

PerformWriteMemoryCheck(uint, byte[], int, int)

public bool PerformWriteMemoryCheck(uint address, byte[] buf, int offset, int length)

Parameters

address uint
buf byte[]
offset int
length int

Returns

bool

ProcessExited()

public void ProcessExited()

ProcessMessage(IncomingMessage, bool)

public bool ProcessMessage(IncomingMessage message, bool isReply)

Parameters

message IncomingMessage
isReply bool

Returns

bool

ReadBuffer(int)

public byte[] ReadBuffer(int bytesToRead)

Parameters

bytesToRead int

Returns

byte[]

ReadMemory(uint, uint)

public (byte[] Buffer, uint ErrorCode, bool Success) ReadMemory(uint address, uint length)

Parameters

address uint
length uint

Returns

(byte[] Buffer, uint ErrorCode, bool Success)

RebootDevice(RebootOptions, IProgress<string>)

public bool RebootDevice(RebootOptions options = RebootOptions.NormalReboot, IProgress<string> log = null)

Parameters

options RebootOptions
log IProgress<string>

Returns

bool

Reconnect(bool, int)

public bool Reconnect(bool fSoftReboot, int millisecondsTimeout = 5000)

Parameters

fSoftReboot bool
millisecondsTimeout int

Returns

bool

ReplyBadPacket(uint)

public void ReplyBadPacket(uint flags)

Parameters

flags uint

ResizeScratchPad(int)

public bool ResizeScratchPad(int size)

Parameters

size int

Returns

bool

ResolveAllAssemblies()

public List<Commands.DebuggingResolveAssembly> ResolveAllAssemblies()

Returns

List<Commands.DebuggingResolveAssembly>

ResolveAppDomain(uint)

public Commands.Debugging_Resolve_AppDomain.Reply ResolveAppDomain(uint appDomainID)

Parameters

appDomainID uint

Returns

Commands.Debugging_Resolve_AppDomain.Reply

ResolveAssembly(uint)

public Commands.DebuggingResolveAssembly.Reply ResolveAssembly(uint idx)

Parameters

idx uint

Returns

Commands.DebuggingResolveAssembly.Reply

ResolveField(uint)

public Commands.Debugging_Resolve_Field.Result ResolveField(uint fd)

Parameters

fd uint

Returns

Commands.Debugging_Resolve_Field.Result

ResolveMethod(uint)

public Commands.Debugging_Resolve_Method.Result ResolveMethod(uint md)

Parameters

md uint

Returns

Commands.Debugging_Resolve_Method.Result

ResolveType(uint)

public Commands.Debugging_Resolve_Type.Result ResolveType(uint td)

Parameters

td uint

Returns

Commands.Debugging_Resolve_Type.Result

ResumeExecution()

public bool ResumeExecution()

Returns

bool

ResumeProcessing()

public void ResumeProcessing()

ResumeThread(uint)

public bool ResumeThread(uint pid)

Parameters

pid uint

Returns

bool

SendBuffer(byte[])

public int SendBuffer(byte[] buffer)

Parameters

buffer byte[]

Returns

int

SetBreakpoints(Debugging_Execution_BreakpointDef[])

public bool SetBreakpoints(Commands.Debugging_Execution_BreakpointDef[] breakpoints)

Parameters

breakpoints Debugging_Execution_BreakpointDef[]

Returns

bool

SetCurrentAppDomain(uint)

public bool SetCurrentAppDomain(uint id)

Parameters

id uint

Returns

bool

SetExecutionMode(State, State)

public bool SetExecutionMode(Commands.DebuggingExecutionChangeConditions.State flagsToSet, Commands.DebuggingExecutionChangeConditions.State flagsToReset)

Parameters

flagsToSet Commands.DebuggingExecutionChangeConditions.State
flagsToReset Commands.DebuggingExecutionChangeConditions.State

Returns

bool

SetIPOfStackFrame(uint, uint, uint, uint)

public bool SetIPOfStackFrame(uint pid, uint depth, uint IP, uint depthOfEvalStack)

Parameters

pid uint
depth uint
IP uint
depthOfEvalStack uint

Returns

bool

SetProfilingMode(uint, uint)

public (uint Current, bool Success) SetProfilingMode(uint iSet, uint iReset)

Parameters

iSet uint
iReset uint

Returns

(uint Address, bool Success)

SetSecurityKey(byte[])

public bool SetSecurityKey(byte[] key)

Parameters

key byte[]

Returns

bool

SpuriousCharacters(byte[], int, int)

public void SpuriousCharacters(byte[] buf, int offset, int count)

Parameters

buf byte[]
offset int
count int

StartUpdate(string, ushort, ushort, uint, uint, uint, uint, uint, uint)

public int StartUpdate(string provider, ushort versionMajor, ushort versionMinor, uint updateId, uint updateType, uint updateSubType, uint updateSize, uint packetSize, uint installAddress)

Parameters

provider string
versionMajor ushort
versionMinor ushort
updateId uint
updateType uint
updateSubType uint
updateSize uint
packetSize uint
installAddress uint

Returns

int

The update handle value. -1 if the start update request failed.

Stop(bool)

public void Stop(bool force = false)

Parameters

force bool

StopProcessing()

public void StopProcessing()

SuspendThread(uint)

public bool SuspendThread(uint pid)

Parameters

pid uint

Returns

bool

UnlockDevice(byte[])

public bool UnlockDevice(byte[] blob)

Parameters

blob byte[]

Returns

bool

UnwindThread(uint, uint)

public bool UnwindThread(uint pid, uint depth)

Parameters

pid uint
depth uint

Returns

bool

UpdateAuthCommand(int, uint, byte[])

public (byte[] Response, bool Success) UpdateAuthCommand(int updateHandle, uint authCommand, byte[] commandArgs)

Parameters

updateHandle int
authCommand uint
commandArgs byte[]

Returns

(byte[] Response, bool Success)

UpdateAuthenticate(int, byte[])

public bool UpdateAuthenticate(int updateHandle, byte[] authenticationData)

Parameters

updateHandle int
authenticationData byte[]

Returns

bool

UpdateDebugFlags()

public bool UpdateDebugFlags()

Returns

bool

UpdateDeviceConfiguration(DeviceConfiguration)

Writes the full configuration to the device. This method should be used when the target device stores the configuration in a flash sector.

public Engine.UpdateDeviceResult UpdateDeviceConfiguration(DeviceConfiguration configuration)

Parameters

configuration DeviceConfiguration

The device configuration

Returns

Engine.UpdateDeviceResult

UpdateDeviceConfiguration<T>(T, uint)

Writes a specific configuration block to the device. The configuration block is updated only with the changes for this configuration part.

public Engine.UpdateDeviceResult UpdateDeviceConfiguration<T>(T configuration, uint blockIndex)

Parameters

configuration T

The configuration block

blockIndex uint

The index of this configuration block

Returns

Engine.UpdateDeviceResult

Type Parameters

T

WriteMemory(uint, byte[], int, int, int, int, int, IProgress<MessageWithProgress>, IProgress<string>)

public AccessMemoryErrorCodes WriteMemory(uint address, byte[] buffer, int programAligment = 0, int deploymentExecuted = 0, int deploymentLength = 0, int opearationExecutedLenght = 0, int operationTotalLength = 0, IProgress<MessageWithProgress> progress = null, IProgress<string> log = null)

Parameters

address uint
buffer byte[]
programAligment int
deploymentExecuted int
deploymentLength int
opearationExecutedLenght int
operationTotalLength int
progress IProgress<MessageWithProgress>
log IProgress<string>

Returns

AccessMemoryErrorCodes

WriteMemory(uint, byte[], int, int, int, int, int, int, int, IProgress<MessageWithProgress>, IProgress<string>)

public AccessMemoryErrorCodes WriteMemory(uint address, byte[] buffer, int offset, int length, int programAligment = 0, int deploymentExecuted = 0, int deploymentLength = 0, int operationExecutedLenght = 0, int operationTotalLength = 0, IProgress<MessageWithProgress> progress = null, IProgress<string> log = null)

Parameters

address uint
buffer byte[]
offset int
length int
programAligment int
deploymentExecuted int
deploymentLength int
operationExecutedLenght int
operationTotalLength int
progress IProgress<MessageWithProgress>
log IProgress<string>

Returns

AccessMemoryErrorCodes

Events

OnCommand

public event CommandEventHandler OnCommand

Event Type

CommandEventHandler

OnMessage

public event MessageEventHandler OnMessage

Event Type

MessageEventHandler

OnNoise

public event NoiseEventHandler OnNoise

Event Type

NoiseEventHandler

OnProcessExit

public event EventHandler OnProcessExit

Event Type

EventHandler

SpuriousCharactersReceived

public event EventHandler<StringEventArgs> SpuriousCharactersReceived

Event Type

EventHandler<StringEventArgs>