ReservePin Method
[This documentation is for preview only, and is subject to change in later releases. Blank topics are included as placeholders.]
Reserves or releases a specified port pin.
Namespace: Microsoft.SPOT.Hardware
Assembly: Microsoft.SPOT.Hardware (in Microsoft.SPOT.Hardware.dll)
Syntax
'Declaration
Public Shared Function ReservePin ( _
pin As Cpu.Pin, _
fReserve As Boolean _
) As Boolean
public static bool ReservePin(
Cpu.Pin pin,
bool fReserve
)
public:
static bool ReservePin(
Cpu::Pin pin,
bool fReserve
)
static member ReservePin :
pin:Cpu.Pin *
fReserve:bool -> bool
public static function ReservePin(
pin : Cpu..::..Pin,
fReserve : boolean
) : boolean
Parameters
- pin
Type: Microsoft.SPOT.Hardware. . :: . .Cpu. . :: . .Pin
The pin to reserve or release.
- fReserve
Type: System. . :: . .Boolean
true if the pin should be reserved, or false if the pin should be released.
Return Value
Type: System. . :: . .Boolean
true if successful; otherwise, false.
.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.