Skip to content

Latest commit

 

History

History
33 lines (22 loc) · 1.17 KB

gpiochangereader_gpiochangereader_1023478990.md

File metadata and controls

33 lines (22 loc) · 1.17 KB
-api-id -api-type
M:Windows.Devices.Gpio.GpioChangeReader.#ctor(Windows.Devices.Gpio.GpioPin,System.Int32)
winrt method

Windows.Devices.Gpio.GpioChangeReader.GpioChangeReader

-description

Creates a new GpioChangeReader associated with the specified pin and with the specified minimum capacity for change records. Only a single GpioChangeReader may be associated with a pin at any given time.

-parameters

-param pin

The pin on which to read changes. The pin must have been opened in Exclusive mode, and cannot be associated with another change reader.

-param minCapacity

The minimum number of change records that the reader must be able to hold.

-remarks

The following exceptions can be thrown by this method:

  • E_POINTER - The pin passed in is null.
  • HRESULT_FROM_WIN32(ERROR_SHARING_VIOLATION) - The pin is already associated with a change reader. That change reader must be disposed before the pin can be associated with a new change reader.
  • E_ACCESSDENIED - The pin is not opened in Exclusive mode.

-see-also

-examples