Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
[This documentation is for preview only, and is subject to change in later releases. Blank topics are included as placeholders.]
Represents an instance of an input port that can be used to read the value of a GPIO pin.
Inheritance Hierarchy
System. . :: . .Object
Microsoft.SPOT.Hardware. . :: . .NativeEventDispatcher
Microsoft.SPOT.Hardware. . :: . .Port
Microsoft.SPOT.Hardware..::..InputPort
Microsoft.SPOT.Hardware. . :: . .InterruptPort
Namespace: Microsoft.SPOT.Hardware
Assembly: Microsoft.SPOT.Hardware (in Microsoft.SPOT.Hardware.dll)
Syntax
'Declaration
Public Class InputPort _
Inherits Port
public class InputPort : Port
public ref class InputPort : public Port
type InputPort =
class
inherit Port
end
public class InputPort extends Port
The InputPort type exposes the following members.
Constructors
| Name | Description | |
|---|---|---|
![]() |
InputPort(Cpu. . :: . .Pin, Boolean, Port. . :: . .ResistorMode) | Initializes a new instance of the InputPort class with the specified port identifier, glitch filter, and resistor mode. |
![]() |
InputPort(Cpu. . :: . .Pin, Boolean, Port. . :: . .ResistorMode, Port. . :: . .InterruptMode) | Initializes a new instance of the InputPort class with the specified port identifier, glitch filter, resistor mode, and interrupt mode. |
![]() |
InputPort(Cpu. . :: . .Pin, Boolean, Boolean, Port. . :: . .ResistorMode) | Initializes a new instance of the InputPort class with the specified port identifier, initial state, glitch filter, and resistor mode. |
Top
Properties
| Name | Description | |
|---|---|---|
![]() |
GlitchFilter | Gets or sets the state of the input port's glitch filter. |
![]() |
Id | Gets the indentifier (ID) for a port. (Inherited from Port.) |
![]() |
Resistor | Gets or sets the resistor mode of the input port. You set the initial resistor mode value in the InputPort constructor. |
Top
Methods
| Name | Description | |
|---|---|---|
![]() |
DisableInterrupt | Disables the interrupt for this NativeEventDispatcher object. (Inherited from NativeEventDispatcher.) |
![]() |
Dispose() () () () | Releases resources used by this NativeEventDispatcher object. (Inherited from NativeEventDispatcher.) |
![]() |
Dispose(Boolean) | Disables the pin for a port and marks it as available for reuse. (Inherited from Port.) |
![]() |
EnableInterrupt | Enables the interrupt for this NativeEventDispatcher object. (Inherited from NativeEventDispatcher.) |
![]() |
Equals(Object) | Determines whether the specified Object is equal to the current Object. (Inherited from Object.) |
![]() |
Finalize | Performs cleanup operations. (Inherited from NativeEventDispatcher.) |
![]() |
GetHashCode | Serves as a hash function for a particular type. (Inherited from Object.) |
![]() |
GetType | Gets the Type of the current instance. (Inherited from Object.) |
![]() |
MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) |
![]() |
Read | Reads a Boolean value at the port input. (Inherited from Port.) |
![]() |
ToString | Returns a string that represents the current object. (Inherited from Object.) |
Top
Events
| Name | Description | |
|---|---|---|
![]() |
OnInterrupt | Adds or removes callback methods for native events. (Inherited from NativeEventDispatcher.) |
Top
Fields
| Name | Description | |
|---|---|---|
![]() |
m_callbacks | The event handler for this NativeEventDispatcher object (a mulitcast combinable delegate). (Inherited from NativeEventDispatcher.) |
![]() |
m_disposed | Set to true if this NativeEventDispatcher object has been disposed, or false if not. (Inherited from NativeEventDispatcher.) |
![]() |
m_threadSpawn | The event handler for this NativeEventDispatcher object (a mulitcast combinable delegate). (Inherited from NativeEventDispatcher.) |
Top
Thread Safety
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
.gif)
.gif)
.gif)
.gif)
.gif)