Skip to content

Commit

Permalink
Merge pull request #13 from harp-tech/Update_yml
Browse files Browse the repository at this point in the history
Update register access yml
  • Loading branch information
artursilva0 authored Nov 8, 2024
2 parents a5b13ee + b43f199 commit fa0135f
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 2 deletions.
28 changes: 28 additions & 0 deletions Interface/Harp.Olfactometer/AsyncDevice.Generated.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2449,6 +2449,20 @@ public async Task<Timestamped<byte>> ReadTimestampedEnableTemperatureCalibration
return EnableTemperatureCalibration.GetTimestampedPayload(reply);
}

/// <summary>
/// Asynchronously writes a value to the EnableTemperatureCalibration register.
/// </summary>
/// <param name="value">The value to be stored in the register.</param>
/// <param name="cancellationToken">
/// A <see cref="CancellationToken"/> which can be used to cancel the operation.
/// </param>
/// <returns>The task object representing the asynchronous write operation.</returns>
public async Task WriteEnableTemperatureCalibrationAsync(byte value, CancellationToken cancellationToken = default)
{
var request = EnableTemperatureCalibration.FromPayload(MessageType.Write, value);
await CommandAsync(request, cancellationToken);
}

/// <summary>
/// Asynchronously reads the contents of the TemperatureCalibrationValue register.
/// </summary>
Expand Down Expand Up @@ -2481,6 +2495,20 @@ public async Task<Timestamped<byte>> ReadTimestampedTemperatureCalibrationValueA
return TemperatureCalibrationValue.GetTimestampedPayload(reply);
}

/// <summary>
/// Asynchronously writes a value to the TemperatureCalibrationValue register.
/// </summary>
/// <param name="value">The value to be stored in the register.</param>
/// <param name="cancellationToken">
/// A <see cref="CancellationToken"/> which can be used to cancel the operation.
/// </param>
/// <returns>The task object representing the asynchronous write operation.</returns>
public async Task WriteTemperatureCalibrationValueAsync(byte value, CancellationToken cancellationToken = default)
{
var request = TemperatureCalibrationValue.FromPayload(MessageType.Write, value);
await CommandAsync(request, cancellationToken);
}

/// <summary>
/// Asynchronously reads the contents of the EnableEvents register.
/// </summary>
Expand Down
4 changes: 2 additions & 2 deletions device.yml
Original file line number Diff line number Diff line change
Expand Up @@ -333,12 +333,12 @@ registers:
EnableTemperatureCalibration:
address: 93
type: U8
access: Read
access: Write
description: Enable flow adjustment based on the temperature calibration.
TemperatureCalibrationValue:
address: 94
type: U8
access: Read
access: Write
description: Temperature value measured during the device calibration.
EnableEvents:
address: 95
Expand Down

0 comments on commit fa0135f

Please sign in to comment.