ProviderGpioPinDriveMode ProviderGpioPinDriveMode ProviderGpioPinDriveMode ProviderGpioPinDriveMode Enum

Definition

Describes whether a general-purpose I/O (GPIO) pin is configured as an input or an output, and how values are driven onto the pin.

public : enum class ProviderGpioPinDriveModepublic enum ProviderGpioPinDriveModePublic Enum ProviderGpioPinDriveMode// You can use this enum in JavaScript.
Attributes
Windows 10 requirements
Device family
Windows IoT Extension SDK (introduced v10.0.10586.0) Windows 10 Anniversary Edition (introduced v10.0.14393.0)
API contract
Windows.Devices.DevicesLowLevelContract (introduced v2)

Fields

Input Input Input Input

Configures the GPIO pin in floating mode, with high impedance.

If you call the IGpioPinProvider.Read method for this pin, the method returns the current state of the pin as driven externally.

If you call the IGpioPinProvider.Write method, the method sets the latched output value for the pin. The pin takes on this latched output value when the pin is changed to an output.

InputPullDown InputPullDown InputPullDown InputPullDown

Configures the GPIO pin as high impedance with a pull-down resistor to ground.

If you call the IGpioPinProvider.Read method for this pin, the method returns the current value of the pin as driven externally.

InputPullUp InputPullUp InputPullUp InputPullUp

Configures the GPIO pin as high impedance with a pull-up resistor to the voltage charge connection (VCC).

If you call the IGpioPinProvider.Read method for this pin, the method returns the value previously written to the pin.

Output Output Output Output

Configures the GPIO pin in strong drive mode, with low impedance.

If you call the IGpioPinProvider.Write method for this pin with a value of ProviderGpioPinValue.High, the method produces a low-impedance high value for the pin. If you call the IGpioPinProvider.Write method for this pin with a value of ProviderGpioPinValue.Low, the method produces a low-impedance low value for the pin.

If you call the IGpioPinProvider.Read method for this pin, the method returns the value previously written to the pin.

OutputOpenDrain OutputOpenDrain OutputOpenDrain OutputOpenDrain

Configures the GPIO in open drain mode.

If you call the IGpioPinProvider.Write method for this pin with a value of ProviderGpioPinValue.Low, the method drives a value of low to the pin. If you call the IGpioPinProvider.Write method for this pin with a value of ProviderGpioPinValue.High, the method places the pin in floating mode.

OutputOpenDrainPullUp OutputOpenDrainPullUp OutputOpenDrainPullUp OutputOpenDrainPullUp

Configures the GPIO pin in open drain mode with resistive pull-up mode.

If you call the IGpioPinProvider.Write method for this pin with a value of ProviderGpioPinValue.Low, the method produces a low-impedance low state. If you call the IGpioPinProvider.Write method for this pin with a value of ProviderGpioPinValue.High, the method configures the pin as high impedance with a pull-up resistor to VCC.

OutputOpenSource OutputOpenSource OutputOpenSource OutputOpenSource

Configures the GPIO pin in open collector mode.

If you call the IGpioPinProvider.Write method for this pin with a value of ProviderGpioPinValue.High, the method drives a value of high onto the pin. If you call the IGpioPinProvider.Write method for this pin with a value of ProviderGpioPinValue.Low, the method configures the pin in floating mode.

OutputOpenSourcePullDown OutputOpenSourcePullDown OutputOpenSourcePullDown OutputOpenSourcePullDown

Configures the GPIO pin in open collector mode with resistive pull-down mode.

If you call the IGpioPinProvider.Write method for this pin with a value of ProviderGpioPinValue.High, the method drives a value of high onto the pin. If you call the IGpioPinProvider.Write method for this pin with a value of ProviderGpioPinValue.Low, the method configures the pin as high impedance with a pull-down resistor to ground.