GetSerialPins Method
[This documentation is for preview only, and is subject to change in later releases. Blank topics are included as placeholders.]
Gets the GPIO pin assignments for the specified communications port (COM port).
Namespace: Microsoft.SPOT.Hardware
Assembly: Microsoft.SPOT.Hardware (in Microsoft.SPOT.Hardware.dll)
Syntax
'Declaration
Public Overridable Sub GetSerialPins ( _
comPort As String, _
<OutAttribute> ByRef rxPin As Cpu.Pin, _
<OutAttribute> ByRef txPin As Cpu.Pin, _
<OutAttribute> ByRef ctsPin As Cpu.Pin, _
<OutAttribute> ByRef rtsPin As Cpu.Pin _
)
public virtual void GetSerialPins(
string comPort,
out Cpu.Pin rxPin,
out Cpu.Pin txPin,
out Cpu.Pin ctsPin,
out Cpu.Pin rtsPin
)
public:
virtual void GetSerialPins(
String^ comPort,
[OutAttribute] Cpu::Pin% rxPin,
[OutAttribute] Cpu::Pin% txPin,
[OutAttribute] Cpu::Pin% ctsPin,
[OutAttribute] Cpu::Pin% rtsPin
)
abstract GetSerialPins :
comPort:string *
rxPin:Cpu.Pin byref *
txPin:Cpu.Pin byref *
ctsPin:Cpu.Pin byref *
rtsPin:Cpu.Pin byref -> unit
override GetSerialPins :
comPort:string *
rxPin:Cpu.Pin byref *
txPin:Cpu.Pin byref *
ctsPin:Cpu.Pin byref *
rtsPin:Cpu.Pin byref -> unit
public function GetSerialPins(
comPort : String,
rxPin : Cpu..::..Pin,
txPin : Cpu..::..Pin,
ctsPin : Cpu..::..Pin,
rtsPin : Cpu..::..Pin
)
Parameters
- comPort
Type: System. . :: . .String
A value that specifies the COM port.
- rxPin
Type: Microsoft.SPOT.Hardware. . :: . .Cpu. . :: . .Pin%
A value of the Cpu..::..Pin enumeration that identifies the GPIO pin that is assigned to the COM port's data-received signal.
- txPin
Type: Microsoft.SPOT.Hardware. . :: . .Cpu. . :: . .Pin%
A value of the Cpu..::..Pin enumeration that identifies the GPIO pin that is assigned to the COM port's data-transmitted signal.
- ctsPin
Type: Microsoft.SPOT.Hardware. . :: . .Cpu. . :: . .Pin%
A value of the Cpu..::..Pin enumeration that identifies the GPIO pin that is assigned to the CTS signal.
- rtsPin
Type: Microsoft.SPOT.Hardware. . :: . .Cpu. . :: . .Pin%
A value of the Cpu..::..Pin enumeration that identifies the GPIO pin that is assigned to the RTS signal.
.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.