C# Class Porrey.Uwp.IoT.FluentApi.GpioFluentApiExtensions

Provides a set of extension methods to create a fluent API for the GPIO pin.
Afficher le fichier Open project: porrey/iot

Méthodes publiques

Méthode Description
AsExclusive ( this configuration ) : IGpioPinConfiguration

Specifies that the pin on the controller should be opened in exclusive mode.

AsSharedReadOnly ( this configuration ) : IGpioPinConfiguration

Specifies that the pin on the controller should be opened in shared read-only mode.

OnPin ( this gpio, int pinNumber ) : IGpioPinConfiguration

Open ( this configuration ) : Windows.Devices.Gpio.GpioPin

Opens the pin on the controller using the configuration provided.

Method Details

AsExclusive() public static méthode

Specifies that the pin on the controller should be opened in exclusive mode.
public static AsExclusive ( this configuration ) : IGpioPinConfiguration
configuration this An instance of Windows.Devices.Gpio.IGpioPinConfiguration /// containing the current configuration used top open the pin on the controller.
Résultat IGpioPinConfiguration

AsSharedReadOnly() public static méthode

Specifies that the pin on the controller should be opened in shared read-only mode.
public static AsSharedReadOnly ( this configuration ) : IGpioPinConfiguration
configuration this An instance of Windows.Devices.Gpio.IGpioPinConfiguration /// containing the current configuration used top open the pin on the controller.
Résultat IGpioPinConfiguration

OnPin() public static méthode

public static OnPin ( this gpio, int pinNumber ) : IGpioPinConfiguration
gpio this The GPIO Controller.
pinNumber int The pin number on the controller to assign.
Résultat IGpioPinConfiguration

Open() public static méthode

Opens the pin on the controller using the configuration provided.
public static Open ( this configuration ) : Windows.Devices.Gpio.GpioPin
configuration this An instance of Windows.Devices.Gpio.IGpioPinConfiguration /// containing the current configuration used top open the pin on the controller.
Résultat Windows.Devices.Gpio.GpioPin