diff --git a/Interface/Harp.Olfactometer/AsyncDevice.Generated.cs b/Interface/Harp.Olfactometer/AsyncDevice.Generated.cs index ebf4be3..9493e08 100644 --- a/Interface/Harp.Olfactometer/AsyncDevice.Generated.cs +++ b/Interface/Harp.Olfactometer/AsyncDevice.Generated.cs @@ -2449,6 +2449,20 @@ public async Task> ReadTimestampedEnableTemperatureCalibration return EnableTemperatureCalibration.GetTimestampedPayload(reply); } + /// + /// Asynchronously writes a value to the EnableTemperatureCalibration register. + /// + /// The value to be stored in the register. + /// + /// A which can be used to cancel the operation. + /// + /// The task object representing the asynchronous write operation. + public async Task WriteEnableTemperatureCalibrationAsync(byte value, CancellationToken cancellationToken = default) + { + var request = EnableTemperatureCalibration.FromPayload(MessageType.Write, value); + await CommandAsync(request, cancellationToken); + } + /// /// Asynchronously reads the contents of the TemperatureCalibrationValue register. /// @@ -2481,6 +2495,20 @@ public async Task> ReadTimestampedTemperatureCalibrationValueA return TemperatureCalibrationValue.GetTimestampedPayload(reply); } + /// + /// Asynchronously writes a value to the TemperatureCalibrationValue register. + /// + /// The value to be stored in the register. + /// + /// A which can be used to cancel the operation. + /// + /// The task object representing the asynchronous write operation. + public async Task WriteTemperatureCalibrationValueAsync(byte value, CancellationToken cancellationToken = default) + { + var request = TemperatureCalibrationValue.FromPayload(MessageType.Write, value); + await CommandAsync(request, cancellationToken); + } + /// /// Asynchronously reads the contents of the EnableEvents register. /// diff --git a/device.yml b/device.yml index d665105..024b83b 100644 --- a/device.yml +++ b/device.yml @@ -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