Class Extensions
Extension methods for T3 modules
Assembly: Temco.T3xxx.dll
View Source
Declaration
public static class Extensions
Methods
CreateDigitalInputPort(T3xxxPin)
Creates an IDigitalInputPort using the specified pin.
View Source
Declaration
public static IDigitalInputPort CreateDigitalInputPort(this T3xxxPin pin)
Returns
Meadow.Hardware.IDigitalInputPort: an IDigitalInputPort instance
Parameters
| Type | Name | Description |
|---|---|---|
| Meadow.Foundation.IOExpanders.T3xxxPin | pin | The pin to use for the input port |
CreateCurrentInputPort(IPin)
Creates an ICurrentInputPort using the specified pin.
View Source
Declaration
public static ICurrentInputPort CreateCurrentInputPort(this IPin pin)
Returns
Meadow.Hardware.ICurrentInputPort
Parameters
| Type | Name | Description |
|---|---|---|
Meadow.Hardware.IPin | pin | The pin to use for the input port |
CreateCounter(IPin)
Creates a counter associated with the specified pin.
View Source
Declaration
public static ICounter CreateCounter(this IPin pin)
Returns
Meadow.Hardware.ICounter: An Meadow.Hardware.ICounter instance that can be used to count events on the specified pin.
Parameters
| Type | Name | Description |
|---|---|---|
Meadow.Hardware.IPin | pin | The pin for which the counter is to be created. The pin must support digital input functionality. |
Exceptions
System.NotSupportedException
Thrown if the specified <code class="paramref">pin</code> does not support digital input.