Method WriteSByteAsync
WriteSByteAsync(int, sbyte, CancellationToken)
Asynchronously writes a value to an 8-bit signed integer register with the specified address.
public Task WriteSByteAsync(int address, sbyte value, CancellationToken cancellationToken = default)
Parameters
address
intThe address of the register to write.
value
sbyteThe value to be stored in the register.
cancellationToken
CancellationTokenA CancellationToken which can be used to cancel the operation.
Returns
- Task
The task object representing the asynchronous write operation.
WriteSByteAsync(int, sbyte[], CancellationToken)
Asynchronously writes an array of values to an 8-bit signed integer register with the specified address.
public Task WriteSByteAsync(int address, sbyte[] values, CancellationToken cancellationToken = default)
Parameters
address
intThe address of the register to write.
values
sbyte[]The values to be stored in the register.
cancellationToken
CancellationTokenA CancellationToken which can be used to cancel the operation.
Returns
- Task
The task object representing the asynchronous write operation.