UnixDriver Class

Definition

The base class for the standard unix drivers

public abstract class UnixDriver : System.Device.Gpio.GpioDriver
type UnixDriver = class
    inherit GpioDriver
Public MustInherit Class UnixDriver
Inherits GpioDriver
Inheritance
UnixDriver
Derived

Constructors

UnixDriver()

Construct an instance of an unix driver.

Properties

PinCount

The number of pins provided by the driver.

(Inherited from GpioDriver)

Methods

AddCallbackForPinValueChangedEvent(Int32, PinEventTypes, PinChangeEventHandler)

Adds a handler for a pin value changed event.

(Inherited from GpioDriver)
ClosePin(Int32)

Closes an open pin.

(Inherited from GpioDriver)
ConvertPinNumberToLogicalNumberingScheme(Int32)

Converts a board pin number to the driver's logical numbering scheme.

(Inherited from GpioDriver)
Create()

Static factory method

Dispose()

Disposes this instance, closing all open pins

(Inherited from GpioDriver)
Dispose(Boolean)

Disposes this instance

(Inherited from GpioDriver)
GetPinMode(Int32)

Gets the mode of a pin.

(Inherited from GpioDriver)
IsPinModeSupported(Int32, PinMode)

Checks if a pin supports a specific mode.

(Inherited from GpioDriver)
OpenPin(Int32)

Opens a pin in order for it to be ready to use. The driver attempts to open the pin without changing its mode or value.

(Inherited from GpioDriver)
Read(Int32)

Reads the current value of a pin.

(Inherited from GpioDriver)
RemoveCallbackForPinValueChangedEvent(Int32, PinChangeEventHandler)

Removes a handler for a pin value changed event.

(Inherited from GpioDriver)
SetPinMode(Int32, PinMode)

Sets the mode to a pin.

(Inherited from GpioDriver)
SetPinMode(Int32, PinMode, PinValue)

Sets the mode to a pin and sets an initial value for an output pin.

(Inherited from GpioDriver)
WaitForEvent(Int32, PinEventTypes, CancellationToken)

Blocks execution until an event of type eventType is received or a cancellation is requested.

(Inherited from GpioDriver)
WaitForEventAsync(Int32, PinEventTypes, CancellationToken)

Async call until an event of type eventType is received or a cancellation is requested.

(Inherited from GpioDriver)
Write(Int32, PinValue)

Writes a value to a pin.

(Inherited from GpioDriver)

Applies to