Language
Edit

RockchipDriver Class

Definition

A generic GPIO driver for Rockchip SoCs.

public class RockchipDriver : System.Device.Gpio.Drivers.SysFsDriver
type RockchipDriver = class
    inherit SysFsDriver
Public Class RockchipDriver
Inherits SysFsDriver
Inheritance
Derived

Remarks

This is a generic GPIO driver for Rockchip SoCs. It can even drive the internal pins that are not drawn out. Before you operate, you must be clear about what you are doing.

Constructors

Name Description
RockchipDriver()

Initializes a new instance of the RockchipDriver class.

RockchipDriver(UInt32[])

Initializes a new instance of the RockchipDriver.

Fields

Name Description
_gpioPointers
_mapMask
_pinModes
GpioMemoryFilePath
s_initializationLock

Properties

Name Description
GpioRegisterAddresses

Gpio register addresses.

PinCount

The number of pins provided by the driver.

Methods

Name Description
AddCallbackForPinValueChangedEvent(Int32, PinEventTypes, PinChangeEventHandler)

Adds a handler for a pin value changed event.

ClosePin(Int32)

Closes an open pin.

ConvertPinNumberToLogicalNumberingScheme(Int32)

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

Dispose()

Disposes this instance, closing all open pins

(Inherited from GpioDriver)
Dispose(Boolean)

Disposes this instance

GetPinMode(Int32)

Gets the mode of a pin.

IsPinModeSupported(Int32, PinMode)

Checks if a pin supports a specific mode.

MapPinNumber(Int32, Char, Int32)

Map pin number with port name to pin number in the driver's logical numbering scheme.

OpenPin(Int32)

Opens a pin in order for it to be ready to use. This retains the pin direction, but if it is output, the value will always be low after open.

QueryComponentInformation()

Query information about a component and its children.

(Inherited from GpioDriver)
Read(Int32)

Reads the current value of a pin.

RemoveCallbackForPinValueChangedEvent(Int32, PinChangeEventHandler)

Removes a handler for a pin value changed event.

SetPinMode(Int32, PinMode, PinValue)

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

(Inherited from GpioDriver)
SetPinMode(Int32, PinMode)

Sets the mode to a pin.

Toggle(Int32)

Toggle the current value of a pin.

(Inherited from SysFsDriver)
UnmapPinNumber(Int32)

Unmap pin number in the driver's logical numbering scheme to pin number with port name.

WaitForEvent(Int32, PinEventTypes, CancellationToken)

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

WaitForEventAsync(Int32, PinEventTypes, CancellationToken)

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

Write(Int32, PinValue)

Writes a value to a pin.

Applies to