-
Notifications
You must be signed in to change notification settings - Fork 27
Expand file tree
/
Copy pathIOutput.cs
More file actions
37 lines (33 loc) · 1.26 KB
/
IOutput.cs
File metadata and controls
37 lines (33 loc) · 1.26 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
// Copyright (c) 2025, Phoenix Contact GmbH & Co. KG
// Licensed under the Apache License, Version 2.0
namespace Moryx.AbstractionLayer.Drivers.InOut
{
/// <summary>
/// Interface for writing output
/// </summary>
public interface IOutput<TOut>
{
/// <summary>
/// Access flags for the output
/// </summary>
SupportedAccess Access { get; }
/// <summary>
/// Single value output
/// Only available for <see cref="SupportedAccess.Single"/>
/// </summary>
/// <exception cref="DriverStateException">Will be thrown when the driver is in wrong state</exception>
TOut Value { get; set; }
/// <summary>
/// Index based output
/// Only available for <see cref="SupportedAccess.Index"/>
/// </summary>
/// <exception cref="DriverStateException">Will be thrown when the driver is in wrong state</exception>
TOut this[int index] { get; set; }
/// <summary>
/// Key based output
/// Only available for <see cref="SupportedAccess.Key"/>
/// </summary>
/// <exception cref="DriverStateException">Will be thrown when the driver is in wrong state</exception>
TOut this[string key] { get; set; }
}
}