@@ -45,39 +45,39 @@ internal AsyncDevice(string portName)
45
45
}
46
46
47
47
/// <summary>
48
- /// Asynchronously reads the contents of the StartAcquisition register.
48
+ /// Asynchronously reads the contents of the AcquisitionState register.
49
49
/// </summary>
50
50
/// <returns>
51
51
/// A task that represents the asynchronous read operation. The <see cref="Task{TResult}.Result"/>
52
52
/// property contains the register payload.
53
53
/// </returns>
54
- public async Task < EnableFlag > ReadStartAcquisitionAsync ( )
54
+ public async Task < EnableFlag > ReadAcquisitionStateAsync ( )
55
55
{
56
- var reply = await CommandAsync ( HarpCommand . ReadByte ( StartAcquisition . Address ) ) ;
57
- return StartAcquisition . GetPayload ( reply ) ;
56
+ var reply = await CommandAsync ( HarpCommand . ReadByte ( AcquisitionState . Address ) ) ;
57
+ return AcquisitionState . GetPayload ( reply ) ;
58
58
}
59
59
60
60
/// <summary>
61
- /// Asynchronously reads the timestamped contents of the StartAcquisition register.
61
+ /// Asynchronously reads the timestamped contents of the AcquisitionState register.
62
62
/// </summary>
63
63
/// <returns>
64
64
/// A task that represents the asynchronous read operation. The <see cref="Task{TResult}.Result"/>
65
65
/// property contains the timestamped register payload.
66
66
/// </returns>
67
- public async Task < Timestamped < EnableFlag > > ReadTimestampedStartAcquisitionAsync ( )
67
+ public async Task < Timestamped < EnableFlag > > ReadTimestampedAcquisitionStateAsync ( )
68
68
{
69
- var reply = await CommandAsync ( HarpCommand . ReadByte ( StartAcquisition . Address ) ) ;
70
- return StartAcquisition . GetTimestampedPayload ( reply ) ;
69
+ var reply = await CommandAsync ( HarpCommand . ReadByte ( AcquisitionState . Address ) ) ;
70
+ return AcquisitionState . GetTimestampedPayload ( reply ) ;
71
71
}
72
72
73
73
/// <summary>
74
- /// Asynchronously writes a value to the StartAcquisition register.
74
+ /// Asynchronously writes a value to the AcquisitionState register.
75
75
/// </summary>
76
76
/// <param name="value">The value to be stored in the register.</param>
77
77
/// <returns>The task object representing the asynchronous write operation.</returns>
78
- public async Task WriteStartAcquisitionAsync ( EnableFlag value )
78
+ public async Task WriteAcquisitionStateAsync ( EnableFlag value )
79
79
{
80
- var request = StartAcquisition . FromPayload ( MessageType . Write , value ) ;
80
+ var request = AcquisitionState . FromPayload ( MessageType . Write , value ) ;
81
81
await CommandAsync ( request ) ;
82
82
}
83
83
@@ -171,39 +171,39 @@ public async Task WriteRangeAndFilterAsync(RangeAndFilterConfig value)
171
171
}
172
172
173
173
/// <summary>
174
- /// Asynchronously reads the contents of the SamplingFrequency register.
174
+ /// Asynchronously reads the contents of the SamplingRate register.
175
175
/// </summary>
176
176
/// <returns>
177
177
/// A task that represents the asynchronous read operation. The <see cref="Task{TResult}.Result"/>
178
178
/// property contains the register payload.
179
179
/// </returns>
180
- public async Task < SamplingFrequencyConfig > ReadSamplingFrequencyAsync ( )
180
+ public async Task < SamplingRateConfig > ReadSamplingRateAsync ( )
181
181
{
182
- var reply = await CommandAsync ( HarpCommand . ReadByte ( SamplingFrequency . Address ) ) ;
183
- return SamplingFrequency . GetPayload ( reply ) ;
182
+ var reply = await CommandAsync ( HarpCommand . ReadByte ( SamplingRate . Address ) ) ;
183
+ return SamplingRate . GetPayload ( reply ) ;
184
184
}
185
185
186
186
/// <summary>
187
- /// Asynchronously reads the timestamped contents of the SamplingFrequency register.
187
+ /// Asynchronously reads the timestamped contents of the SamplingRate register.
188
188
/// </summary>
189
189
/// <returns>
190
190
/// A task that represents the asynchronous read operation. The <see cref="Task{TResult}.Result"/>
191
191
/// property contains the timestamped register payload.
192
192
/// </returns>
193
- public async Task < Timestamped < SamplingFrequencyConfig > > ReadTimestampedSamplingFrequencyAsync ( )
193
+ public async Task < Timestamped < SamplingRateConfig > > ReadTimestampedSamplingRateAsync ( )
194
194
{
195
- var reply = await CommandAsync ( HarpCommand . ReadByte ( SamplingFrequency . Address ) ) ;
196
- return SamplingFrequency . GetTimestampedPayload ( reply ) ;
195
+ var reply = await CommandAsync ( HarpCommand . ReadByte ( SamplingRate . Address ) ) ;
196
+ return SamplingRate . GetTimestampedPayload ( reply ) ;
197
197
}
198
198
199
199
/// <summary>
200
- /// Asynchronously writes a value to the SamplingFrequency register.
200
+ /// Asynchronously writes a value to the SamplingRate register.
201
201
/// </summary>
202
202
/// <param name="value">The value to be stored in the register.</param>
203
203
/// <returns>The task object representing the asynchronous write operation.</returns>
204
- public async Task WriteSamplingFrequencyAsync ( SamplingFrequencyConfig value )
204
+ public async Task WriteSamplingRateAsync ( SamplingRateConfig value )
205
205
{
206
- var request = SamplingFrequency . FromPayload ( MessageType . Write , value ) ;
206
+ var request = SamplingRate . FromPayload ( MessageType . Write , value ) ;
207
207
await CommandAsync ( request ) ;
208
208
}
209
209
@@ -467,39 +467,39 @@ public async Task WriteDigitalOutputStateAsync(DigitalOutputs value)
467
467
}
468
468
469
469
/// <summary>
470
- /// Asynchronously reads the contents of the StartSyncOutput register.
470
+ /// Asynchronously reads the contents of the SyncOutput register.
471
471
/// </summary>
472
472
/// <returns>
473
473
/// A task that represents the asynchronous read operation. The <see cref="Task{TResult}.Result"/>
474
474
/// property contains the register payload.
475
475
/// </returns>
476
- public async Task < StartSyncOutputTargets > ReadStartSyncOutputAsync ( )
476
+ public async Task < StartSyncOutputTarget > ReadSyncOutputAsync ( )
477
477
{
478
- var reply = await CommandAsync ( HarpCommand . ReadByte ( StartSyncOutput . Address ) ) ;
479
- return StartSyncOutput . GetPayload ( reply ) ;
478
+ var reply = await CommandAsync ( HarpCommand . ReadByte ( SyncOutput . Address ) ) ;
479
+ return SyncOutput . GetPayload ( reply ) ;
480
480
}
481
481
482
482
/// <summary>
483
- /// Asynchronously reads the timestamped contents of the StartSyncOutput register.
483
+ /// Asynchronously reads the timestamped contents of the SyncOutput register.
484
484
/// </summary>
485
485
/// <returns>
486
486
/// A task that represents the asynchronous read operation. The <see cref="Task{TResult}.Result"/>
487
487
/// property contains the timestamped register payload.
488
488
/// </returns>
489
- public async Task < Timestamped < StartSyncOutputTargets > > ReadTimestampedStartSyncOutputAsync ( )
489
+ public async Task < Timestamped < StartSyncOutputTarget > > ReadTimestampedSyncOutputAsync ( )
490
490
{
491
- var reply = await CommandAsync ( HarpCommand . ReadByte ( StartSyncOutput . Address ) ) ;
492
- return StartSyncOutput . GetTimestampedPayload ( reply ) ;
491
+ var reply = await CommandAsync ( HarpCommand . ReadByte ( SyncOutput . Address ) ) ;
492
+ return SyncOutput . GetTimestampedPayload ( reply ) ;
493
493
}
494
494
495
495
/// <summary>
496
- /// Asynchronously writes a value to the StartSyncOutput register.
496
+ /// Asynchronously writes a value to the SyncOutput register.
497
497
/// </summary>
498
498
/// <param name="value">The value to be stored in the register.</param>
499
499
/// <returns>The task object representing the asynchronous write operation.</returns>
500
- public async Task WriteStartSyncOutputAsync ( StartSyncOutputTargets value )
500
+ public async Task WriteSyncOutputAsync ( StartSyncOutputTarget value )
501
501
{
502
- var request = StartSyncOutput . FromPayload ( MessageType . Write , value ) ;
502
+ var request = SyncOutput . FromPayload ( MessageType . Write , value ) ;
503
503
await CommandAsync ( request ) ;
504
504
}
505
505
}
0 commit comments