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