Port Constructor (Cpu.Pin, Boolean, Port.ResistorMode, Port.InterruptMode)
[This documentation is for preview only, and is subject to change in later releases. Blank topics are included as placeholders.]
Initializes a new instance of the Port class with the specified port identifier, glitch filter state, resistor mode, and interrupt mode.
Namespace: Microsoft.SPOT.Hardware
Assembly: Microsoft.SPOT.Hardware (in Microsoft.SPOT.Hardware.dll)
Syntax
'Declaration
Protected Sub New ( _
portId As Cpu.Pin, _
glitchFilter As Boolean, _
resistor As Port.ResistorMode, _
interruptMode As Port.InterruptMode _
)
protected Port(
Cpu.Pin portId,
bool glitchFilter,
Port.ResistorMode resistor,
Port.InterruptMode interruptMode
)
protected:
Port(
Cpu::Pin portId,
bool glitchFilter,
Port::ResistorMode resistor,
Port::InterruptMode interruptMode
)
new :
portId:Cpu.Pin *
glitchFilter:bool *
resistor:Port.ResistorMode *
interruptMode:Port.InterruptMode -> Port
protected function Port(
portId : Cpu..::..Pin,
glitchFilter : boolean,
resistor : Port..::..ResistorMode,
interruptMode : Port..::..InterruptMode
)
Parameters
- portId
Type: Microsoft.SPOT.Hardware. . :: . .Cpu. . :: . .Pin
The identifier (ID) for the port. If the port with the specified ID is already in use, an exception is thrown.
- glitchFilter
Type: System. . :: . .Boolean
true if the glitch filter is enabled; otherwise, false.
- resistor
Type: Microsoft.SPOT.Hardware. . :: . .Port. . :: . .ResistorMode
The resistor mode that establishes a default state for the port.
- interruptMode
Type: Microsoft.SPOT.Hardware. . :: . .Port. . :: . .InterruptMode
The interrupt mode that establishes the requisite conditions for the port to generate an interrupt.
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see dd66cd4c-b087-415f-9c3e-94e3a1835f74.