Class Cp2112Collection
Represents a collection of Cp2112 devices and provides functionality for device enumeration.
Assembly: Cp2112.dll
View Source
Declaration
public class Cp2112Collection : IEnumerable<Cp2112>, IEnumerable
Implements:
System.Collections.Generic.IEnumerable<Meadow.Foundation.ICs.IOExpanders.Cp2112>
, System.Collections.IEnumerable
Properties
Count
Gets the number of Cp2112 devices connected to the host machine.
View Source
Declaration
public int Count { get; }
this[int]
Gets the Cp2112 device at the specified index in the collection.
View Source
Declaration
public Cp2112 this[int index] { get; }
Devices
Gets the singleton instance of Cp2112Collection, initializing it if necessary.
View Source
Declaration
public static Cp2112Collection Devices { get; }
Methods
Refresh()
Refreshes the collection by detecting and updating Cp2112 devices.
View Source
Declaration
public void Refresh()
GetEnumerator()
Returns an enumerator that iterates through the collection.
View Source
Declaration
public IEnumerator<Cp2112> GetEnumerator()
Returns
System.Collections.Generic.IEnumerator<Meadow.Foundation.ICs.IOExpanders.Cp2112>
: An enumerator that can be used to iterate through the collection.
Implements
System.Collections.Generic.IEnumerable<Meadow.Foundation.ICs.IOExpanders.Cp2112>
System.Collections.IEnumerable