Share via


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

  • 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

See Also

Reference

Port Class

Microsoft.SPOT.Hardware Namespace