Method WriteUInt16Async
WriteUInt16Async(int, ushort, CancellationToken)
Asynchronously writes a value to a 16-bit unsigned integer register with the specified address.
public Task WriteUInt16Async(int address, ushort value, CancellationToken cancellationToken = default)
Parameters
address
intThe address of the register to write.
value
ushortThe 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.
WriteUInt16Async(int, ushort[], CancellationToken)
Asynchronously writes an array of values to a 16-bit unsigned integer register with the specified address.
public Task WriteUInt16Async(int address, ushort[] values, CancellationToken cancellationToken = default)
Parameters
address
intThe address of the register to write.
values
ushort[]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.