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

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

Public Methods

Method 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 method

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.
return IGpioPinConfiguration

AsSharedReadOnly() public static method

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.
return IGpioPinConfiguration

OnPin() public static method

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

Open() public static method

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.
return Windows.Devices.Gpio.GpioPin