Skip to main content

Class PinDefinitionBase

Provides a base implementation for device pin lists.

Assembly: Meadow.Contracts.dll
View Source
Declaration
public abstract class PinDefinitionBase : IPinDefinitions, IEnumerable<IPin>, IEnumerable

Derived:
Meadow.Hardware.GroveDigitalConnector.GroveDigitalPinDefinitions

Implements:
Meadow.Hardware.IPinDefinitions, System.Collections.Generic.IEnumerable<Meadow.Hardware.IPin>, System.Collections.IEnumerable

Properties

AllPins

Convenience property which contains all the pins available on the device.

View Source
Declaration
public IList<IPin> AllPins { get; }

Controller

Gets or sets the IPinController associated with the IPins

View Source
Declaration
public IPinController? Controller { get; set; }

Methods

GetEnumerator()

Returns an enumerator that iterates through the collection.

View Source
Declaration
public IEnumerator<IPin> GetEnumerator()
Returns

System.Collections.Generic.IEnumerator<Meadow.Hardware.IPin>: An enumerator that can be used to iterate through the collection.

Implements

Extension Methods

  • System.Collections.Generic.IEnumerable{Meadow.Hardware.IPin}.Meadow.ExtensionMethods.Contains``1(Meadow.Hardware.IPin[])
  • System.Collections.Generic.IEnumerable{Meadow.Hardware.IPin}.Meadow.ExtensionMethods.FirstIndexOf``1(Meadow.Hardware.IPin[])