Skip to content
Start free evaluation

PDComm.Secs1Write

Delegate

Writes bytes to the serial line for a Secs1Worker.

public delegate Secs1IoResult Secs1Write(ReadOnlySpan<byte> buffer)

The worker calls this on its own thread while it polls. Return promptly; a partial write is allowed. Do not call the worker from the callback.

Parameters

NameDescription
bufferThe bytes to write; at most Secs1Options.MaxIoChunk bytes.

Returns

The status and the number of bytes written from the start of buffer.