Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update yml and interface #12

Open
wants to merge 6 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
96 changes: 96 additions & 0 deletions Interface/Harp.Olfactometer/AsyncDevice.Generated.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2385,6 +2385,102 @@ public async Task WriteChannel3RangeAsync(Channel3RangeConfig value, Cancellatio
await CommandAsync(request, cancellationToken);
}

/// <summary>
/// Asynchronously reads the contents of the TemperatureValue register.
/// </summary>
/// <param name="cancellationToken">
/// A <see cref="CancellationToken"/> which can be used to cancel the operation.
/// </param>
/// <returns>
/// A task that represents the asynchronous read operation. The <see cref="Task{TResult}.Result"/>
/// property contains the register payload.
/// </returns>
public async Task<byte> ReadTemperatureValueAsync(CancellationToken cancellationToken = default)
{
var reply = await CommandAsync(HarpCommand.ReadByte(TemperatureValue.Address), cancellationToken);
return TemperatureValue.GetPayload(reply);
}

/// <summary>
/// Asynchronously reads the timestamped contents of the TemperatureValue register.
/// </summary>
/// <param name="cancellationToken">
/// A <see cref="CancellationToken"/> which can be used to cancel the operation.
/// </param>
/// <returns>
/// A task that represents the asynchronous read operation. The <see cref="Task{TResult}.Result"/>
/// property contains the timestamped register payload.
/// </returns>
public async Task<Timestamped<byte>> ReadTimestampedTemperatureValueAsync(CancellationToken cancellationToken = default)
{
var reply = await CommandAsync(HarpCommand.ReadByte(TemperatureValue.Address), cancellationToken);
return TemperatureValue.GetTimestampedPayload(reply);
}

/// <summary>
/// Asynchronously reads the contents of the EnableTemperatureCalibration register.
/// </summary>
/// <param name="cancellationToken">
/// A <see cref="CancellationToken"/> which can be used to cancel the operation.
/// </param>
/// <returns>
/// A task that represents the asynchronous read operation. The <see cref="Task{TResult}.Result"/>
/// property contains the register payload.
/// </returns>
public async Task<byte> ReadEnableTemperatureCalibrationAsync(CancellationToken cancellationToken = default)
{
var reply = await CommandAsync(HarpCommand.ReadByte(EnableTemperatureCalibration.Address), cancellationToken);
return EnableTemperatureCalibration.GetPayload(reply);
}

/// <summary>
/// Asynchronously reads the timestamped contents of the EnableTemperatureCalibration register.
/// </summary>
/// <param name="cancellationToken">
/// A <see cref="CancellationToken"/> which can be used to cancel the operation.
/// </param>
/// <returns>
/// A task that represents the asynchronous read operation. The <see cref="Task{TResult}.Result"/>
/// property contains the timestamped register payload.
/// </returns>
public async Task<Timestamped<byte>> ReadTimestampedEnableTemperatureCalibrationAsync(CancellationToken cancellationToken = default)
{
var reply = await CommandAsync(HarpCommand.ReadByte(EnableTemperatureCalibration.Address), cancellationToken);
return EnableTemperatureCalibration.GetTimestampedPayload(reply);
}

/// <summary>
/// Asynchronously reads the contents of the UserTemperatureCalibration register.
/// </summary>
/// <param name="cancellationToken">
/// A <see cref="CancellationToken"/> which can be used to cancel the operation.
/// </param>
/// <returns>
/// A task that represents the asynchronous read operation. The <see cref="Task{TResult}.Result"/>
/// property contains the register payload.
/// </returns>
public async Task<byte> ReadUserTemperatureCalibrationAsync(CancellationToken cancellationToken = default)
{
var reply = await CommandAsync(HarpCommand.ReadByte(UserTemperatureCalibration.Address), cancellationToken);
return UserTemperatureCalibration.GetPayload(reply);
}

/// <summary>
/// Asynchronously reads the timestamped contents of the UserTemperatureCalibration register.
/// </summary>
/// <param name="cancellationToken">
/// A <see cref="CancellationToken"/> which can be used to cancel the operation.
/// </param>
/// <returns>
/// A task that represents the asynchronous read operation. The <see cref="Task{TResult}.Result"/>
/// property contains the timestamped register payload.
/// </returns>
public async Task<Timestamped<byte>> ReadTimestampedUserTemperatureCalibrationAsync(CancellationToken cancellationToken = default)
{
var reply = await CommandAsync(HarpCommand.ReadByte(UserTemperatureCalibration.Address), cancellationToken);
return UserTemperatureCalibration.GetTimestampedPayload(reply);
}

/// <summary>
/// Asynchronously reads the contents of the EnableEvents register.
/// </summary>
Expand Down
Loading