GpioPort Members

The following tables list the members exposed by the GpioPort type.

Public Constructors

Name Description
Public Method GpioPort Overloaded. Initializes a new instance of the GpioPort class.

Protected Fields

Name Description
Protected Field _debounceMode Specifies the mode of debouncing that a GPIO port uses.
Protected Field _evtActivity Specifies the delegate for an OnGpioActivity event.
Protected Field _interruptMode Specifies the transition edge at which an interrupt occurs.
Protected Field _isr Points to the interrupt service routine (ISR).
Protected Field _isrParam Points to the parameter passed to the interrupt service routine (ISR).
Protected Field _resistorMode Specifies the mode of a GPIO pin's terminating resistor.
Protected Field _state Specifies the current state of a GPIO pin.

Public Properties

Name Description
Public Property Interrupt Gets the transition edge at which an interrupt occurs.
Public Property Mode Gets a GPIO port's current mode.
Public Property ModesAllowed Gets or sets a GPIO port's allowed modes.
Public Property ModesExpected Gets or sets a GPIO port's expected modes.
Public Property Pin Gets or sets a GPIO pin.
Public Property Resistor Gets the mode of a GPIO pin's terminating resistor.

Public Methods

Name Description
Public Method IsReplaceableBy Indicates whether the current GPIO port can be replaced by a specified component.
Public Method Read Reads the bit value from a particular pin.
Public Method SetupComponent Sets up a GPIO port.
Public Method Write Writes a specified bit value to the current pin.

Public Events

Name Description
Public Event OnGpioActivity Occurs when a .NET Micro Framework application changes the state of a GPIO pin.

See Also

Reference

GpioPort Class
Microsoft.SPOT.Emulator.Gpio Namespace