Class Cp2112.PinDefinitions
Provides definitions for the pins of the Cp2112 device.
Assembly: Cp2112.dll
View Source
public class Cp2112.PinDefinitions : IPinDefinitions, IEnumerable<IPin>, IEnumerable
Implements:
Meadow.Hardware.IPinDefinitions
, System.Collections.Generic.IEnumerable<Meadow.Hardware.IPin>
, System.Collections.IEnumerable
Properties
AllPins
Collection of pins
View Source
public IList<IPin> AllPins { get; }
Controller
Gets or sets the IPinController associated with the IPins
View Source
public IPinController? Controller { get; set; }
IO0
Gets the pin representing IO0 on the Cp2112 device.
View Source
public IPin IO0 { get; }
IO1
Gets the pin representing IO1 on the Cp2112 device.
View Source
public IPin IO1 { get; }
IO2
Gets the pin representing IO2 on the Cp2112 device.
View Source
public IPin IO2 { get; }
IO3
Gets the pin representing IO3 on the Cp2112 device.
View Source
public IPin IO3 { get; }
IO4
Gets the pin representing IO4 on the Cp2112 device.
View Source
public IPin IO4 { get; }
IO5
Gets the pin representing IO5 on the Cp2112 device.
View Source
public IPin IO5 { get; }
IO6
Gets the pin representing IO6 on the Cp2112 device.
View Source
public IPin IO6 { get; }
IO7
Gets the pin representing IO7 on the Cp2112 device.
View Source
public IPin IO7 { get; }
Methods
GetEnumerator()
Returns an enumerator that iterates through the collection.
View Source
public IEnumerator<IPin> GetEnumerator()
Returns
System.Collections.Generic.IEnumerator<Meadow.Hardware.IPin>
: An enumerator that can be used to iterate through the collection.### InitAllPins()
Initialized all pins of the CP2112
View Source
protected void InitAllPins()
Implements
Meadow.Hardware.IPinDefinitions
System.Collections.Generic.IEnumerable<Meadow.Hardware.IPin>
System.Collections.IEnumerable