IGpioPinProvider Interface
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Represents actions common to general-purpose I/O (GPIO) pin providers.
public interface class IGpioPinProvider
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Devices.DevicesLowLevelContract, 131072)]
/// [Windows.Foundation.Metadata.Guid(1110723767, 27324, 16639, 156, 231, 115, 184, 83, 1, 185, 0)]
struct IGpioPinProvider
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Devices.DevicesLowLevelContract), 131072)]
[Windows.Foundation.Metadata.Guid(1110723767, 27324, 16639, 156, 231, 115, 184, 83, 1, 185, 0)]
public interface IGpioPinProvider
Public Interface IGpioPinProvider
- Attributes
Windows requirements
Device family |
Windows IoT Extension SDK (introduced in 10.0.10586.0)
Windows 10 Anniversary Edition (introduced in 10.0.14393.0) |
API contract |
Windows.Devices.DevicesLowLevelContract (introduced in v2.0)
|
Properties
DebounceTimeout |
Gets or sets the debounce timeout for the general-purpose I/O (GPIO) pin, which is an interval during which changes to the value of the pin are filtered out and do not generate ValueChanged events. |
PinNumber |
Gets the pin number of the general-purpose I/O (GPIO) pin. |
SharingMode |
Gets the sharing mode in which the general-purpose I/O (GPIO) pin is open. |
Methods
GetDriveMode() |
Gets the pin's currently configured drive mode. |
IsDriveModeSupported(ProviderGpioPinDriveMode) |
Determines if a drive mode is supported for the pin. |
Read() |
Reads the current value of the pin. |
SetDriveMode(ProviderGpioPinDriveMode) |
Sets the pin's drive mode. |
Write(ProviderGpioPinValue) |
Writes a value to the pin. |
Events
ValueChanged |
Event that fires when the value of the pin has changed. |