GpioController 클래스

정의

시스템의 기본 GPIO(범용 I/O) 컨트롤러를 나타냅니다.

public ref class GpioController sealed
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Devices.DevicesLowLevelContract, 65536)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
class GpioController final
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Devices.DevicesLowLevelContract), 65536)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
public sealed class GpioController
Public NotInheritable Class GpioController
상속
Object Platform::Object IInspectable GpioController
특성

Windows 요구 사항

디바이스 패밀리
Windows IoT Extension SDK (10.0.10240.0에서 도입되었습니다.)
API contract
Windows.Devices.DevicesLowLevelContract (v1.0에서 도입되었습니다.)

설명

GpioController 개체를 얻으려면 GpioController.GetDefault 메서드를 사용합니다.

버전 기록

Windows 버전 SDK 버전 추가된 값
1511 10586 GetControllersAsync
1511 10586 GetDefaultAsync

속성

PinCount

GPIO(범용 I/O) 컨트롤러의 핀 수를 가져옵니다.

메서드

GetControllersAsync(IGpioProvider)

시스템에 비동기적으로 연결된 모든 컨트롤러를 가져옵니다.

GetDefault()

시스템의 기본 GPIO(범용 I/O) 컨트롤러를 가져옵니다.

GetDefaultAsync()

시스템의 기본 GPIO(범용 I/O) 컨트롤러를 가져옵니다.

OpenPin(Int32)

배타적 모드에서 지정된 GPIO(범용 I/O) 핀에 대한 연결을 엽니다.

OpenPin(Int32, GpioSharingMode)

지정된 모드에서 지정된 GPIO(범용 I/O) 핀을 엽니다.

TryOpenPin(Int32, GpioSharingMode, GpioPin, GpioOpenStatus)

지정된 GPIO(범용 I/O) 핀을 지정된 모드에서 열고 프로그래밍 방식으로 핀을 여는 데 실패를 처리하는 데 사용할 수 있는 상태 값을 가져옵니다.

적용 대상

추가 정보