Share via


GpioChangeReader.GetNextItem Method

Definition

Retrieves and removes the earliest inserted change record from the reader's buffer.

GpioChangeRecord GetNextItem();
public GpioChangeRecord GetNextItem();
function getNextItem()
Public Function GetNextItem () As GpioChangeRecord

Returns

A GpioChangeRecord structure containing the timestamp and polarity (rising or falling) of the change.

Remarks

This will also reset an active overflow condition, causing the IsOverflowed property to return false.

The following exception can be thrown by this method:

  • HRESULT_FROM_WIN32(ERROR_NO_MORE_ITEMS) - the reader's buffer is empty.

Applies to