GHIElectronics.TinyCLR.Devices.Gpio
NuGet package containing 9 types across 2 namespaces (GHIElectronics.TinyCLR.Devices.Gpio, GHIElectronics.TinyCLR.Devices.Gpio.Provider).
Classes
| Class | Namespace | Summary |
|---|---|---|
| GpioController | GHIElectronics.TinyCLR.Devices.Gpio | Represents a GPIO controller — the hardware peripheral that owns a set of individually addressable pins. Use GetDefault to obtain the device's primary controller, then OpenPin(int) to acquire pins for input or output. |
| GpioControllerApiWrapper | GHIElectronics.TinyCLR.Devices.Gpio.Provider | Concrete IGpioControllerProvider backed by the native TinyCLR GPIO HAL. Constructed internally by GpioController; you don't normally need to use this type directly. |
| GpioPin | GHIElectronics.TinyCLR.Devices.Gpio | A single GPIO pin opened from a GpioController. Configure the direction with SetDriveMode(GpioPinDriveMode), then drive it with Write(GpioPinValue) or sample it with Read. Subscribe to ValueChanged for edge-triggered notifications on inputs. |
| GpioPinValueChangedEventArgs | GHIElectronics.TinyCLR.Devices.Gpio | Arguments for the GpioPin.ValueChanged event. |
Interfaces
| Interface | Namespace | Summary |
|---|---|---|
| IGpioControllerProvider | GHIElectronics.TinyCLR.Devices.Gpio.Provider | Provider contract for a GPIO controller. Most users call GpioController / GpioPin directly; implement this interface only when supplying a custom or virtual controller. |
Enums
| Enum | Namespace | Summary |
|---|---|---|
| GpioPinDriveMode | GHIElectronics.TinyCLR.Devices.Gpio | Electrical drive mode applied to a GpioPin. Not every mode is available on every pin — call GpioPin.IsDriveModeSupported(GpioPinDriveMode) before GpioPin.SetDriveMode(GpioPinDriveMode) when in doubt. |
| GpioPinEdge | GHIElectronics.TinyCLR.Devices.Gpio | Which edges trigger the GpioPin.ValueChanged event. The flags can be combined to fire on both edges. |
| GpioPinValue | GHIElectronics.TinyCLR.Devices.Gpio | Logical level of a GpioPin. |
Delegates
| Delegate | Namespace | Summary |
|---|---|---|
| GpioPinValueChangedEventHandler | GHIElectronics.TinyCLR.Devices.Gpio | Handler invoked when a GpioPin configured as an input observes a level change matching its GpioPin.ValueChangedEdge. |