VirtualOutputSegment Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Interface that abstracts multiplexing over a segment of outputs.
public sealed class VirtualOutputSegment : IDisposable, Iot.Device.Multiplexing.IOutputSegment
type VirtualOutputSegment = class
interface IOutputSegment
interface IDisposable
Public NotInheritable Class VirtualOutputSegment
Implements IDisposable, IOutputSegment
- Inheritance
-
VirtualOutputSegment
- Implements
Constructors
VirtualOutputSegment(Int32) |
A virtual implementation of IOutputSegment that manages the values of a set of virtual outputs. This type is intended as a helper to be used in IOutputSegment implementations. |
Properties
Item[Int32] |
Segment values. |
Length |
Length of segment (number of outputs). |
Methods
Display(CancellationToken) |
Displays current state of segment. Segment is displayed at least until token receives a cancellation signal, possibly due to a specified duration expiring. |
DisplayAsync(CancellationToken) |
Displays current state of segment. Segment is displayed at least until token receives a cancellation signal, possibly due to a specified duration expiring. |
Dispose() |
Disposes any native resources. |
TurnOffAll() |
Writes a Low PinValue to all outputs. Performs a latch. |
Write(Byte) |
Writes discrete underlying bits to a virtual segment. Writes each bit, left to right. Least significant bit will written to index 0. Does not display output. |
Write(Int32, PinValue) |
Writes a PinValue to a virtual segment. Does not display output. |
Write(ReadOnlySpan<Byte>) |
Writes discrete underlying bits to a virtual output. Writes each byte, left to right. Least significant bit will written to index 0. Does not display output. |
Applies to
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for